I had the same problems with another package (.NET framework) and Wix 3.7. I used the Wix source code to find the appropriate package names and registry keys to check, and then paste the corresponding bits into my installer. Then I intentionally installed "Compressed =" yes ", because I wanted to insert this file into my installer instead of downloading it.
A report was published similar to yours, published to this mailing list thread :
Benjamin Mayrargue: if ExePackage is set to DownloadUrl and Compressed, yes, with error LGHT0103: the system cannot find the file '' with type ''.
Marcus Wirl: Okay, I see. If you want ExePackage to be compressed into your bootstrapper.exe (compressed = "yes"), you need to specify it using the "Source" attribute. The reason that during compilation it will be compressed into your accelerator, you should not declare DownloadUrl. If you specify compressed = no, your ExePackage will be downloaded from DownloadUrl during the installation of your accelerator.
Rob Mensching: More specifically, you cannot use the RemotePayload element and compressed = 'yes' with the ExePackage element. This does not make sense, and the error here is that the compiler did not give you an error message here saying this.
So, you correctly identified the same solution to the problem.
The Compressed attribute, incidentally, indicates: "Should the packet payload be loaded into the container or left as an external payload." This external payload can be either RemotePayload or another file on disk, but a typical setup is one bootloader with all the resources built into it.
Using yes for the Compression attribute will allow you to install your application and the VC ++ runtime, even if the user has a slow or non-existent Internet connection. Remove DownloadUrl and RemotePayload from your installer and replace them simply with Compressed="yes" as follows:
<?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Bundle Version="1.0.0.0" UpgradeCode="e349236d-6638-48c5-8d8b-db47682b9aeb"> <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> <Chain> <ExePackage Name="vcredist_x64.exe" Compressed="yes"> </ExePackage> </Chain> </Bundle> </Wix>
Then download the vcredist_x64.exe file (on your own, once) and place it next to your test.wxs file. Adjust the "Name" if you want it to be in a different place. Note that this will increase the size of your bootable boot file by approximately the size of the vcredist_x64.exe file, so it is not a good idea if your users download your installer.
source share