title: Update MSI package via Wix bootstrapper
body: <p>I have wix bootstapper which includes 4 components: tree exe packages and one msi package. I want to do major update of msi package using bootstrapper below (only main code):</p>
  
  <pre><code>&lt;Bundle Name="$(var.Name)" Version="$(var.Version)" Manufacturer="$(var.Manufacture)" UpgradeCode="$(var.UpgradCode)" Copyright="$(var.Copyright)"&gt;
  ....
  &lt;Chain&gt;
        &lt;!-- TODO: Define the list of chained packages. --&gt;
        &lt;PackageGroupRef Id="NetFx4Full"/&gt;
        &lt;PackageGroupRef Id="PostgreSQL"/&gt;
        &lt;PackageGroupRef Id="AdobeReader"/&gt;
        &lt;PackageGroupRef Id="Application"/&gt;
  &lt;/Chain&gt;
  ....
  &lt;PackageGroup Id="Application"&gt;
    &lt;MsiPackage Id="MyApplication"
                SourceFile=".\MSI_File\application.msi"
                DisplayInternalUI="yes"
                Permanent="no"
                Vital="yes"
                Visible="no"/&gt;
  others packages...
  &lt;/PackageGroup&gt;
  </code></pre>
  
  <p>and msi code:</p>
  
  <pre><code>&lt;Product Id="*"
      Name="$(var.Name)"
      Language="$(var.InstallerLanguage)"
      Version="$(var.Version)"
      UpgradeCode="$(var.UpgradeCode)"
      Manufacturer="$(var.Manufacture)"&gt;
  
  &lt;Package Description="$(var.PackageDescritpion)"
          InstallerVersion="200"
          Compressed="yes"
          InstallScope="perMachine"
          InstallPrivileges="elevated"
          Platform="x64"/&gt;
  
  &lt;Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/&gt;
  
  
  &lt;Directory Id="TARGETDIR" Name="SourceDir"&gt;
  &lt;/Directory&gt;
  
  &lt;Feature Id="Complete"
               Level="1"
               ConfigurableDirectory="INSTALLDIR"&gt;
    &lt;ComponentRef Id="Licence"/&gt;
    &lt;ComponentRef Id="StartMenuFoldersComponent"/&gt;
    &lt;ComponentRef Id="DatabaseConfigFolder"/&gt;
    &lt;ComponentGroupRef Id="BinaryFileGroup"/&gt;
    &lt;ComponentGroupRef Id="DatabaseConfigFileGroup"/&gt;
    &lt;ComponentRef Id="ApplicationConfigFolder"/&gt;
    &lt;ComponentRef Id="RemoveFolderOnUninstall"/&gt;
  &lt;/Feature&gt;
  
  &lt;!-- Custom actions--&gt;
  .....
  
  &lt;InstallExecuteSequence&gt;
    &lt;RemoveExistingProducts After="InstallValidate"/&gt;
    &lt;!--Other custom actions--&gt;
    ......
  &lt;/InstallExecuteSequence&gt;
  </code></pre>
  
  <p>To build  my update msi and bootstrapp I set greater (the same for msi and bootstrapp) product version, for example old version has 1.0.0.0 and newer has 1.0.1.0. Upgrade code as a WIX documentation says remains unchanged. After run my update installer the new version of msi is not installig, in install directory still are old files. Does anyone know what I do wrong?</p>
  
  <p>@Edit
  Also I tried by adding MajorUpgrade element but after that bootstrapper doesn't start MSI:</p>
  
  <pre><code>&lt;Media Id="1" Cabinet="contents.cab" EmbedCab="yes" CompressionLevel="high"/&gt;
  &lt;MajorUpgrade  Schedule="afterInstallInitialize" DowngradeErrorMessage="A later version of     [ProductName] is already installed. Setup will now exit."/&gt;
  &lt;Directory Id="TARGETDIR" Name="SourceDir"/&gt;
  </code></pre>
  
  <p>@Edit
  Bootstrapper logs: <a href="http://wklej.to/Msczq" rel="nofollow">http://wklej.to/Msczq</a></p>