Include CAB files in MSI files

Page updated :

Environment

Visual Studio
  • Visual Studio Community 2017
  • Visual Studio Community 2019
WiX Toolset
3.11.2

※ Works in other versions, but is unconfirmed

At first

When you create Windows Installer, the files that you install are in the CAB file instead of the MSI file. will be stored. Therefore, if you create an installer normally, the CAB file is also created separately from the MSI file. If you do not have both files, the installation will not be possible.

image

You can include cab files in MSI files by changing the settings.

Steps

Open the project in Visual Studio and edit the following parameters for Product.wxs:

Wix/Product/MediaTemplate/@EmbedCab

If EmbedCab is "yes", you can include the CAB file in the MSI file.

<Wix>
  <Product>
    <MediaTemplate EmbedCab="yes" />