Install vcredist_x86.exe inside a running container

I would like to run vcredist_x86.exe to install msvcr120.dll inside the running container without using a docker file. My base image is windows server core. Tired using & ‘C:\vcredist_x86.exe’
and Start-Process -FilePath “vcredist_x86.exe” but it doesn’t work. Thank you.
image

Not precisely what you are doing, but very similar. I wanted vc_redist.x64.exe installed during my build process, so inside my dockerfile I had:

RUN Start-Process ‘c:\Invoke\vc_redist.x64.exe’ -Wait
-ArgumentList @(
‘/install’,
‘/passive’,
‘/norestart’
); \

I had copied the exe into a folder named C:\Invoke, and this worked well. I believe you are missing the arguments that I used. I suspect they will work on the vcredist_x86.exe as well.

Hi, thank you very much for the reply. Managed to get it to work! Just wondering, how did you find the set of parameters inside the ArgumentList for the specific exe file? I noticed some people uses ‘/quiet’ too. Sorry, i am quite new to this.

If you pass “/?” as an argument to vcredist_x64.exe a window appears displaying the command-line options for the installer. You will see that “/quiet” and “/passive” have the same effect.