Setting Installer’s Icon in WiX

From previous post, we might notice if there was a missing thing in our My Product installer. Open Programs and Features, compared with another installed programs.
Add Remove Programs
This is it! The ICON. WiX manual says:

Windows Installer supports a standard property, ARPPRODUCTICON, that controls the icon displayed in Add/Remove Programs for your application. To set this property you first need to include the icon in your installer using the Icon element, then set the property using the Property element.

And here we go.

  1. Open Windows Explorer, C:\Projects.
  2. Create new folder, name it Images.
    Images Folder
  3. Open Images folder, put file with .ico extension and name it MyProduct.ico
    MyProduct.ico
  4. Open MyProductSetup solution.
  5. In line 6, add codes below:
    <Icon Id="MyProduct.ico" SourceFile="$(var.SolutionDir)..\Images\MyProduct.ico" />
    <Property Id="ARPPRODUCTICON" Value="MyProduct.ico" />
  6. Build the solution ( Ctrl + Shift + B ).
  7. Install MyProductSetup.msi again.
  8. Now, if we go to Program and Feature, My Product Utilities and its icon.
    My Product Utilities and its Icon

It’s done. Setting Installer’s icon in WiX is a simple thing, eh? But probably most of us are too lazy to open the documentation file 😛

Leave a Comment

Capcay *