[wix-users] uninstall fails after removing installer EXE at its original path

Gubanov, Oleg (INT) Oleg.Gubanov at Teledyne.com
Wed Feb 2 10:15:01 PST 2022


The full log is below.

The bundle "A.exe" contains .msi files of two packages, "ARuntimeX64" and "ARuntimeX86".
I'd like to keep these .msi files embedded into A.exe, so that a single file is sufficient for installing the "Runtime" part of the application.
Other .msi packages (such as "ASdkX64") come as separate .MSI files (rather than embedded into A.exe) due to their large size and optional nature.

In my uninstall scenario, the package "ARuntimeX64" was installed at step (1), and it has to be uninstalled at step (3).
This could explain why the uninstaller needs something from "A.exe".

The log:

[1188:42F8][2022-02-01T09:46:19]i001: Burn v3.11.2.4516, Windows v10.0 (Build 19042: Service Pack 0), path: C:\ProgramData\Package Cache\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}\A.exe
[1188:42F8][2022-02-01T09:46:19]i000: Initializing string variable 'InstallFolder' to value ''
[1188:42F8][2022-02-01T09:46:19]i000: Initializing string variable 'DisplayVersion' to value '1.0.0'
[1188:42F8][2022-02-01T09:46:19]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}\A.exe" -burn.filehandle.attached=512 -burn.filehandle.self=532 /uninstall'
[1188:42F8][2022-02-01T09:46:19]i000: Setting string variable 'WixBundleLog' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619.log'
[1188:42F8][2022-02-01T09:46:19]i000: Setting string variable 'WixBundleManufacturer' to value 'MyCompany'
[1188:42F8][2022-02-01T09:46:19]i000: Loading managed bootstrapper application.
[1188:42F8][2022-02-01T09:46:19]i000: Creating BA thread to run asynchronously.
[1188:33C8][2022-02-01T09:46:19]i000: Setting string variable 'InstallFolder' to value 'C:\Program Files\MyCompany\A'
[1188:42F8][2022-02-01T09:46:19]i100: Detect begin, 13 packages
[1188:42F8][2022-02-01T09:46:19]i000: Trying per-machine extended info for property 'State' for product: {71801426-82AC-510B-93AC-461F2BC6F813}
[1188:42F8][2022-02-01T09:46:19]i000: Setting numeric variable 'AiState_x64' to value 5
[1188:42F8][2022-02-01T09:46:19]i000: Product or related product not found: {31533365-BAE0-416E-B043-29984A8D9215}
[1188:42F8][2022-02-01T09:46:19]i000: Setting numeric variable 'SdkState_x86' to value 2
[1188:42F8][2022-02-01T09:46:19]i000: Trying per-machine extended info for property 'State' for product: {0EE3F55E-AEDE-5058-8135-886A0F8C6B0B}
[1188:42F8][2022-02-01T09:46:19]i000: Setting numeric variable 'SdkState_x64' to value 5
[1188:42F8][2022-02-01T09:46:19]i052: Condition 'LicManFakeDetectCondition' evaluates to true.
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: vcredist2019x64, state: Absent, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: vcredist2019x86, state: Absent, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: vcredist2012x64, state: Absent, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: vcredist2012x86, state: Absent, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: LicenseManager, state: Present, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ARuntimeX86, state: Absent, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ARuntimeX64, state: Present, cached: Complete
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ASdkX86, state: Absent, cached: None
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ASdkX64, state: Present, cached: Complete
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ARuntimeAI_1_X64, state: Present, cached: Complete
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ARuntimeAI_2_X64, state: Present, cached: Complete
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: ARuntimeAI_3_X64, state: Present, cached: Complete
[1188:42F8][2022-02-01T09:46:19]i101: Detected package: AAISdkX64, state: Present, cached: Complete
[1188:42F8][2022-02-01T09:46:19]i199: Detect complete, result: 0x0
[1188:42F8][2022-02-01T09:46:24]i200: Plan begin, 13 packages, action: Uninstall
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_AAISdkX64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_000_AAISdkX64_rollback.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_AAISdkX64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_000_AAISdkX64.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_ARuntimeAI_3_X64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_001_ARuntimeAI_3_X64_rollback.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_ARuntimeAI_3_X64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_001_ARuntimeAI_3_X64.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_ARuntimeAI_2_X64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_002_ARuntimeAI_2_X64_rollback.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_ARuntimeAI_2_X64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_002_ARuntimeAI_2_X64.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_ARuntimeAI_1_X64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_003_ARuntimeAI_1_X64_rollback.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_ARuntimeAI_1_X64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_003_ARuntimeAI_1_X64.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_ASdkX64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_004_ASdkX64_rollback.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_ASdkX64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_004_ASdkX64.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_ARuntimeX64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_005_ARuntimeX64_rollback.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_ARuntimeX64' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_005_ARuntimeX64.log'
[1188:42F8][2022-02-01T09:46:24]w321: Skipping dependency registration on package with no dependency providers: LicenseManager
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleLog_LicenseManager' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_006_LicenseManager.log'
[1188:42F8][2022-02-01T09:46:24]i000: Setting string variable 'WixBundleRollbackLog_LicenseManager' to value 'C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_006_LicenseManager_rollback.log'
[1188:42F8][2022-02-01T09:46:24]w321: Skipping dependency registration on package with no dependency providers: vcredist2012x86
[1188:42F8][2022-02-01T09:46:24]w321: Skipping dependency registration on package with no dependency providers: vcredist2012x64
[1188:42F8][2022-02-01T09:46:24]w321: Skipping dependency registration on package with no dependency providers: vcredist2019x86
[1188:42F8][2022-02-01T09:46:24]w321: Skipping dependency registration on package with no dependency providers: vcredist2019x64
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: AAISdkX64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ARuntimeAI_3_X64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ARuntimeAI_2_X64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ARuntimeAI_1_X64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ASdkX64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ASdkX86, state: Absent, default requested: Absent, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ARuntimeX64, state: Present, default requested: Absent, ba requested: Absent, execute: Uninstall, rollback: Install, cache: No, uncache: Yes, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: ARuntimeX86, state: Absent, default requested: Absent, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: Unregister
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: LicenseManager, state: Present, default requested: Absent, ba requested: ForceAbsent, execute: Uninstall, rollback: Install, cache: Yes, uncache: Yes, dependency: None
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: vcredist2012x86, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: vcredist2012x64, state: Absent, default requested: None, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: vcredist2019x86, state: Absent, default requested: None, ba requested: None, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1188:42F8][2022-02-01T09:46:24]i201: Planned package: vcredist2019x64, state: Absent, default requested: None, ba requested: Absent, execute: None, rollback: None, cache: No, uncache: No, dependency: None
[1188:42F8][2022-02-01T09:46:24]i299: Plan complete, result: 0x0
[1188:42F8][2022-02-01T09:46:24]i300: Apply begin
[1188:42F8][2022-02-01T09:46:24]i010: Launching elevated engine process.
[1188:42F8][2022-02-01T09:46:24]i011: Launched elevated engine process.
[1188:42F8][2022-02-01T09:46:24]i012: Connected to elevated engine.
[1EB0:1C98][2022-02-01T09:46:24]i358: Pausing automatic updates.
[1EB0:1C98][2022-02-01T09:46:24]i359: Paused automatic updates.
[1EB0:1C98][2022-02-01T09:46:24]i360: Creating a system restore point.
[1EB0:1C98][2022-02-01T09:46:24]i361: Created a system restore point.
[1EB0:1C98][2022-02-01T09:46:24]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}, resume: Active, restart initiated: No, disable resume: No
[1188:4078][2022-02-01T09:46:24]w341: Prompt for source of container: WixAttachedContainer, path: D:\Setup\1.0.0\A.exe
[1188:4078][2022-02-01T09:46:24]e054: Failed to resolve source for file: D:\Setup\1.0.0\A.exe, error: 0x80070002.
[1188:4078][2022-02-01T09:46:24]e000: Error 0x80070002: Failed while prompting for source (original path 'D:\Setup\1.0.0\A.exe').
[1188:4078][2022-02-01T09:46:24]e311: Failed to acquire container: WixAttachedContainer to working path: C:\WINDOWS\Temp\{38073DCD-E73A-4C38-A977-AA72E7DCF756}\79E32844E8819A5B8527590929F3AFC7525C327C, error: 0x80070002.
[1188:42F8][2022-02-01T09:46:24]e000: Error 0x80070002: Failed while caching, aborting execution.
[1EB0:1C98][2022-02-01T09:46:24]i372: Session end, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}, resume: ARP, restart: None, disable resume: No
[1EB0:1C98][2022-02-01T09:46:24]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}, resume: ARP, restart initiated: No, disable resume: No
[1188:42F8][2022-02-01T09:46:24]i399: Apply complete, result: 0x80070002, restart: None, ba requested restart:  No
[1188:42F8][2022-02-01T09:46:38]i500: Shutting down, exit code: 0x80070002
[1188:42F8][2022-02-01T09:46:38]i410: Variable: AiState_x64 = 5
[1188:42F8][2022-02-01T09:46:38]i410: Variable: DisplayVersion = 1.0.0
[1188:42F8][2022-02-01T09:46:38]i410: Variable: InstallFolder = C:\Program Files\MyCompany\A
[1188:42F8][2022-02-01T09:46:38]i410: Variable: SdkState_x64 = 5
[1188:42F8][2022-02-01T09:46:38]i410: Variable: SdkState_x86 = 2
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleAction = 3
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleElevated = 1
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleInstalled = 1
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLastUsedSource = D:\Setup\1.0.0\
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_LicenseManager = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_006_LicenseManager.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_AAISdkX64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_000_AAISdkX64.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_ARuntimeAI_1_X64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_003_ARuntimeAI_1_X64.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_ARuntimeAI_2_X64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_002_ARuntimeAI_2_X64.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_ARuntimeAI_3_X64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_001_ARuntimeAI_3_X64.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_ARuntimeX64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_005_ARuntimeX64.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleLog_ASdkX64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_004_ASdkX64.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleManufacturer = MyCompany
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleName = MyCompany A 1.0.0
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleOriginalSource = D:\Setup\1.0.0\A.exe
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleOriginalSourceFolder = D:\Setup\1.0.0\
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleProviderKey = {c170c3d6-098b-4d7c-8b60-7a09c99f83d2}
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_LicenseManager = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_006_LicenseManager_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_AAISdkX64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_000_AAISdkX64_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_ARuntimeAI_1_X64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_003_ARuntimeAI_1_X64_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_ARuntimeAI_2_X64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_002_ARuntimeAI_2_X64_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_ARuntimeAI_3_X64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_001_ARuntimeAI_3_X64_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_ARuntimeX64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_005_ARuntimeX64_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleRollbackLog_ASdkX64 = C:\Users\a_user\AppData\Local\Temp\MyCompany_A_1.0.0_20220201094619_004_ASdkX64_rollback.log
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleSourceProcessFolder = C:\ProgramData\Package Cache\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}\
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleSourceProcessPath = C:\ProgramData\Package Cache\{c170c3d6-098b-4d7c-8b60-7a09c99f83d2}\A.exe
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleTag = ABundle
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleUILevel = 4
[1188:42F8][2022-02-01T09:46:38]i410: Variable: WixBundleVersion = 9.30.1406.1
[1188:42F8][2022-02-01T09:46:38]i007: Exit code: 0x80070002, restarting: No

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Sean Hall via wix-users
Sent: Wednesday, February 2, 2022 12:49 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Sean Hall <r.sean.hall at gmail.com>
Subject: Re: [wix-users] uninstall fails after removing installer EXE at its original path

