does anyone have a foolproof way of waiting for a spawned background
(installation) executable , to finish when spawned from powershell
provisioner.
I have tried ..
```powershell
$proc = Start-Process -FilePath "D:\CaptureSV\WrkInst\Setup.exe"
-ArgumentList "/s","/i:D:\Kofax\CaptureInitialization.ini" -NoNewWindow
-PassThru
$proc.WaitForExit()
```
but still the powershell provisioners don't wait and march on with the next
ps script which are dependant on the first shell script finishing !
Thanks,
Andy
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/packer-tool/643919b3-2bc8-4eaa-9836-36a3b75779f6%40googlegroups.com.