Include CAB files in MSI files

Page creation date :

environment

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

※ It works in other versions, but it is unconfirmed

At first

When you create the Windows Installer, the files you install are in a CAB file instead of an MSI file. Stored. Therefore, if you create an installer normally, a CAB file will also be created separately from the MSI file. The installation cannot be performed without both files.

image

Cab files can be included in the MSI file by changing the settings.

procedure

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

Wix/Product/MediaTemplate/@EmbedCab

EmbedCab to yes allows CAB files to be included in MSI files.

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