DockerFile call install msi

Question:

I’m having a hard time installing an msi via Dockerfile. My Dockerfile:

When running docker build via:

I get the following error:

If I build the container without the RUN step, and attach myself via -it to the running container and paste the command powershell -version 5.0 -command { Start-process -Filepath "C:\temp\msis\mySetup.msi" -ArgumentList "/qn" -PassThru | Wait-Process} the MSI gets installed correctly.

Has anyone an idea this failure happens?

Thx

Answer:

Possibly it’s a PowerShell parsing problem.

Try these 2 lines instead of your last line:

After that you can revert to cmd.exe if you wish:

Source:

DockerFile call install msi by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply