Jump to content

Network Installion of an .exe


Guest rudgism
 Share

Recommended Posts

Guest rudgism

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.

Link to comment
Share on other sites

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!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...