Automatic account creation is now enabled. Captcha authentication required for account creation and editing unless you are trusted here.

Reinstall

From WiX Wiki at MindCapers

Jump to: navigation, search

To use REINSTALLMODE and REINSTALL: change

 
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
 <Product Name='ProductName' Id='GUID' Version='1.0.0'>
 
  <Package Id='????????-????-????-????-????????????'/>
 
  <Media Id='1' Cabinet='MyCompany.cab' EmbedCab='yes' 
         DiskPrompt='DiskPrompt'/>
  <Property Id='DiskPrompt' Value='I-Gear DTU 5.6.2 Installation' />
 
  <Property Id='REINSTALLMODE' Value='amus'/>
  <Property Id='REINSTALL' Value='all'/>
 
  <Directory Id='TARGETDIR' Name='Source'>
   <Directory Id='ProgramFilesFolder' Name='PFolder' LongName='MyCompany'>
    <Component Id='MyFile' Guid='GUID'>
     <File Id='MyFile.ext' Name='MyFile.ext' Source='SomeSourceDirectory'/>
    </Component>
   </Directory>
  </Directory>
 
  <Feature Id='MyFeature' Level='1'>
   <ComponentRef Id='MyComponent'/>
  </Feature>
 
 </Product>
</Wix>
 

The value 'all' for the REINSTALL property means that all features will be affected. You can replace that with the feature Id's, separated by commas, that you want to be affected. I'm not the best authority on this, but I think Windows Installer should automatically know the difference between repair and install, or is that not what you were asking? Someone else may have to bail me out on this one, because I'm not entirely sure how this works.

Personal tools