Add/Remove Programs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

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
 
hi, in the setup and deployment project you add to your solution one
property is to uninstall previous versions. you set this to true.

Can this help you?
 
Sorry, no, I should have been more specific.

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
 
Hi,

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
 
Back
Top