/build/static/layout/Breadcrumb_cap_w.png

Connect to a network drive within MSI

I’m having trouble running the following VBS line from within my MSI.

Set WshNetwork = WScript.CreateObject("WScript.Network")

The line works fine when running my VBS outside the MSI, but as soon as I embed the code into my MSI it give me errors.

All I’m trying to do is connect / map to a network share and run an exe from within my MSI.

Can you please help.

0 Comments   [ + ] Show comments

Answers (2)

Posted by: Robo Scripter 16 years ago
Orange Senior Belt
0
Two things:
1. Remove the "wscript." the line should read;
Set WshNetwork = CreateObject("WScript.Network")
The Wscript reference has been known to cause a failure.

2. Make sure that the action is in Run Immediate prior to "InstallInitialize".

Regards,
Posted by: JMWebster 16 years ago
Orange Belt
0
Thanks Robo

That works fine now.
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