Change the Installer / Uninstaller icon on Mac OS X

asked 14 Sep '11, 03:59

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%


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.

link

answered 14 Sep '11, 04:03

Jake's gravatar image

Jake ♦♦
796222226235
accept rate: 98%

Thanks Jake for this useful info.

(14 Aug '13, 04:25) SuryaSingh

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 in "installer.app/Contents/Resources/installbuilder.icns" but the installer logo remains same. what i have to do now ?

(21 Feb '14, 02:37) Raghvendra

Hey Jake, I did some research and implemented your given code and it's working for uninstaller(icon gets change for uninstall.app) but for installer it's not changing(displaying default install nuilder image). and I am not finding any clue to solve it.

(21 Feb '14, 03:28) 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 ?

link

answered 21 Feb '14, 01:47

Raghvendra's gravatar image

Raghvendra
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×155
×83
×51
×29
×11
×8

Asked: 14 Sep '11, 03:59

Seen: 3,133 times

Last updated: 21 Feb '14, 03:28