Added -Wait flag to Start-Process

Must wait in order for script to be available
pull/7861/head
Don Schenck 11 years ago committed by Matt Martz
parent 9c4220832a
commit 618b47cd77

@ -79,4 +79,4 @@ else
$FileName = $DownLoadUrl.Split('/')[-1] $FileName = $DownLoadUrl.Split('/')[-1]
download-file $downloadurl "$powershellpath\$filename" download-file $downloadurl "$powershellpath\$filename"
Start-Process -FilePath "$powershellpath\$filename /quiet" -WindowStyle Hidden Start-Process -FilePath $powershellpath\$filename -WindowStyle Hidden -Wait

Loading…
Cancel
Save