[wix-users] Caching of ExePackage breaks on Upgrade
Rob Mensching
rob at firegiant.com
Wed Jul 22 08:26:55 PDT 2020
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