Change the Installer / Uninstaller icon on Mac OS X
| Author: BitRock Support Date: September 10, 2008 07:32 Tags: |
Look and feel
Branding Tips OS X Customization |
Both installer and uninstaller show a default InstallBuilder icon on Mac OS X. There isn't any specific feature inside InstallBuilder to change that icon for the installer and the uninstaller, but it is straightforward to do so; the only tasks involved would be to substitute the icons under:
you-installer.app/Contents/Resources/installbuilder.icns
uninstall.app/Contents/Resources/installbuilder.icns
with the ones of our preference.
In order to implement the above on the XML, the following actions should do the work:
<postBuildActionList> <!-- Change installer icon on OS X, during build time --> <copyFile> <origin>/path/in/your/build/tree/to/your/icon.icns</origin> <destination>/path/to/installbuilder/output/your-installer.app/Contents/Resources/installbuilder.icns</destination> <ruleList> <compareText text="${platform_name}" value="osx" logic="equals" /> </ruleList> </copyFile> </postBuildActionList> <finalPageActionList> <!-- Change uninstaller icon on OS X --> <copyFile run="1" show="0"> <origin>${installdir}/path/to/your/icon.icns</origin> <destination>${installdir}/uninstall.app/Contents/Resources/installbuilder.icns</destination> <ruleList> <compareText text="${platform_name}" value="osx" logic="equals" /> </ruleList> </copyFile> </finalPageActionList> |
Note that the solution for the uninstaller is placed on the finalPageActionList, as a hidden action. This is because that's the only action for which the uninstaller has already been created.