title: Install MSI with XML Properties File
body: <p>Would be grateful to any assistance on how I can install an MSI and modify its default property values through an xml file that has the new values to be inserted during install time. The new property values will then be passed into MSIEXEC as a parameter by referencing the xml file and will therefore look like this:</p>
  
  <p>msiexec /I MyMSIFle.msi PROPERTIESFILE=ProdProperties.xml</p>
  
  <p>The need for this is because we have a number of environments. For sake of argument let's say DEV, TEST and PROD. The MSI property values differ for each environment and will be held in discrete XML properties files, e.g. DEV-Properties.xml, TEST-Properties.xml and PROD-Properties.xml.</p>
  
  <p>The MSI is a single, generic MSI that we intend to install across all three environments successfully, simply by passing in the correct property values, all embedded within the individual XML files.</p>
  
  <p>I'll be particularly happy to accept solutions using Powershell, Windows Batch scripts, VBScript, etc, but no third-party software as we have strict restrictions on using any such products within my company.</p>
  
  <p>Thank you</p>