cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kirann_hegde
Level 5

Removing add/remove programs entries

Hello,

I am faced with a strange issue. One of our customers tried uninstalling our product and the uninstallation was always rolling back.

So he went ahead and ran a couple of cleanup steps ,which otherwise the installer would have taken care of during uninstallation.However now the product registration is not cleaned from the windows installer database. So the customer continues to see the entries for our product in the Add/Remove programs applet.

The customer now wants to reinstall our product and the installer detects that the product is installed and goes into maintenance mode.

He also wants the add/remove entries to be cleaned up.

Here were my suggestions:

1)Use the windows installer cleanup tool - The customer is not ready to use this.

2)Use msizap - Not yet conveyed to the customer. However i am not sure if the customer would agree to this.

3)Provide the customer with a utility which would cleanup the windows installer registration entries.

I am now pursuing the third option.

Here are the steps i am performing in the cleanup utility:

1)Cleanup the registration entries under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\

2) Cleanup the registration entries under HKEY_CLASSES_ROOT\Installer\Products\

I observed that cleaning up the registry key as described in step 2 removed the entries in the Add/Remove programs.

Questions:

1)Is there an API/set of API's which i could use to cleanup the windows installer registration?

2)HKEY_CLASSES_ROOT\Installer\Products\

How do i locate this registry key? What is this registry key? How is this generated?

Obviously, the Microsoft provided cleanup tools have some mechanism by which they locate this registry key.Does anyone know of the same.

I am dead stuck here. Any help would be very much appreciated.

Regards,

Kiran Hegde
Labels (1)
0 Kudos

(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Your customer's machine is already in a bad state here, so it's hard to say which option will be best to move forward. The Windows Installer Cleanup Utility / MSIZap is always considered a last resort. Instead the canonical way to fix uninstallation rollbacks is to create a minor upgrade package that resolves the rollback; install this (make sure to include v in REINSTALLMODE, which happens by default), and then the fix should be laid down. At that point if the new package was crafted correctly, it should be possible to uninstall. Less canonically, one can find the cached .msi package and edit it to resolve or ignore the problems.

As far as the Products registry key goes, you might search for "Compressed GUID."
0 Kudos
kirann_hegde
Level 5

Thanks for sharing this piece of information.
Let me search for compressed GUID and see where it leads to.

Regards,
Kiran Hegde
0 Kudos