Stuck with WiX bootstrapper; it gives "Error 0x80070643: Failed to install MSI package"

3

I created a .msi using the WiX Toolset, and it works fine. But the problem is when I want to run the .msi using WiX Bootstrapper project, it gives me the below errors in the log file.

Error 0x80070643: Failed to install MSI package. Error 0x80070643: Failed to execute MSI package. Error 0x80070643: Failed to configure per-machine MSI package.

Here is my WiX Bootstrapper bundle code snippet:

 <Bundle Name="BootstrapperHelloWorld" Version="1.0.0.0" Manufacturer="Arifur Rahman" UpgradeCode="1dd53ea0-e19b-4e89-a85f-97ab912700d3">
     <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

     <Chain>
        <MsiPackage SourceFile="D:\HelloWorld\BootstrapperHelloWorld\Prerequisit\HelloWorld.msi" />
    </Chain>

.net
wix
asked on Stack Overflow Feb 10, 2015 by Arifur Rahman • edited Nov 23, 2015 by Peter Mortensen

1 Answer

2

The error for absolute path will only happen when the WiX bundle tries to compile your Bundle.wxs file and if it doesn't find the MSI file in the location you mentioned. That error won't happen at run time. Also if you set the MSIPackage Compressed property, then your MSI file will be added as part of the bundle EXE file and not left as a separate file.

Do this, then run your bundle and paste the log file of the bundle and also the MSI logs here.

The MSI log will be at "C:\Users\username\AppData\Local\Temp{logfilename}.log". {logfilename} for the MSIpackage will be based on the MSIPackage → LogPathVariable - Name of a variable that will hold the path to the log file.

An empty value will cause the variable to not be set. The default is "WixBundleLog_[PackageId]" except for MSU packages which default to no logging.

answered on Stack Overflow Feb 14, 2015 by Isaiah4110 • edited Jan 7, 2017 by Peter Mortensen

User contributions licensed under CC BY-SA 3.0