Re: Micorosft Office 2011 package
Re: Micorosft Office 2011 package
- Subject: Re: Micorosft Office 2011 package
- From: Vachik Hovhannisyan <email@hidden>
- Date: Tue, 27 Aug 2013 09:19:53 -0700 (PDT)
You need to put the icon into a resource fork inside the directory, name it "Icon\r", make it hidden, and assign "has icon" custom attribute to the directory.
I do that using Xcode tools from a shell script. Of course, these tools may not be available on a target machine, but I though I will mention it anyway
icon="PATH_TO_ICON_FILE.icns"
target="PATH_TO_TARGET_DIRECTORY_HERE"
cp "$icon"
./icon-resource.icns || exit $?
echo "read 'icns' (-16455) \"icon-resource.icns\";" > "./icon-resource.r"
ifile="`printf \"$target/Icon\r\"`"
Rez -o "$ifile" "./icon-resource.r" || exit $?
rm -f ./icon-resource.icns
rm -f ./icon-resource.r
SetFile -a C "$target"
SetFile -a V "$ifile"
From: Conor Schutzman <email@hidden>
To: vishnu kulkarni <email@hidden>
Cc: "email@hidden" <email@hidden>
Sent: Tuesday, August 27, 2013 8:45 AM
Subject: Re: Micorosft Office 2011 package
I tried for quite a while to get that folder to behave properly, but couldn’t ever get a new folder to have the correct icon. The
only solution I found to work was to add the original folder, as created by Microsoft’s installer, as the payload for my first component package, so it was present for everything else to install into. That caused various over-install issues, so eventually I gave up and accepted the standard folder.
The other options is to use pkgutil to expand Microsoft’s package, then flatten each of the resulting component packages, so you can just leverage them directly in your package.
On Aug 27, 2013, at 6:34 AM, vishnu kulkarni <
email@hidden> wrote:
> Hi All,
>
> I have been trying to Package MS Office with latest updates. I can package the software with all the updates but when I install the package the Icon for Micorosft office 2011 in the Applications folder is not the same provided by microsoft. It turns to the default
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden