Solved

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

Posted on 2007-11-27
6
1,991 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

 
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

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

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

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…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

705 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