/build/static/layout/Breadcrumb_cap_w.png

error 170

I'm trying to run the following script as a custom action:

Dim fso, f
Set fso = CreateObject("WScript.Shell")

f.RegWrite "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\Hummingbird\", 1, "REG_SZ"
f.RegWrite "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\Hummingbird\StubPath", "C:\Program Files\Hummingbird\RegDelCU.vbs", "REG_SZ"
f.RegWrite "HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\Hummingbird\Version", "1", "REG_SZ"
f.RegWrite "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce\DELCU", "C:\Program Files\Hummingbird\RegDelKeyCU.vbs", "REG_SZ"

I get an error 1720. Can anyone shed some light? I appreciate any help

0 Comments   [ + ] Show comments

Answers (4)

Posted by: MSIPackager 18 years ago
3rd Degree Black Belt
0
Where are have you sequenced the CA ?

Are you running it in execute deferred (system context) ?

Cheers,
Rob.
Posted by: slb 18 years ago
Purple Belt
0
If i am not wrong, i think the machine is not able to execute the vbscript file.. why not trying to execute the same file using wscript or cscript???
HTH
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
0
Here's a hint.

Set fso = CreateObject("WScript.Shell")
f.RegWrite ................

Shouldn't f be fso? [:D]
Posted by: MSIPackager 18 years ago
3rd Degree Black Belt
0
Haha - well spotted Mr B [:@]
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