Jump to content

Working with ISS files


Recommended Posts

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 by wklw2005
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...