[wix-users] WiX Burn - cached bundle is not removed on uninstall
Gronbach, Moritz
Moritz.Gronbach at vector.com
Wed Jun 20 00:48:20 PDT 2018
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?
More information about the wix-users
mailing list