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


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


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".

Answered 12/06/2004 by: Robo Scripter
Orange Senior Belt

Please log in to comment
Thanks Robo

That works fine now.
Answered 12/07/2004 by: JMWebster
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity