Include CAB files in MSI files

Page creation date :


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

※ 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.


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


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


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

    <MediaTemplate EmbedCab="yes" />