Sign in to follow this  
Followers 0
Guest rudgism

Network Installion of an .exe

3 posts in this topic

I am trying to create an exe from a vbs file that I have that installs PVCS Version Manger Client from a network installation. This script -

Dim $answer, $var, $tDrv, $drvInfo

$answer = MsgBox(4,"Install Version Manager", "This will Install Serena Version Manager")

If $answer = 7 Then

MsgBox(0, "Install Cancelled", "Cancelled")

Exit

EndIf

;check for mapped drive

$var = DriveGetDrive("all")

If NOT @error Then

For $i = 1 to $var[0]

If $var[$i] = "T:" Then

$tDrv = "True"

$drvInfo = DriveMapGet("T:")

DriveMapDeL("T:")

EndIf

Next

EndIf

DriveMapAdd("T:", "\\swnchaappvcs\PVCS 8 Client Install")

Run("Setup.exe /s","\\swnchaappvcs\PVCS 8 Client Install\")

If $tDrv = "True" Then

DriveMapDeL("T:")

DriveMapAdd("T:", $drvInfo)

EndIf

Produces the following error on XP SP2-

Please Go to Control Panel to Install & Configure System Components

Am I missing something? I am new to AutoIT, but did not see anything in the documentation that would not allow this.

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Something like:

Run("\\swnchaappvcs\PVCS 8 Client Install\Setup.exe /s")

or maybe

RunWait("\\swnchaappvcs\PVCS 8 Client Install\Setup.exe /s")

I'm not sure about the quote marks since the full path has spaces....

RunWait('"\\swnchaappvcs\PVCS 8 Client Install\Setup.exe" /s')

If those don't work and user has proper rights to install software (look at RunAsSet function, maybe), then perhaps you could post the original VBScript.

Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

Bingo...

Run("\\swnchaappvcs\PVCS 8 Client Install\Setup.exe /s","")

thanks much appreciated.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0