title: Setting Public Property Values on the Command Line
body: <p><a href="https://docs.microsoft.com/en-us/windows/desktop/Msi/setting-public-property-values-on-the-command-line" rel="nofollow noreferrer">Setting Public Property Values on the Command Line</a> of an msi follows the pattern</p>
  
  <pre><code>MyInstaller.msi PUBLICPROPERTY="someValue"
  </code></pre>
  
  <p>This works on "Command Prompt" aka cmd.exe and powershell.</p>
  
  <p>But</p>
  
  <pre><code>MyInstaller.msi PUBLICPROPERTY=""
  </code></pre>
  
  <p>does not work like expected in powershell. I expected that it sets PUBLICPROPERTY to null but it sets PUBLICPROPERTY to the value "CURRENTDIRECTORY="C:\temp\msi\"" (it does work like expected with cmd.exe).</p>
  
  <p>Why do powershell and cmd.exe behaviour different, and how can it be fixed?</p>