• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2022
  • Last Modified:

Setup.msi & setup.exe -- what is the difference?

Hi,

I'm creating a setup project for my application. Two files were created when I compiled the project:

Setup.msi & setup.exe

What is the difference and which one I should distribute?

Thanks.
0
EEssam
Asked:
EEssam
3 Solutions
 
digital_thoughtsCommented:
An MSI is a database file that is used by the Windows Installer to install your application, whereas an exe includes an installer. Microsoft recommends using MSI to distribute applications.
0
 
digital_thoughtsCommented:
Also, an MSI can be deployed to an active directory environment using group policy.
0
 
EEssamAuthor Commented:
Can I just distribute the MSI, without the exe?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
Maverick_CoolCommented:
I believe one of them is a "bootstrapper" type app which executes any presetup commands that you supply it. Bottom line is you need both of them, just in case. One executes the other. Just like Office setup for example, you can't run the office setup file (named to something obvious) but you must run the setup.msi file.
0
 
digital_thoughtsCommented:
Yes you can distribute just the MSI as long as you will be distributing to environments with Microsoft Windows.
0
 
Roopesh_7Commented:
Hi friend,
The Setup.exe file is the bootstrapper. It does all the checking and validation to make sure it is OK to run the MSI. If you include the Framework with your installer it is Setup.exe that checks for the Framework already installed and then installs it if required. It also does the same for any other prerequisites. If you run the MSI directly then you'll install your app but you'll have no guarantee that it will work. If you know for a fact that all the prerequisites are in place then you can run the MSI directly, otherwise you should run Setup.exe and let it invoke the MSI if appropriate.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now