title: How to install msi with a script
body: <p>I am having an issue with Windows Installer popup when running my script.</p>
  <p>My script</p>
  <pre><code>function InstallMyMsi {
      $File='C:\\my\\path\\my msi file.msi'
      $DT = Get-Date -Format &quot;yyyyMMdd_HHmm&quot;
      $Log = &quot;C:\\my\\other_path\\Log_$DT.log&quot;
      
      $Params = &quot;/L*V $Log&quot;, '/i', $File, '/qn!', '/quiet', '/passive'
      $p = Start-Process `
          'msiexec.exe' `
          -ArgumentList $Params `
          -NoNewWindow `
          -Wait `
          -PassThru
  
      return $p.ExitCode
  }
  
  InstallMyMsi
  </code></pre>
  <p>I have tried different combinations of arguments with no luck.</p>
  <p>Any ideas?</p>
  <p>Edit:
  The file name of the msi contains space. I have edited that part, could this be the cause of the issue?</p>