[wix-users] Caching of ExePackage breaks on Upgrade

Edwin Castro egcastr at gmail.com
Wed Jul 22 23:44:50 PDT 2020


I have questions.

What does "it prompts me for the source as soon as the installer is not at
the same place anymore" mean? Which installer did you move? Where was it
originally? Where was it moved to?

Consider providing a minimal reproduction including logs. That would help
us see much easier what is actually going on.

Here is what I think you are describing:

1. BundleV1 caches and installs ExePackageV1.
2. BundleV2 contains ExePackageV1 in chain but does *not* cache and does
*not* install ExePackageV1 as it is already present. BundleV2 uninstalls
related BundleV1 as normal.
3. Installer for ExePackageV1 is moved? Removed from C:\ProgramData\Package
Cache?
4. Uninstall of BundleV2 plans to uninstall ExePackageV1 but does not find
it cache and requests for source?

Are your packages compressed/embedded in your bundles?

Are you expecting BundleV2 to recache it's embedded copy of ExePackageV1
rather than requesting source during uninstall?

--
Edwin G. Castro


On Wed, Jul 22, 2020 at 11:25 PM AFMG Anton Herzog via wix-users <
wix-users at lists.wixtoolset.org> wrote:

> 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?
>
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/



More information about the wix-users mailing list