Reducing the Size of an MSI File
As an application packager creating Windows Installer packages, you may notice your .msi files get larger than expected after repeated edits and saves.
Here's a tip that'll put those MSIs on the treadmill and whip them back into shape.
Windows Installer .msi files are compound files that contain storages and streams, and have some of the same storage limitations as OLE document files.
If you edit and save the same .msi file over and over, it creates wasted storage space in the file. This only affects authors of .msi files and has no effect on Windows Installer users.
Developers may want to remove this wasted storage space before shipping their final .msi file.
To remove wasted storage space and reduce the final size of .msi files, you have the following options.
- Export all of the tables in the database to .idt files, and then import those into a new database. This produces the most compact storage possible.
- Use a software utility for compacting the storage space of OLE document files.
Editing using ORCA
If the Windows installer package is edited with ORCA then the size of the msi is expected to increase. In order to avoid that, we can go for the "save as" option, instead of the "save" option and create the modified package with a new msi name. This will considerably reduce the size of an MSI file.
- Login or register to post comments
- 2022 reads
- Printer-friendly version















Reducing the Size of an MSI File
Alternatively by exporting all of your tables with msidb.exe from your package and then re-importing them in to a newly created database.
And both ORCA and msidb.exe tools are available in windows Installer SDK
Prasanna Kumar Raja
Sr.Application Packager
Anovatek