3

I have created a package which contains following files to install a package.

  1. setup.exe
  2. mySetup.msi (package installer)
  3. WindowsInstaller31.msi (Prerequisite 1)
  4. NetFramework35.exe (Prerequisite 2)

When user click on setup.exe the this package runs and first check for prerequisites if they do no found on system then it first install prerequisite and then continue setup for actual product.

My problem is that I want to create single exe file in which all the above files will be zipped and when user will click on this single exe then will extract all these files and setup will continue.

I would like to distribute single exe to my client instead of these 4 files.

Can any one help me to create a single self extract exe file for my package?

Jits
  • 712
  • 7
  • 11
  • have you looked into NSIS? also, are you sure there aren't legal problems redistributing the Microsoft files? – jcomeau_ictx Jun 15 '11 at 06:44
  • @ jcomeau_ictx - Considering that the Publish option in Visual Studio sticks the Microsoft files with the installer, wouldn't it be safe to assume that there's no legal problems? – William Lawn Stewart Jun 15 '11 at 06:56

3 Answers3

3

There's a wide variety of applications out there that can do this for you.

Here's a few:

William Lawn Stewart
  • 1,205
  • 1
  • 12
  • 23
1

The free, open-source project WIX (Windows Installer XML) - which was originally a Microsoft product, but is now open sourced via Outercurve Foundation - has a feature for this called the Bootstrapper application burn.exe. The SDK can be found at CodePlex.

Though more involved than other bootstrappers to deal with due to the XML format, it is the bootstrapper I would chose due to the reliability of the WIX framework as a whole. I do not have any sample scripts for you, but there is documentation here: http://wixtoolset.org/documentation/manual/v3/bundle/

Wix author and former Microsoft employee Rob Mensching blogs about Burn: http://robmensching.com/blog/posts/2009/7/14/lets-talk-about-burn . And here is a sample showing how to install the dotnet framework: How To: Install the .NET Framework Using Burn

Here is another thread on the same issue: Generating an executable using wix

Community
  • 1
  • 1
Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
0

take a look at free version of actual installer

zmo
  • 24,463
  • 4
  • 54
  • 90
mike
  • 1