Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the icon in 'Add or Remove Programs'

Tags:

c#

winforms

icons

enter image description here

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?

like image 538
Abraham Avatar asked Apr 25 '13 01:04

Abraham


People also ask

How do I add icons to WiX Installer?

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 do I add programs to the Control Panel in Windows 10?

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 .

How do I disable ARP Add Remove Programs entry during the installation through property?

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.


3 Answers

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.

enter image description here

like image 165
Abraham Avatar answered Oct 03 '22 20:10

Abraham


You can manually change these details under

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

Some of the valid accepted key values:

  • InstallLocation (string) - Installation directory ($INSTDIR)
  • DisplayIcon (string) - Path, filename and index of of the icon that will be displayed next to your application name
  • Publisher (string) - (Company) name of the publisher
  • ModifyPath (string) - Path and filename of the application modify program
  • InstallSource (string) - Location where the application was installed from
  • ProductID (string) - Product ID of the application
  • Readme (string) - Path (File or URL) to readme information
  • RegOwner (string) - Registered owner of the application
  • RegCompany (string) - Registered company of the application
  • HelpLink (string) - Link to the support website
  • HelpTelephone (string) - Telephone number for support
  • URLUpdateInfo (string) - Link to the website for application updates
  • URLInfoAbout (string) - Link to the application home page
  • DisplayVersion (string) - Displayed version of the application
  • VersionMajor (DWORD) - Major version number of the application
  • VersionMinor (DWORD) - Minor version number of the application
  • NoModify (DWORD) - 1 if uninstaller has no option to modify the installed application
  • NoRepair (DWORD) - 1 if the uninstaller has no option to repair the installation
  • SystemComponent (DWORD) - Set 1 to prevents display of the application in the Programs List of the Add/Remove Programs in the Control Panel.
  • EstimatedSize (DWORD) - The size of the installed files (in KB)
  • Comments (string) - A comment describing the installer package

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.

like image 36
Parimal Raj Avatar answered Oct 03 '22 19:10

Parimal Raj


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.

like image 23
DigviJay Patil Avatar answered Oct 03 '22 20:10

DigviJay Patil