I'm trying to set the icon in Add or Remove Programs to the same as my application's icon. My icon is stored in the Application Folder of my solution. I read on SourceForge you have to edit the ARPPRODUCTICON property. How/where do I do this in Windows Forms?
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. These two elements can be placed anywhere in your WiX project under the Product element.
How to open Add or Remove Programs in Windows 10. Press the Windows key , type Apps & features or Add or Remove Programs, and press Enter .
When the property is set to 1, these entries are not written in the registry and hence, do not appear in the Control Panel Add/remove applet. Also, setting ARPNOREMOVE property to 1 will just disable the remove button from Add/remove Programs.
I found an extremely simple solution. Under your deployment project's properties, click the "AddRemoveProgram" and browse for your file. I recommend dropping your application's icon in your Application folder.
You can manually change these details under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
Some of the valid accepted key values:
If both NoModify and NoRepair are set to 1, the button displays "Remove" instead of "Modify/Remove".
For example:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinRAR archiver]
"DisplayName"="WinRAR 4.20 (64-bit)"
"DisplayVersion"="4.20.0"
"VersionMajor"=dword:00000004
"VersionMinor"=dword:00000014
"UninstallString"="C:\\Program Files\\WinRAR\\uninstall.exe"
"DisplayIcon"="C:\\Program Files\\WinRAR\\WinRAR.exe"
"InstallLocation"="C:\\Program Files\\WinRAR\\"
"NoModify"=dword:00000001
"NoRepair"=dword:00000001
"Language"=dword:00000000
"Publisher"="win.rar GmbH"
You can change (or create it if it does not exist) the value of the DisplayIcon
key. This will change the uninstaller icon in Add or Remove Programs in the control panel.
Windows installer supports property by which you can add Icon ARPPRODUCTICON
. To Set this property we need to add icon in your installer using Icon
element.
<Icon Id="icon.ico" SourceFile="MySourceFiles\icon.ico"/>
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
This will add icon in Control Panel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With