Polarman Posted December 5, 2016 Report post Posted December 5, 2016 I have a script installing "LabView" from "National Instruments". However the installer (setup.exe with parameters) is just starting a lot of other installers, and when I use SCCM and detection method the software goes to "installed" just after starting install, although it continues for another hour (!). That is because im checking if a file is present. How could I instead check for "when a process finish or exits then the software is installed"? Knut Quote Share this post Link to post Share on other sites More sharing options...
anyweb Posted December 6, 2016 Report post Posted December 6, 2016 try | Out-Null like so write-host "about to install SQL Server 2016 SSMS..." -nonewline $Parms = " /Install /Quiet /Norestart /Logs log.txt" $Prms = $Parms.Split(" ") & "$filepath" $Prms | Out-Null Write-Host "done!" -ForegroundColor Green it won't release the process until it's complete Quote Share this post Link to post Share on other sites More sharing options...
Polarman Posted December 9, 2016 Report post Posted December 9, 2016 try | Out-Null like so & "$filepath" $Prms | Out-Null it won't release the process until it's complete Can I change this to "start-process "$filepath" -argumentlist "$arguments" | Out-Null ? Or is the "&" only set for this? Quote Share this post Link to post Share on other sites More sharing options...