Results 1 to 7 of 7

Thread: [1.0/1.1] Difference between .msi and .exe

  1. #1
    Hyperactive Member JenniferBabe's Avatar
    Join Date
    Sep 05
    Posts
    395

    [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

  2. #2
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,612

    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.

  3. #3
    Hyperactive Member JenniferBabe's Avatar
    Join Date
    Sep 05
    Posts
    395

    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?

  4. #4
    Moderator
    Join Date
    Jan 05
    Location
    Sydney
    Posts
    13,612

    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.

  5. #5
    Hyperactive Member JenniferBabe's Avatar
    Join Date
    Sep 05
    Posts
    395

    Re: [1.0/1.1] Difference between .msi and .exe

    Thanks

  6. #6
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 05
    Location
    Happily misplaced
    Posts
    2,513

    Re: [1.0/1.1] Difference between .msi and .exe

    Quote 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

  7. #7
    .NUT jmcilhinney's Avatar
    Join Date
    May 05
    Location
    Sydney, Australia
    Posts
    80,781

    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
  •