Wix - Upgrade always runs older installer msi and fails in trying to read old msi

Posted by rkhj on Stack Overflow See other posts from Stack Overflow or by rkhj
Published on 2010-05-06T20:19:17Z Indexed on 2010/05/10 8:54 UTC
Read the original article Hit count: 767

Filed under:
|
|
|
|

I'm having a problem though with the Windows caching of the installer. I'm trying to do an upgrade and each time the Windows installer is launching the installer of the older version. And when I do the upgrade it is complaining about problems with reading the older version's msi file (because its not in the same directory anymore).

I did change the UpgradeCode and the ProductCode but kept the PackageCode the same. I also have different ProductVersion codes (2.2.3 vs 2.3.0).

Here's a sample of my code:

<Upgrade Id="$(var.UpgradeCode)">
      <UpgradeVersion Property="OLDAPPFOUND"
                  IncludeMinimum="yes"
                  Minimum="$(var.RTMProductVersion)"
                  IncludeMaximum="no"
                  Maximum="$(var.ProductVersion)"/>
  <UpgradeVersion Property="NEWAPPFOUND"
                  IncludeMinimum="no"
                  Minimum="$(var.ProductVersion)"
                  OnlyDetect="yes"/>
</Upgrade>

This is the Install Sequence:

<InstallExecuteSequence>
    <Custom Action='SetUpgradeParams' After='InstallFiles'>Installed AND NEWAPPFOUND</Custom>
      <Custom Action='Upgrade' After='SetUpgradeParams'>Installed AND NEWAPPFOUND</Custom>
   </InstallExecuteSequence>

The error I am getting is:

A network error occurred while attempting to read from the file:

Thanks,

© Stack Overflow or respective owner

Related posts about wix

Related posts about upgrade