PDA

View Full Version : Removing Add/Remove but maintaining uninstall



StayPuff
05-31-2004, 02:07 AM
Is it possible to create an installer, but not have it listed in the Add/Remove programs list in the Windows Control Panel?

I've tired deleting the registry key for it but when I run my installer a second time it doesn't detect the program is installed and reinstalls as if it hasn't been installed before.

If I leave the registry setting, and thus the entry in the Add/Remove Programs, it'll then correctly call the uninstall procedure.

Can anyone shed some light on this problem? Thank you in advance.

StayPuff
06-01-2004, 02:01 AM
Found a solution:
At the end of the installation remove the DisplayName value from the registry.:

RegDBDeleteValue ("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"^INSTANCE_GUID, "DisplayName");

MichaelU
06-01-2004, 11:16 AM
It's probably a better practice to set the value SystemComponent to DWORD 1, as this leaves the information in the DisplayName value that this alternate method removes.

Michael

StayPuff
06-01-2004, 07:39 PM
Thanks. That indeed does work better.

StayPuff
06-01-2004, 07:43 PM
...