Include CAB files in MSI files

Page updated :


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

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


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


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


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

    <MediaTemplate EmbedCab="yes" />