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.

Parents
  • Suggested Answer

    0  

    Hi  

    Has the silktest-210-64bit.exe completed and terminated?

    If so, I can only assume that there is dependent process started (likely the Information Service) that is preventing the command from returning. If you stop the Silk Test Information Service does the Start-Process command then return?

    -Robert

Reply
  • Suggested Answer

    0  

    Hi  

    Has the silktest-210-64bit.exe completed and terminated?

    If so, I can only assume that there is dependent process started (likely the Information Service) that is preventing the command from returning. If you stop the Silk Test Information Service does the Start-Process command then return?

    -Robert

Children
No Data