PDA

View Full Version : Registry keys are not removed during un-installation



johnav
10-09-2009, 04:37 AM
Hi,

Platfrom : Vista 32 bit
Installer type : MSI

I have MSI kit that installs a registry key under "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\PLAP Providers". But this registry key is not removed during un-installation.
What could be the reason.

Thanks
John

Ranjit Kumar
10-09-2009, 04:41 AM
The most common causes for leaving behind registry keys during uninstallation are:
1. The Registry table contains entries marked with the '+' sign. This directs the installer to leave behind those registry keys during uninstallation.
2. In the InstallExecuteSequence table, the RemoveRegistryValues action is sequenced after the UnregisterProgIdInfo and UnregisterMIMEInfo actions. The sequence of these actions needs to be reversed. The presence of some registry values written from the Registry table prevents certain ProgId, extension, and CLSID keys from being removed.

johnav
10-09-2009, 07:13 AM
Thank Ranjit for the quick response.

I have checked Regsitry table and ensured that there is no + sign
Also I have changed the sequence order from
RemoveRegsiryValues, UnRegisterClassInfo, UnregisterExtensionInfo, UnregsiterProgIdInfo, UnregisterMIMeInfo to new sequence like UnRegisterClassInfo, UnregisterExtensionInfo, UnregsiterProgIdInfo, UnregisterMIMeInfo, RemoveRegsiryValues,

Still the following entries are not removing
1. HLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\PLAP Providers\<MyGUID1>
2. HKCROOT\CLSID\<MyGUID>
3. Dll file in "System32" folder.

However, the installer works fine on Vista64.
Do I need to check any more areas ?

Thanks
John