[wix-users] Caching of ExePackage breaks on Upgrade

AFMG Anton Herzog anton.herzog at afmg.eu
Wed Jul 22 23:25:07 PDT 2020


When initially installing the bundle the ExePackage is cached. When upgrading it can be observed that it's not cached again. (from behavior as well as from log files)
The problem is that I can’t see a good reason for that. Shouldn’t the configuration lead to the ExePackage "always" being cached?

-----Original Message-----
From: Rob Mensching <rob at firegiant.com> 
Sent: Wednesday, July 22, 2020 5:27 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: AFMG Anton Herzog <anton.herzog at afmg.eu>
Subject: RE: Caching of ExePackage breaks on Upgrade

Careful analysis of the log files for all these operations should indicate when files were added/removed and required to be in the cache. 

---
Short replies here. Complete answers here: https://www.firegiant.com/services/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of AFMG Anton Herzog via wix-users
Sent: Monday, July 20, 2020 1:04 AM
To: wix-users at lists.wixtoolset.org
Cc: AFMG Anton Herzog <anton.herzog at afmg.eu>
Subject: [wix-users] Caching of ExePackage breaks on Upgrade

My installer includes an ExePackage. It didn't change its version yet, so upgrading does not install the package again. I use "DetectCondition" for that.
<ExePackage Id="Package"
                  DetectCondition="Package_Version <= Package_InstalledVersion"
                  SourceFile="..\path\to\package\setup.exe"
                  UninstallCommand="WorkingUninstallCommand"
                  InstallCommand="WorkingInstallCommand"
                  Cache="always">
        <Payload SourceFile="..\path\to\payload" />
        ...
</ExePackage>
When installing and uninstalling a version, everything works as expected. Now I upgrade the Bundle without including a newer version of the ExePackage.

  *   Describe the behavior you expected and how it differed from the actual behavior.
I expect to be able to uninstall the upgraded bundle, even when the original installer was moved. What happens is that it prompts me for the source as soon as the installer is not at the same place anymore.
This behaviour seems wrong to me. Shouldn’t the cache of an ExePackage stay intact or get cached again when updading the whole bundle without touching the ExePackage itself?



More information about the wix-users mailing list