27

We are working on a winforms app in Visual Studio 2005 and the setup project we created output both an MSI and an EXE. We aren't sure what the EXE file is used for because we are able to install without the EXE.

3 Answers 3

26

It's a bootstrapper that checks to make sure that the .NET Framework is installed, before launching the MSI. It's pretty handy.

I suggest using something like SFX Compiler to package the two together into one self-extracting .exe and then launch the extracted setup.exe. This way you retain the benefits of the bootstrapper, but your users only download a single thing.

Edit: also see

3
  • 1
    link is broken, any replacement available (simple google didnt yield anythign, but then I didnt know what to look for :P) Jan 21, 2009 at 8:48
  • 1
    can you also point out that the setup.exe automates the download and install of the prereqs Jan 21, 2009 at 9:01
  • I'm using Make SFX 74.cz/en/makesfx instead since it supports command line (for automatic builds)
    – loraderon
    Oct 20, 2010 at 6:29
2

The EXE checks if Windows Installer 3.0 is present and downloads and installs it if it's not. It's needed only for Windows 2000 or older. Windows XP and newer all have Windows Installer 3.0 out of the box.

Other prerequisites, like .NET, are checked for by the MSI itself.

1
  • 1
    not true, the bootstrapper checks for all specified prerequisites, including .NET
    – Marek
    Apr 8, 2010 at 7:49
0

I think the EXE is just a wrapper/bootstrapper for the MSI in case you don't have Window Installer. If you have the requisite Windows Installer version installed then the MSI should work fine on its own.

1
  • it also does auto download of WI and other packages like .NET Jan 21, 2009 at 9:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.