title: Installing msi on a docker container
body: <p>Need help with dockerizing legacy application
  I have a legacy app which contains multiple components(msi installers). These components use variety of technologies like C#, windows forms, C++, MFC, .net remoting, C# webservices(asmx). Out of these components a couple of them are desktop ui applications.
  I was researching the feasibility of dockerizing these components. I am aware that it is not possible to display UI from docker containers, but the UI components also have a command-line counterpart using which we can perform all the operations which can be done with UI.
  I started with a simple component. This contains asmx web services developed in C# and is generally hosted on IIS on a windows machine.
  It installs its files into the following locations</p>
  
  <ol>
  <li>C:\program Files\ ==> configurable
  
  <ol start="2">
  <li>C:\programData\</li>
  </ol></li>
  </ol>
  
  <p>I created the docker file with following actions</p>
  
  <ol>
  <li>take a windows server core image and enable iis and other
  dependencies
  
  <ol start="2">
  <li>Copy the installer from host machine to the container</li>
  <li>Run the installer in silent mode using msiexec command.</li>
  </ol></li>
  </ol>
  
  <p>When I run docker build command using this docker file, I am getting an error Could not access network location "C:\Program Files\\</p>
  
  <p>No help from google.
  Can anybody help me in getting around the issue.
  I have a couple of questions
  1. Does a docker container by default contain default windows directories like program files, program files(x86), user profile, Program data and app data?</p>
  
  <p>edit:
  Apologies for delayed response. 
  Providing the docker file below</p>
  
  <pre><code>FROM microsoft/aspnet
  WORKDIR C:\\Installers
  COPY EKBCS.exe C:\\Installers\\myinstaller.exe
  COPY EKBCS.properties C:\\Installers\\myinstaller.properties
  #RUN msiexec /unreg
  #RUN msiexec /regserver
  #RUN ["net start", "msiserver"]
  RUN ["myinstaller.exe", "/l*v myinstaller.log",  "/qn PROPERTYFILE=myinstaller.properties"]
  ENTRYPOINT ["powershell"]
  </code></pre>
  
  <p>Following is the error in the installer log.</p>
  
  <blockquote>
    <p>-- Error 1719. The Windows Installer Service could not be accessed. This can occur if you are running Windows in safe mode, or if the
    Windows Installer is not correctly installed. Contact your support
    personnel for assistance.</p>
  </blockquote>
  
  <p>I tried unregistering and registering msi installer service but that doesnt help. Hence commented those lines. 
  Any help very much appreciated.</p>