Closed petm2022 closed 3 months ago
OnCacheAcquireBegin lets the BA specify the cache operation; it's always None on input. OnCacheAcquireResolving takes the value the BA specified and turns that into a resolve operation (e.g., local, download). WiX v3 did that in one operation.
WiX Version
5.0.0
.NET or MSBuild or Visual Studio Version
VS 2022 17.10.3
HeatWave Version
1.0.4
Windows Version
Win10 22H2
Repro Repo
No response
Repro Steps
Add a function like this in you managed bootstrapper:
Actual Result
I have a managed bootstrapper application installing several msi packages. I need to know if the packages are copied from desk, from removable media or downloaded. For that I read the Action attribute returned by
CacheAcquireBegin
. The valued returned, when installing from desk or usb isCacheOperation:None
I have tried all the other Cache function but it is the same, except CacheAcquireResolving:Expected Result
I did expect the action valued returned was
CacheOperation:Copy
at least when installing from desk or usb.It worked as expected when my application was build with Wix 3.11
Acknowledgements