How to make WiX bootloader download MSI package?

I am reading this section of the WiX tools manual and wondering how to get the WiX bootloader to load MSI ? For example, before installing my application, the bootloader should download and install:

  • .NET Framework Client Profile
  • Common SQL Server 2008 R2 Management Objects.

I thought I could describe the corresponding MsiPackageas follows:

but the link to the schema for the element MsiPackagereports that

"At a minimum, the SourceFile or Name attribute must be specified."

And, of course, this is not a lie - without SourceFileor Namethe package project is compiled with errors.

Adding RemotePayloadin MsiPackagethe following way:

  <MsiPackage Name="redist\SharedManagementObjects.msi"
              DisplayName="Microsoft SQL Server 2008 R2 Management Objects"
              DisplayInternalUI="yes"
              Vital="yes"
              DownloadUrl="http://go.microsoft.com/fwlink/?LinkID=188438&amp;clcid=0x409">
    <RemotePayload Size="10953728"
                   Version="10.50.1600.1"
                   ProductName="Microsoft SQL Server 2008 R2 Management Objects"
                   Description="Microsoft SQL Server 2008 R2 Management Objects"
                   Hash="6ce3a433309c63d98bcf0e2b9f1dfaed8cc18783"/>
  </MsiPackage>

causes a build error:

Unable to read package. '' This installation package cannot be opened. Verify that the package exists and that you can access it, or contact your application vendor to verify that it is a valid Windows Installer Package.

Did I miss something?

+5
source share
1 answer

A similar question was answered here :

It is not supported today; RemotePayload only supports the fields you need to verify the downloaded file is expected, but nothing more than that. This works for .exe because Burn refers to those who have black boxes. Burn collects a lot more data from MSI packages.

Thus, the error is that it is an authorized MsiPackage child or that it does not yet support all the data required for MSI.

+4
source

All Articles