-
March 1st, 2005, 08:45 AM
#1
activex can't create object / wshom.ocx
hi gurus!
i'm using a WshShell object to write a registry setting. therefore, i added a reference to wshom.ocx to my project.
Code:
'strAvEnv was defined, etc.
Dim regObj As New WshShell
regObj.RegWrite "HKEY_CURRENT_USER\Software\Marcam\Asset Management Client\database\ENVIRONMENT", strAvEnv
Set regObj = Nothing
i packed all stuff into a setup routine (using the setup tool provided with the VB 6.0 IDE).
if i set up a pc with Windows 2000 and all the latest updates and patches (SP 4), and afterwards install my program using the setup routine, i keep getting the error "activex component can't create object" on the above code. on a plain win2k without updates, everything works fine.
can anyone give me a hint what is the reason for this?
i would also appreciate if anyone knows another way (w/o wshom.ocx) to write this single registry setting from VB.
thanx.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|