|
-
Jul 26th, 2006, 09:37 AM
#1
Thread Starter
Hyperactive Member
[1.0/1.1] Difference between .msi and .exe
Hi. When you create a setup for a project, you get 3 files with the 1.1, a .msi, .exe and a .ini.
Now if you take the .msi and carry it to another computer, it will install the program. If you take the .exe and the .ini to another computer it will perform the same action. What then is the different between the .msi and the .exe? I noticed that the visual studio 2005 dont generate any .ini. it's just two files, the .exe and the .msi.
I'm sure this is a simple question for most people.
Jennifer
-
Jul 26th, 2006, 09:41 AM
#2
Re: [1.0/1.1] Difference between .msi and .exe
A .msi file is a packed install file that is run by the Windows Installer and does, as you've noted, the same as the .exe [+ .ini].
More information on MSI files at Wikipedia.
-
Jul 26th, 2006, 10:41 AM
#3
Thread Starter
Hyperactive Member
Re: [1.0/1.1] Difference between .msi and .exe
So is there any difference between the two? Which one is better? I mean for a final release, should I go with the .msi or the .exe+.ini?
-
Jul 26th, 2006, 10:44 AM
#4
Re: [1.0/1.1] Difference between .msi and .exe
I'd go for the MSI, it's simpler and can take advantage of new features in newer versions of the Windows Installer. Also it should be slightly smaller.
-
Jul 26th, 2006, 11:15 AM
#5
Thread Starter
Hyperactive Member
Re: [1.0/1.1] Difference between .msi and .exe
-
Jul 26th, 2006, 12:16 PM
#6
Re: [1.0/1.1] Difference between .msi and .exe
 Originally Posted by penagate
I'd go for the MSI, it's simpler and can take advantage of new features in newer versions of the Windows Installer. Also it should be slightly smaller.
The .EXE file checks for the correct version of Windows Installer and runs the setup script from the .INI file, it leaves everything else to the .MSI, it doesn't contain a setup
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Jul 26th, 2006, 06:04 PM
#7
Re: [1.0/1.1] Difference between .msi and .exe
The Setup.exe file is the bootstrapper. As CJ says, 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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|