Hi,
I am using packer with ebs-builder and powershell provisioner to build a Windows Server 2016 image. I am running a silent installer using following powershell command
Start-Process "$InstallPath" -ArgumentList "$AnswerFilePath" -Wait -NoNewWindow
When running this command manually the command is exiting without any issue but when running from powershell provisioner in packer the packer build get stuck at this step.
I ensured that the variables $InstallPath and $AnswerFilePath and properly set. The reason while I am running installer via Start-Process is because otherwise the installer exist immediately while installation happens in the background.
Any idea what could be the issue?
Thanks,
-Gautam