Wix bundle custom UI: Repair failed if the the original source setup is deleted

0

Executing Modify/Repair from "Program & Features" fail if the original source setup is not found.

Created a bootstrapper with custom UI that has Repair feature. The Repair button is enabled when setup is already installed, which executes following code.

    private void RepairExecute()
    {
        Bootstrapper.Engine.Plan(LaunchAction.Repair);
    }

After installing delete the setup file. Go to "Program & Features" and modify the setup. Press Repair button and it fail. Following are log entries

[18C0:0190][2019-09-17T05:26:35]i300: Apply begin
[18C0:0190][2019-09-17T05:26:35]i010: Launching elevated engine process.
[18C0:0190][2019-09-17T05:26:35]i011: Launched elevated engine process.
[18C0:0190][2019-09-17T05:26:36]i012: Connected to elevated engine.
[0E20:1B4C][2019-09-17T05:26:36]i360: Creating a system restore point.
[0E20:1B4C][2019-09-17T05:26:36]w363: Could not create system restore point, error: 0x80070422. Continuing...
[0E20:1B4C][2019-09-17T05:26:36]i371: Updating session, registration key: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{7c12c7d8-9d4d-4dc8-9f44-f6e9453a4515}, resume: Active, restart initiated: No, disable resume: No
[18C0:1374][2019-09-17T05:26:36]w341: Prompt for source of container: WixAttachedContainer, path: C:\Users\admin\Desktop\BootstrapperSetup.exe
[18C0:1374][2019-09-17T05:26:36]e054: Failed to resolve source for file: C:\Users\admin\Desktop\BootstrapperSetup.exe, error: 0x80070002.
[18C0:1374][2019-09-17T05:26:36]e000: Error 0x80070002: Failed while prompting for source (original path 'C:\Users\admin\Desktop\BootstrapperSetup.exe').
[18C0:1374][2019-09-17T05:26:36]e311: Failed to acquire container: WixAttachedContainer to working path: C:\Windows\Temp\{30F0A48F-DEC4-4F39-9556-79BAF6D61F29}\EDE48A522EEDAEDF9AD23221F139984CC8F42E6D, error: 0x80070002.
[18C0:1374][2019-09-17T05:26:36]w350: Applied non-vital package: VS2015VCRedistPackageId, encountered error: 0x80070002. Continuing...
[0E20:1D70][2019-09-17T05:26:36]e000: Error 0x80070002: Failed to find payload: VS2013VCRedistPackageId in working path: C:\Windows\Temp\{30F0A48F-DEC4-4F39-9556-79BAF6D61F29}\VS2013VCRedistPackageId and unverified path: C:\ProgramData\Package Cache\.unverified\VS2013VCRedistPackageId
[0E20:1D70][2019-09-17T05:26:36]e000: Error 0x80070002: Failed to cache payload: VS2013VCRedistPackageId

Any idea why the setup is searching for the original source, whereas it is available at package cache and is already running from there. Here is the initial log entry

[18C0:0190][2019-09-17T05:26:33]i001: Burn v3.11.1.2318, Windows v10.0 (Build 18362: Service Pack 0), path: C:\ProgramData\Package Cache\{7c12c7d8-9d4d-4dc8-9f44-f6e9453a4515}\BootstrapperSetup.exe
[18C0:0190][2019-09-17T05:26:33]i009: Command Line: '"-burn.clean.room=C:\ProgramData\Package Cache\{7c12c7d8-9d4d-4dc8-9f44-f6e9453a4515}\BootstrapperSetup.exe" -burn.filehandle.attached=624 -burn.filehandle.self=636 /modify'
wix
burn
wix3.11
asked on Stack Overflow Sep 17, 2019 by Nasar

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0