/build/static/layout/Breadcrumb_cap_w.png

Help needed in deleting registry...

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   [ + ] Show comments

Answers (2)

Posted by: andemats 12 years ago
2nd Degree Black Belt
0
If you have a reg file with the entries, just put a - in front of the entry.

Eg.
********Original*********
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\SomeKey]
SomeValue="SomeNumber"

*****Remove entire key*****
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\SomeKey]

*******Remove value*******
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\SomeKey]
SomeValue=-

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.
Posted by: AngelD 12 years ago
Red Belt
0
reg.exe DELETE should do it too
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