Hi Ravi, No I was not able to solve this particular issue, but the same way is working for other installers. Hence I assumed something is wrong with the installer itself. I workaround the problem by using sleep in conjunction with checking if the service that needs to be installed is up and running.
On Thu, Feb 6, 2020, 9:14 PM Ravi Tiwary <[email protected]> wrote: > Hi Gautam, > > I am facing same issue, did you had a chance to find a solution for the > below? > > Thanks, > Ravi > > On Friday, January 24, 2020 at 1:20:10 AM UTC+5:30, Gomsy wrote: >> >> 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 >> >> >> -- > 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/bbaa737c-b5e3-49f4-8c95-6f5b08132fcb%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/bbaa737c-b5e3-49f4-8c95-6f5b08132fcb%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAA7kr8A_OGmAoncMrDyr0%2Bi5oyTPv-x3Z_1n%3DJ%2Bkf0d3bR70yQ%40mail.gmail.com.
