This fails (and wont let me add /L for logging) and displays the help popup:

Start-Process -FilePath msiexec -ArgumentList /i, "C:\app\install\mariadb-10.0.14-winx64.msi", INSTALLDIR="C:\ipw\bin\MariaDB 10.0\", PASSWORD=sekrit1234,STDCONFIG=0, SERVICENAME=MySQL, /qn -Wait

i.e. im trying to install it as a service with the specified rootpassword, and have the containing script wait until finished.

FYI, this command works, it runs just before in the same powershell script:

Start-Process -FilePath msiexec -ArgumentList /i, "C:\app\install\PHPManagerForIIS-1.2.0-x64.msi", /qn -Wait

i.e. msiexec works to some extent.

  • Just a quick guess without testing it...if you remove the final slash in the INSTALLDIR after 10.0 does it work? – TheCleaner Dec 3 '14 at 19:13
  • Did not help :/ – FelixHJ Dec 3 '14 at 20:16

There was an unescaped space in the INSTALLDIR property that caused the problem :|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.