-
Hi, I am trying to build an msi for a go binary and it dependents on a large image file that is around 2.3GB, i have split the file into three part files, when i try to build the msi with the cabinet files embedded, all the wixtoolset steps i use (candle; light) goes fine, and i get an msi, upon installing though it fails with the following error. // screenshots of the error popups // the product.wxs fragment <MediaTemplate EmbedCab="yes" />
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="$(var.Program_Files)">
<Directory Id="INSTALLDIR" Name="test">
<Component Id="ImageFile1" Guid="*">
<File Id="ImageFile1" Source="test.img.0" KeyPath="yes" Checksum="yes" />
</Component>
<Component Id="ImageFile2" Guid="*">
<File Id="ImageFile2" Source="test.img.1" KeyPath="yes" Checksum="yes" />
</Component>
<Component Id="ImageFile3" Guid="*">
<File Id="ImageFile3" Source="test.img.2" KeyPath="yes" Checksum="yes" />
</Component>
<Component Id="mainExecutable" Guid="*">
<File Id="mainExecutable" Source="foo-bar.exe" KeyPath="yes" Checksum="yes" />
</Component>
<Component Id="AddToPath" Guid="09CXXX3-44DE-4XXX-BDAD-72BE10C10542">
<CreateFolder/>
<Environment Id="PATH" Name="PATH" Value="[INSTALLDIR]" Permanent="no" Part="last" Action="set" />
</Component>
</Directory>
</Directory>
</Directory> I also tried to use the I got an error from looks similar to this olde issue: #1155 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Look in the MSI log for the lines surrounding "2755". What do they say? |
Beta Was this translation helpful? Give feedback.
-
are you sure you want Checksum on your image fragments? That is for files with a PE header. |
Beta Was this translation helpful? Give feedback.
-
An MSI file is in the COM Structured Storage format. With the default sector size, that format has a limit of 2GB. Since the MSI APIs don't expose the sector size when creating a new MSI, it's probably safe to assume that it only supports the default sector size. You can use a WiX bundle to deliver the MSI with multiple cabs in a single binary. |
Beta Was this translation helpful? Give feedback.
An MSI file is in the COM Structured Storage format. With the default sector size, that format has a limit of 2GB. Since the MSI APIs don't expose the sector size when creating a new MSI, it's probably safe to assume that it only supports the default sector size.
You can use a WiX bundle to deliver the MSI with multiple cabs in a single binary.