Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Changing registry problems

Status
Not open for further replies.

HaraldBuesching

Programmer
Sep 12, 2001
25
0
0
BE
Hello everyone!

Our bright network administrators have registered some
DLLs from some temporaries pathes. Naturally it didn't work.
Using REGEDIT I figured out that changing each path in the
registry (about 15 pathes for 2 DLLs) works without having
administrator rights.

But I have problems to do this with VB, I can't access
this strange pathes via APIs:
HKEY_CLASSES_ROOT\CLSID\{23C3C2C4-FA91-11D3-A6DC-00902771FF87}\InprocServer32
Furthermore working with searching like in REGEDIT would be better, but I can't find the right API call.

Has anyone an idea?

All help is welcomed, Harald Buesching.
 
Use the Windows Script Host. The WshShell object supports RegRead, RegWrite and RegDelete methods. You can write a text file in VBScript which can call these methods and amend the keys. You will need to know what the keys are for the CLSID's and suchlike.

You might be better off just running regsvr32.exe on the client machine with the new path!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top