---Courriel Externe // External Email---

For some reason, your bundle requires something in WixAttachedContainer during uninstall. The full log would explain why.

On Wed, Feb 2, 2022 at 9:35 AM Gubanov, Oleg (INT) via wix-users < wix-users at lists.wixtoolset.org> wrote:

> Hello,
>
> I have a managed bootstrapper application A.exe that has an MsiPackage 
> embedded into it. I'd like to handle the following scenario:
>
> 1.         Install a product by running A.exe from its original location
> d:\setup\A.exe.
> 2.         Delete file d:\setup\A.exe.
> 3.         Uninstall the product via "add/remove programs".
>
> The first two steps complete successfully. The problem happens at step 
> (3), during the uninstallation.
> At step (3), the installer is started from the package cache location 
> C:\ProgramData\Package Cache\{some guid}\A.exe, as indicated by the 
> first line in the log file:
>
> i001: Burn v3.11.2.4516, Windows v10.0 (Build 19042: Service Pack 0),
> path: C:\ProgramData\Package Cache\{some guid}\A.exe
>
> The problem is that the installer starts looking for itself at its 
> original location, fails to find itself there, and aborts the
> uninstallation:
>
> i300: Apply begin
> ...
> w341: Prompt for source of container: WixAttachedContainer, path:
> d:\setup\A.exe
> e054: Failed to resolve source for file: d:\setup\A.exe, error: 0x80070002.
> e311: Failed to acquire container: WixAttachedContainer to working path:
> C:\WINDOWS\Temp\{38073DCD-E73A-4C38-A977-AA72E7DCF756}\79E32844E8819A5
> B8527590929F3AFC7525C327C,
> error: 0x80070002.
> e000: Error 0x80070002: Failed while caching, aborting execution.
>
> The problem can be avoided by restoring A.exe in its original location:
> then, the uninstallation completes successfully.
> But keeping d:\setup\A.exe is an extra burden on a user, and that 
> wastes disk space, considering that A.exe is copied to the package cache.
> It should be possible to uninstall the product without having A.exe at 
> its original location.
>
> How to avoid dependency on the original d:\setup\A.exe during the 
> uninstallation?
> Is it possible to have the uninstaller find itself at the package cache?
>
> Thanks,
>
> Oleg.
>
>
> ____________________________________________________________________
> 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