Comments

2 comments

  • Avatar
    Jake

    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.

  • Avatar
    Raghvendra

    Hey Jake, I followed above procedure to replace default icon but it's not working for me. Actually the installbuilder.icns file successfully replaced by my icons but the installer logo remains same. what i have to do now ?

Please sign in to leave a comment.