We are using WinInstall 7.5 and are applying the packages to our Nt environment using a Kix Script.

In the script it states to run the client launch facility and point to the package file. This works fine with all .nai (WinInstall) files but when it comes to completing a client launch on an .MSI, it cannot determin that the process is still running. At the moment i am using a sleep, but this doesn't.

I need to know if there is a switch or command i can use to wait until the MSi delivery has finished before moving onto the next client launch (Function in script).

Copy of script:
Function AppFunc32()

;Install the application if you are a member of the install group and the application does not exist
If InGroup("APP-CRYS-CYREP9-I") AND $CrysReport9=0
$lblFuncStatus.Text = "Deploying Crystal Reports 9.0..."
Shell '%comspec% /c "\\$deploysvr\ondemand$$\winstall\ntsvc32.exe /clientlaunch=(\\$deploysvr\ondemand$$\winstall\winapps.lst \\$deploysvr\ondemand$$\winstall\CrystalReports9\scrstd.msi)"'
Sleep 40
Else
;Uninstall the application if it is installed and you are not a member of the install group
If NOT InGroup("APP-CRYS-CYREP9-I") AND $CrysReport9=1
Shell '%comspec% /c "\\$deploysvr\ondemand$$\winstall\ntsvc32.exe /clientlaunch=(\\$deploysvr\ondemand$$\winstall\winapps.lst \\$deploysvr\ondemand$$\winstall\CrystalReports9\scrstd.msi /remove)"'
Sleep 30
EndIf
EndIf

EndFunction

Please help!!!