How To: Set Your Installer's Icon in Add/Remove Programs

Windows Installer XML (WiX) v3.0

How To: Set Your Installer's Icon in Add/Remove Programs

Windows Installer supports a standard property, ARPRPODUCTICON, 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.

<Icon Id="icon.ico" SourceFile="MySourceFiles\icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />

These two elements can be placed anywhere in your WiX project under the Project element. There is no need to nest them in a Directory element. The Icon tag specifies the location of the icon on your source machine, and gives it a unique id for use later in the WiX project. The Property element sets the ARPPRODUCTION property to the id of the icon to use.