[wix-users] WiX Burn - cached bundle is not removed on uninstall
Gronbach, Moritz
Moritz.Gronbach at vector.com
Thu Jun 21 05:04:32 PDT 2018
Doesn't clear the cache. I reduced the problem to two MSI packages in the bundle chain, both of them per-user packages we generate with WiX. The rest are permanent per-machine packages. Keeping any of the two per-user packages causes the leftover cache (even if the chain is reduced to just one of them). Removing them, OR setting ForcePerMachine="yes", makes the problem go away -- but they shouldn't be installed per-machine.
-----Original Message-----
From: Rob Mensching [mailto:rob at firegiant.com]
Sent: Wednesday, June 20, 2018 5:49 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Gronbach, Moritz <Moritz.Gronbach at vector.com>
Subject: RE: WiX Burn - cached bundle is not removed on uninstall
Restart?
_____________________________________________________________
Short replies here. Complete answers over there: http://www.firegiant.com/
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Gronbach, Moritz via wix-users
Sent: Wednesday, June 20, 2018 12:48 AM
To: wix-users at lists.wixtoolset.org
Cc: Gronbach, Moritz <Moritz.Gronbach at vector.com>
Subject: [wix-users] WiX Burn - cached bundle is not removed on uninstall
Hi,
I have the following problem related to caching and the ARP:
1) Install Bundle
2) Uninstall the Bundle from ARP -> cached bundle is not removed:
i001: Burn v3.11.1.2318, Windows v6.1 (Build 7601: Service Pack 1), path: C:\Users\username\AppData\Local\Package Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\My Setup.exe
i000: Initializing string variable 'Version' to value '3.0'
i009: Command Line: '"-burn.clean.room=C:\Users\username\AppData\Local\Package Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\My Setup.exe" -burn.filehandle.attached=212 -burn.filehandle.self=220 /uninstall'
[...]
i330: Removed bundle dependency provider: {956625c9-e05f-4513-a9a0-6c24b7f6de54}
i352: Removing cached bundle: {956625c9-e05f-4513-a9a0-6c24b7f6de54}, from path: C:\Users\username\AppData\Local\Package Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\
w354: Unable to remove cached bundle: {956625c9-e05f-4513-a9a0-6c24b7f6de54}, from path: C:\Users\username\AppData\Local\Package Cache\{956625c9-e05f-4513-a9a0-6c24b7f6de54}\, reason: 0x80070091. Continuing...
i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{956625c9-e05f-4513-a9a0-6c24b7f6de54}, resume: None, restart initiated: No, disable resume: No
i399: Apply complete, result: 0x0, restart: None, ba requested restart: No
"reason: 0x80070091" means that the directory is not empty. The only file in there is "My Setup.exe" (which is used for the ARP uninstall).
3) Reinstall the bundle -> no entry in ARP, probably because of https://github.com/wixtoolset/issues/issues/5702
Relevant line from the install log:
i370: Session begin, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{956625c9-e05f-4513-a9a0-6c24b7f6de54}, options: 0x4, disable resume: No
Where "options: 0x4" means that only the estimated size is updated in the registry entry. The first installation had 0x7, i.e. full ARP registry entry creation.
I can provide more logs if it helps. However, I diff'ed successful and non-successful installation/uninstallations, and the lines mentioned seemed to be the only relevant differences.
Any ideas why the bundle is not removed from the cache on uninstall?
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
More information about the wix-users
mailing list