Hi Everyone,

I'm new to scripting.. Many apologies if my question sounds silly...
In my work environment i should not use .reg files to add and delete registries..
My application installs more than 5000 registries but not removing on uninstall...
Scince this is silent push of exe i can't include in MSI and manage the removal.. only way i found is VBs..

Is there any easy way to delete these 5000 entries, because adding these entries is defenitely not going to be an easy work..

Many thanks in advance for your answers and time.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


If you have a reg file with the entries, just put a - in front of the entry.

Windows Registry Editor Version 5.00

*****Remove entire key*****
Windows Registry Editor Version 5.00

*******Remove value*******
Windows Registry Editor Version 5.00

So, If you have a reg-file with 5000 entries, I would search and replace "[HKLM" with "[-HKLM" and then run the reg-file as usual.

Just make sure you dont delete any entries/values that might be needed for other things.
Answered 12/05/2011 by: andemats
Second Degree Black Belt

Please log in to comment
reg.exe DELETE should do it too
Answered 12/06/2011 by: AngelD
Red Belt

Please log in to comment