/build/static/layout/Breadcrumb_cap_w.png

VBS to search value and return key where that value is present

Hi ;
I am in great need of VBS which will search registry HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall for the value DisplayName=Nachiket. If found then return or delete the key where this value is present. Can anybody help ?

regards

0 Comments   [ + ] Show comments

Answers (3)

Posted by: anonymous_9363 14 years ago
Red Belt
0
Get the Registry class file from JSWare http://www.jsware.net

It has a selection of enumeration functions like EnumKeys and EnumValues which you can use. They populate Dictionary objects which you can then test for content.

BTW, would it not be easier to search for the ProductCode? Theapplication's ProductCodes are what form the GUIDs you see beneath the 'Uninstall' branch.
Posted by: nkhawale 14 years ago
Senior Yellow Belt
0
Product Code is not confirmed. The script should work for any product code where DisplayName=Nachiket
Posted by: nkhawale 14 years ago
Senior Yellow Belt
0
wow got it thanks
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