Sunday, 6 January 2013

How to manually remove programs from the Add or Remove Programs tool

I've been debugging the setup of the Rawstream agent and one of the problems I've had was how to remove the program from the Control Panel completely.

Sometimes the uninstaller would throw an error and although the files would be removed, there would still be registry entries left behind, so when I try to re-install the program, the Control Panel tells me that the product is still installed.

This article by Microsoft is helpful but it only talks about one registry location. There is a second one which is under the HKEY_Users hive.

The two key registry key locations are:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
HKEY_USERS\<User SID>\Software\Microsoft\Installer\Products

No comments:

Post a Comment