Error installing chef on windows using URL

Followed the instructions here:

Typed “. { iwr -useb } | iex; install” into powershell (windows 8.1)

Got this error:

msiexec was not successful. Received exit code 1603
At line:261 char:11

  •       throw "msiexec was not successful. Received exit code $($p.ExitCode)"
  •       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    • CategoryInfo : OperationStopped: (msiexec was not… exit code 1603:String) [], RuntimeException
    • FullyQualifiedErrorId : msiexec was not successful. Received exit code 1603

Any ideas for how to resolve this? I want to have a script install chef onto a windows machine but this isn’t working.

There are several reasons why a 1603 may occur. That error basically is just stating that an error occured during installation. You can find out more precisely why this happened by running MSIEXEC.exe on the chef install and supply a log file location. The log will have much more info and I’d be happy to review it if its not apparent.

One thing to check right off the bat is that there are no other installers running while the chef install is invoked. You might also try running the install via the GUI as a troubleshooting measure which will sometimes message a more detailed error.

Thanks for the reply. Turns out, I just didn’t run as admin!

Heh. oh yeah…that. Glad you got it sorted out!