I'm using WixSharp v1.9.2 to create an MSI file. Since I need to package a very large folder, I create the project like this:
var project = new Project(
ProjectName,
...
new MediaTemplate {
CompressionLevel = CompressionLevel.mszip,
EmbedCab = true,
MaximumUncompressedMediaSize = 1000,
MaximumCabinetSizeForLargeFileSplitting = 2048,
},
...
);
This produces an MSI file correctly sized at almost 3GB. However, when I try to execute it, I get the error The system cannot open the device or specified file
.
To fix this, I tried setting the EmbedCab property to false. This seems to work correctly, but this time, in addition to the MSI file, CAB files are also generated.
Is there a way to package everything into a single MSI file?