cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AbhimanyuK
Level 2

msi does not remove registry entry in windows7

I have created one msi project that does some registry entry at the time of installation. At the time of uninstallation, the removal of registry entry fails.
But this works fine on WindowsXP. This works fine on Windows7 also when we set the UAC level to minimum in control panel.

If I run the .exe on same windows7 system when UAC is also on, then also it works fine. So the problem is with msi only. How to assign admin priviledge to the msi file. Please help.

Thanks
Abhimanyu
+919958449969
Labels (1)
0 Kudos

(1) Reply
TsungH
Level 12

It sounds like you are trying to modify system (deleting registry entries) when installer is not elevated, i.e., during UI Sequence or Immediate Execute Sequence. It is not recommended since the changes won't be rolled back when user cancels the installer. I presume that registry creation is also done in similar fashion.

You will probably want to change them to deferred custom actions, and provide corresponding rollback custom actions.
0 Kudos