title: Cannot run setup.exe in Dockerfile with PowerShell start-process
body: <p>I have a simple docker windows-based image, one of the thing it does is to run a setup.exe to install some stuff. </p>
  
  <p>This setup.exe when being run in the windows UI, installs stuff into <code>C:/Program Files x86/Common Files/someFolder</code>. When being run inside a powershell, it works. But when being run with docker, it does not. Details below.</p>
  
  <p><strong>Building the docker image, where you can see the setup starts, but there's not a long going on...</strong> </p>
  
  <pre><code>λ docker build -t test -f Dockerfile-test .
  Sending build context to Docker daemon  286.8MB
  Step 1/4 : FROM stefanscherer/node-windows
   ---&gt; 736520eb3998
  Step 2/4 : WORKDIR /app/
   ---&gt; Using cache
   ---&gt; 039fd8f0cd4a
  Step 3/4 : COPY ./binaries ./
   ---&gt; Using cache
   ---&gt; 9fdaa51ee64d
  Step 4/4 : RUN powershell.exe -Command Start-Process -FilePath setup.exe -PassThru -Wait
   ---&gt; Running in 5676e0e08c6d
  
  Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
  -------  ------    -----      -----     ------     --  -- -----------
                0        0          0              4260
  
  
  Removing intermediate container 5676e0e08c6d
   ---&gt; 98d9f0818c5c
  Successfully built 98d9f0818c5c
  Successfully tagged test:latest
  </code></pre>
  
  <p><strong>Running the setup.exe inside a powershell :</strong></p>
  
  <pre><code>PS C:\Users\...\binaries&gt; Start-Process -Wait -FilePath "setup.exe" -ArgumentList "/S" -PassThru
  
  Handles  NPM(K)    PM(K)      WS(K)     CPU(s)     Id  SI ProcessName
  -------  ------    -----      -----     ------     --  -- -----------
        0       2      492         88       0,03   1244   1 setup
  </code></pre>
  
  <p><strong>Then, <code>cmd</code> into the container</strong> </p>
  
  <pre><code>λ docker run -it test cmd
  
  &gt; C:/app/&gt;  cd ..
  &gt; C:/&gt; cd "Program Files (x86)"
  &gt; C:/Program Files (x86)&gt; cd "Common Files"
  &gt; C:/Program Files (x86)/Common Files&gt; dir
  *empty*
  </code></pre>
  
  <p>The <code>setup.exe</code> is supposed to install files inside <code>common files</code>, but it's empty.</p>
  
  <p>Any ideas ?</p>