title: Is it possible to deconstruct and reconstruct a WIX executable?
body: <p>I have a WIX executable install package which for the sake of simplicity lets just call setup.exe. Using a Powershell script I need to do the following with this package:</p>
  
  <pre><code> 1. Deconstruct the setup.exe WIX package.
   2. Unpack the setup.msi file contained within.
   3. Modify a config file within the unpacked setup.msi.
   4. Repack setup.msi with this new config.
   5. Reconstruct the setup.exe WIX package.
  </code></pre>
  
  <p>Currently I can do steps 1 to 4 in the following way:</p>
  
  <pre><code>1. Run dark.exe -x OutputFolder1 setup.exe.
  2. Run ms2xml.exe -c OutputFolder2 setup.msi
  3. Update the config file.
  4. Run xml2msi.exe -m setup.xml
  </code></pre>
  
  <p>Unfortunately at this point I can't recreate the WIX package using the modified setup.msi even though OutputFolder1 appears to contain all the information that WIX would need to recreate the package. </p>
  
  <p>Therefore is there a way to recreate a WIX package that was deconstructed using dark?  Alternatively is there another way to achieve this without using dark?</p>