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&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?
source
share