This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Pause PowerShell Script until Silk Test installation is complete

Our powershell script installs Silk Test 21.0 in silent mode using a properties file. I want the powershell script to wait for the installation to complete. To achieve so I am using Start-Process cmdlt, command is:

Start-Process -Wait -FilePath "C:\temp\silktest\silktest-210-64bit.exe" -ArgumentList "-i", "silent", "-f", "C:\temp\silktest\SilentInstall.properties"

If I use this command, the problem is that the process never ends. It keeps on waiting even though silk test has installed.

Is there any better way to make the powershell script wait for the installation to complete and then execute further commands? I want to avoid using "sleep" command in script.