title: Pass environment variable to INSTALLDIR in msi
body: <p>I am trying to write a PowerShell DSC configuration and have the following code:</p>
  
  <pre><code>Package RapidCRC
  {
      Ensure = "Present"
      Path  = "C:\Repo\RapidCRC.Unicode.v0.3.27.x64\RapidCRC-Setup-0.3.27-x64.msi"
      Name = "RapidCRC (x64) 0.3.27"
      ProductId = "{27A6AB13-B66B-4AB8-BDA1-313477475F6A}"
      Arguments = 'INSTALLDIR="C:\Program Files\Utilities\RapidCRC.Unicode" ALLUSERS=2 ARPSYSTEMCOMPONENT=0'
  }
  </code></pre>
  
  <p>I would like to pass C:\Program Files as an environment variable. I tried the following:</p>
  
  <pre><code>Arguments = 'INSTALLDIR="%ProgramFiles%\Utilities\RapidCRC.Unicode" ALLUSERS=2 ARPSYSTEMCOMPONENT=0'
  
  Arguments = 'INSTALLDIR="[ProgramFiles64Folder]Utilities\RapidCRC.Unicode" ALLUSERS=2 ARPSYSTEMCOMPONENT=0'
  </code></pre>
  
  <p>but they do not work. Any help appreciated.</p>