27

I've created an installation package using Installaware and generated an EXE and a MSI. The EXE is 3.1MB and the MSI is only 265K. Why is there such a big difference in size?

2
  • I would not recommend including the Windows Installer engine with your setup.exe file if download size is an issue. I only include the engine if I am depending on a brand new engine version that is just out in the wild from Microsoft. Otherwise almost all systems connected to the Internet will have an adequate engine installed. And even then I prefer to have the MSI inform the user to run Windows Update to get the latest engine rather than automatically install it. Commented May 22, 2014 at 19:34
  • possible duplicate of What are the specific differences between .msi and setup.exe file? Commented Aug 2, 2014 at 20:18

3 Answers 3

28

UPDATE: Some resources with information on how to handle various types of setup.exe files:


MSI File: An MSI file can only be launched by msiexec.exe - The Windows Installer Engine. An MSI file is a Windows Installer database file capable of installing software. It requires the right version of the Windows Installer Engine Runtime at the very minimum to be installable. Most systems are up to date with the latest engine versions since it comes down via Windows Update.

EXE File: The EXE file you generate is a self-extracting launcher application containing both the MSI itself as well as various runtime requirements that the setup might have. Various components an EXE file might include:

  • The version of the Windows Installer Engine Runtime the MSI requires (current version 5.0). These days this runtime should be installed by Windows Update, and your setup should just verify it is present.
  • Scripting runtimes required by custom actions in the MSI (Installscript for Installshield).
  • The .NET runtime version required by the application. I would prefer using Windows Update for this as well, but if your application is cutting edge, you might want to include the required engine. Can you set it to download rather than embedding? You can also supply it as a separate download.
  • Logo files and splash screens, potentially in different languages for multi-lingual setups.
  • Several other components are possible.

Legacy Setup.exe Installer: Note that an EXE file can also be a non-MSI installer In other words an old-style installer not based on the Microsoft MSI format (which is a MS-SQL database stored in an office-style binary file), but rather an installation script of various formats such as Wise Script, Installscript, Inno Setup, NSIS, etc... However, in this case the question was about the difference in size between the EXE and the MSI coming out of an InstallAware build, and then the difference is the runtimes explained above.

9

The difference is : MSI package contains your files + install script, and the actual installation is run by the Microsoft Installer which is a part of Windows, and it takes care of displaying Windows, logging messages etc. On the other hand, your EXE installer is holding files + actual program logic to run the install itself, being responsible for pretty much everything, hence the difference.

2
  • One thing to note is that there are many versions of msiexec, and your .MSI file will require a certain version of the Microsoft Installer. That said, users who regularly update their Windows will always have the latest and greatest msiexec installed.
    – EboMike
    Commented Oct 7, 2010 at 23:02
  • Actually an EXE file generated from an Installation tool such as InstallAware, Installshield or AdvancedInstaller generally contains runtimes and bootstrapping features to launch the MSI install in automatic ways - sometimes in several languages. Commented May 22, 2014 at 19:37
-7

The EXE probably contains setup routines that are otherwise performed by msiexec, which just executes whatever installation script is contained in the MSI.

2
  • 1
    No, this is not accurate information. Please delete. Commented May 22, 2014 at 19:31
  • Incorrect. Exe are like a wrapper around MSI database. The actual installation logic is contained in the MSI. An MSI contains a single installation information instance. EXEs hence come handy when we want to wrap multiple Windows Installers, like a wrapper. Please consider updating the answer, or deleting.
    – ArNumb
    Commented May 28, 2018 at 10:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.