Solved

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

Posted on 2007-11-27
6
1,976 Views
Last Modified: 2013-12-16
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
Comment
Question by:EEssam
6 Comments
 
LVL 8

Assisted Solution

by:digital_thoughts
digital_thoughts earned 150 total points
ID: 20360441
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
 
LVL 8

Expert Comment

by:digital_thoughts
ID: 20360458
Also, an MSI can be deployed to an active directory environment using group policy.
0
 

Author Comment

by:EEssam
ID: 20360523
Can I just distribute the MSI, without the exe?
0
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
LVL 7

Assisted Solution

by:Maverick_Cool
Maverick_Cool earned 50 total points
ID: 20360637
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
 
LVL 8

Expert Comment

by:digital_thoughts
ID: 20360667
Yes you can distribute just the MSI as long as you will be distributing to environments with Microsoft Windows.
0
 
LVL 6

Accepted Solution

by:
Roopesh_7 earned 300 total points
ID: 20360875
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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question