[wix-users] Msu Packages not cached

Neil Sleightholm neil at x2systems.com
Sun Aug 6 02:17:17 PDT 2017


I appreciate there isn't an API and guessing if it is installed from the docs is a nightmare but I was wondering if it would useful for burn to record that it has installed an MSU. That information could then be used as an install condition to stop the same or related package from install the MSU again.

This is an example of installing KB4022719, it downloads the package and runs it but when the install exits the package is no longer in the cache.

[0790:0C80][2017-07-04T15:07:20]i101: Detected package: KB4022719, state: Absent, cached: None
[0790:0C80][2017-07-04T15:07:22]w321: Skipping dependency registration on package with no dependency providers: KB4022719
[0790:0C80][2017-07-04T15:07:22]i201: Planned package: KB4022719, state: Absent, default requested: Present, ba requested: Present, execute: Install, rollback: Uninstall, cache: Yes, uncache: No, dependency: None
[0790:0DE8][2017-07-04T15:07:25]w343: Prompt for source of package: KB4022719, payload: KB4022719, path: C:\Users\Administrator\Desktop\Redist\windows6.1-kb4022719-x64_127dc7228b2d9278db81121a92471feda59461bb.msu
[0790:0DE8][2017-07-04T15:07:25]i338: Acquiring package: KB4022719, payload: KB4022719, download from: http://download.windowsupdate.com/c/msdownload/update/software/secu/2017/06/windows6.1-kb4022719-x64_127dc7228b2d9278db81121a92471feda59461bb.msu
[0E38:0B54][2017-07-04T15:08:00]i305: Verified acquired payload: KB4022719 at path: C:\ProgramData\Package Cache\.unverified\KB4022719, moving to: C:\ProgramData\Package Cache\127DC7228B2D9278DB81121A92471FEDA59461BB\Redist\windows6.1-kb4022719-x64_127dc7228b2d9278db81121a92471feda59461bb.msu.
[0E38:0478][2017-07-04T15:10:08]i301: Applying execute package: KB4022719, action: Install, path: C:\ProgramData\Package Cache\127DC7228B2D9278DB81121A92471FEDA59461BB\Redist\windows6.1-kb4022719-x64_127dc7228b2d9278db81121a92471feda59461bb.msu, arguments: '"C:\Windows\SysNative\wusa.exe" "C:\ProgramData\Package Cache\127DC7228B2D9278DB81121A92471FEDA59461BB\Redist\windows6.1-kb4022719-x64_127dc7228b2d9278db81121a92471feda59461bb.msu" /quiet /norestart'
[0790:0C80][2017-07-04T15:12:34]i319: Applied execute package: KB4022719, result: 0x0, restart: Required

Neil

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Bob Arnson
Sent: 04 August 2017 02:12
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: Re: [wix-users] Msu Packages not cached

There's no API for Burn to know a package is installed. As for caching, what does the log say?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Neil Sleightholm
Sent: Thursday, 3 August, 2017 17:20
To: wix-users at lists.wixtoolset.org
Subject: Re: [wix-users] Msu Packages not cached

Not sure if anyone had any thoughts on this but I was wondering if it would be useful to be able to defect if the burn bundle had installed an MSU, at least you could know if you have tried to install a hotfix. At the moment other than trying to figure out what has been updated (reading the MS docs doesn't help) you are in the dark about knowing if a hotfix has been applied.

Regards
Neil

From: Neil Sleightholm
Sent: 18 July 2017 17:11
To: wix-users at lists.wixtoolset.org
Subject: Msu Packages not cached

I have an MsuPackage element that downloads a package from the Microsoft download site, the package has a RemotePayload and it all works as expected except that the msu package is not cached. I have tried setting MsuPackage/@Cache to "yes" and "always" but it is downloaded to "C:\ProgramData\Package Cache" and then at the end of the install it is deleted. This means the next time an update is installed it downloads the package again.

Is this by design or is there something I can do to force to be cached?

The package is question is KB4022719, I suspect the root of my problem is that I don't have MsuPackage/@InstallCondition as I cannot find anyway to check whether this is already installed.

Regards
Neil

Neil Sleightholm
X2 Systems Limited
neil at x2systems.com<mailto:neil at x2systems.com>


____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list