cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jcondlin
Level 3

remove registry key

Is there a way to remove a registry key if values are added to it after the initial install? I create the base key for our product and then values are added to it by one of the services we run. I set the uninstall option to force removal even if changed, but the only way to get the key removed is to add all the values at install time that the service will. The problem with this is that the values being added changes frequently.
Labels (1)
0 Kudos
(3) Replies
pv7721
Level 20

I've had a similar question for Flexera Software support. I'm afraid that their implementation is quite bizarre. Please PM me and I'll try to forward their workaround (quite complicated, I didn't use it).
0 Kudos
Ravi1238
Level 3

Hi,

I am facing similar issue here and could some one help me in this.
0 Kudos
SunnyBoy
Level 6

Use the below Vb script in Execute script and batch file

Dim WshShell, cal1, cal2
Set WshShell = WScript.CreateObject("WScript.Shell")
cal1 = "HKEY_LOCAL_MACHINE\SOFTWARE\ABC\Test\"
cal2 = "HKEY_LOCAL_MACHINE\SOFTWARE\ABC\"
WshShell.RegDelete cal1
WshShell.RegDelete cal2
0 Kudos