wklw2005 Posted July 28, 2015 Posted July 28, 2015 (edited) Global $iPid AdlibRegister("CheckPID",100) ProgressOn("Server Name", "CADWorx 2015", "Working...") $Servername_software = EnvGet("Servername__software") $iPid = Run($Servername__software & "\Intergraph\CADWorx 2015\CADWorx_2015\setup.exe /s /f1C:\Temp\CADWorx2015_ACAD2015_64_CH.iss") $iSleep = 100 For $i = 1 To 100 Step 1 Sleep($iSleep) If Not ProcessExists($iPid) Then ExitLoop ProgressSet($i, $i & " %") $iSleep=$iSleep*1.10 ; increase sleep 10%...compounded ConsoleWrite($iSleep & @CRLF) Next Func CheckPID() If $iPid Then If $iPid And Not ProcessExists($iPid) Then ProgressSet(100, "Almost Done....") Sleep(3000) ProgressOff() AdlibUnRegister("CheckPID") EndIf EndIf EndFunc I have created an install Package using an ISS file and this works great. I was wondering if there is a way to wrap the ISS file into the code so it reads within the script instend of looking for the file in the temp folder on the root of C. Thanks to anybody that can help. Edited July 28, 2015 by wklw2005
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