[wix-users] Access cached state and cache location of packages from CustomBA?´
Matthias Reuss
matthias.mr.reuss at wsa.com
Thu Mar 12 09:32:08 PDT 2020
Hello,
For each package, Burn detects both its install state (such as present/absent) and its cached state, resulting in log entries like the following:
[1758:159C][2019-07-01T16:37:43]i101: Detected package: Package1, state: Present, cached: Complete
[1758:159C][2019-07-01T16:37:43]i101: Detected package: Package2, state: Absent, cached: Complete
[1758:159C][2019-07-01T16:37:43]i101: Detected package: Package3, state: Absent, cached: None
[1758:159C][2019-07-01T16:37:43]i101: Detected package: Package4, state: Present, cached: None
Is it possible to access the cached state of a package from CustomBA?
On DetectPackageComplete, I do get a PackageState, but this enum does not map all the possible install/cached state combinations.
Furthermore, if a package is available in the cache, how can CustomBA determine its location?
Do I have to rely on the current cache layout c:\ProgramData\PackageCache\<GUID>\<PackageID> (which I think may be subject to change)?
Best regards,
Matthias Reuss
More information about the wix-users
mailing list