Guest rudgism Posted February 1, 2005 Share Posted February 1, 2005 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 More sharing options...
CyberSlug Posted February 1, 2005 Share Posted February 1, 2005 (edited) Something like:Run("\\swnchaappvcs\PVCS 8 Client Install\Setup.exe /s")or maybeRunWait("\\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 February 1, 2005 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 More sharing options...
Guest rudgism Posted February 1, 2005 Share Posted February 1, 2005 Bingo... Run("\\swnchaappvcs\PVCS 8 Client Install\Setup.exe /s","") thanks much appreciated. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now