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

Remmoving registry keys on install

I am building a msi to set up security zones as part of an update to IE11.
I want to clear out all of the old zone settings that we used for IE9 before installing my new list.

My goal is to completely remove Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains and all subkeys from HLKM and HKCU then replace with my new maps

I am trying to use The Direct Editor RemoveRegisty function in my ism file, but it isn't working
Added the following two entries in the table:

RemoveRegistry (s72): UNINST_HKLM_DOM
Root (i2): 2
Key (I255): SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains
Name (L255): -
Component_ (s72): RegistryKeys

RemoveRegistry (s72): UNINST_HKCU_DOM
Root (i2): 1
Key (I255): Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\Domains
Name (L255): -
Component_ (s72): RegistryKeys
Labels (1)
0 Kudos
(1) Reply
MGScott
Level 2

Okay, I found out what it is doing. It is removing the keys on UNinstall, not install.
I may have to go with the custom action since it looks like I have more control.
0 Kudos