site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com Hi Stéohane, Am 18.05.2005 um 08:08 schrieb Stéphane Sudre: On mardi, mai 17, 2005, at 03:13 PM, Mike Fischer wrote: OK, thanks. Then I do: "$1/Contents/Resources/SetCustomIcon" -C "$2/$folderName" to set the custom icon using the included tool. Again thanks for your help! Mike -- Mike Fischer Softwareentwicklung, EDV-Beratung Schulung, Vertrieb Web: <http://homepage.mac.com/mike_fischer/index.html> Note: I read this list in digest mode! Send me a private copy for faster responses. _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... So to summarize, I understand that: - There is no intrinsic method to set Finder flags on installed files or folders in an installer package; - Using a postflight script it is possible to trigger an executable that sets Finder flags; - Since no executable, capable of setting Finder flags, exists on a standard install of Mac OS X, a suitable executable must be provided in the installer package. Correct? At least, that's what I would do. I've got a rough workaround based on your idea in place. I need to test and fine-tune a bit but that is not big problem. I added some shell code to make the postflight script independent of the install location and somewhat independent on the foldername. The former is done by evaluating the parameters to the script and the later by using lsbom to extract the name of the folder like this: folderName=`lsbom -d -p f "$1/Contents/Archive.bom" | grep "/ProductName"` This relies on the assumption that the folder will be named something like "<ProductName> x.y" for example. I'm probably going to change this to a more general method by making the tool set the custom icon flag for any folder in the specified hierarchy that contains an Icon\n file. This email sent to site_archiver@lists.apple.com