I would like to install a msi file into my Docker container. The application has some dependencies, so I downloaded from Docker Hub an Image with ASP and .NET Framework.
I would like to install into that container some files, I prepared a Dockerfile with the following content:
Nothing occurs, my application is not installed. Also happens with another dependencies.
Even I try to execute them in the container (because I copied it as you see in Dockerfile) but nothing occurs.
I have installed both msi and exe based installers. I typically do run them by invoking a script from the Docker file.
MSI:
& msiexec /i meSetup.msi /quiet /norestart ADDLOCAL=ALL
it´s not working… when I make the “docker build”, it got stucked in the process, and can´t install.
could you please show me your Dockerfile??
Thank you very much
I will check thank you very much.
Anyway, I downloaded them from internet, and there´s no specification about that input. I guess because it works only with GUI
Hi,
you may try parameters with "/LV install.log" to see what goes wrong while setup runs.
RUN Start-Process -Wait -FilePath S:\Setup.exe -ArgumentList @(’/qn’, '/LV’, ‘c:\install.log’)
If it’s an MSI-File try to call
RUN Start-Process -Wait -FilePath msiexec.exe -ArgumentList @(’/i’,‘Setup.msi’,’/qn’, ‘/L*V’, ‘c:\install.log’)
To display Logfile:
RUN Get-Content -Path c:\install.log
Hi. I typically use this format:
RUN Start-Process -FilePath ./vcredist_x86_2010.exe -ArgumentList "’/q’ , ‘/l* “./vcredist_x86_2010.log”’ " -PassThru | Wait-Process
Couple of this that I would check (from past experience / pain)
Does the MSI actually install quietly?
Does the MSI install on Windows server core?
Experience gained from COTS app:
Vendor had never tested silent install !
Application had a service that depended on a windows 3D DLL, that was not part of WS core build !!
Yep, sounds familiar. I’ve used old technology in this situation, by repackaging the installation into a genuine silent MSI. Also gives you the ability to view dependencies, what is actually being done, etc.
No. Works for anything. What is does is takes a snapshot of your PC, then you do the installs, changes, whatever, you then tell the repackager to take another snapshot , and it then packages the differences in the before and after snapshots into an msi, which you can then edit, etc, and make it fully silent…