Does anybody have an example of code that automatically adds and/or removes
programs, without using the Windows Control Panel? I am doing a lot of
testing that involves installing/uninstalling different versions of the same
program over and over, and using the Control Panel is tedious.
Thanks,
pagates
Can this help you?
In this case, we are using InstallShield for packaging and deployment, as an
msi.
I was looking for a more general solution, something with the same
functionality as the Add or Remove Programs Control Panel.
Thanks,
pagates
Every program that is displayed in the add/remove programs control
panel has a registry key in
HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall.
Important values for each key are:
- "DisplayName"
- "DisplayIcon"
- "UninstallString".
Best regards,
nickske