Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generating an executable using wix

Tags:

wix

wix3

I am learning Wix and I want to generate a setup.exe file instead of a setup.msi.

Is that possible?

like image 659
ebasconp Avatar asked Jan 12 '10 02:01

ebasconp


People also ask

How do I create an MSI File with WiX?

Adding a WiX setup project In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.

What is WiX Installer used for?

Windows Installer XML Toolset (WiX, pronounced "wicks"), is a free software toolset that builds Windows Installer packages from XML. It consists of a command-line environment that developers may integrate into their build processes to build MSI and MSM packages.

How do I create a Wixproj File?

A simple way to create a WIXPROJ file is to type, "msbuild projectfile. wixproj" at the command line (where "projectfile" is the name of the project file). If WiX has been installed, Visual Studio will create a standard msbuild project file. WIXPROJ files can also be created and edited using a text editor.


1 Answers

A setup EXE is usually referred to as a bootstrapper or chainer. WiX 3.5 will ship with an executable called burn.exe, unfortunately this is still under heavy development.

If you're just after a basic self-extracting EXE with no additional logic you can use the included setupbld.exe with WiX. However it's pretty limited and only includes the most basic functionality.

Alternatively, 7-zip includes basic functionality for creating a setup.exe from an existing MSI. You will need to install the SFXs for installers addon first.

If you're after additional logic, dependency checking, etc. there are loads of alternatives. Personally I use IRMakeBootstrap, but have heard very good things about dotNetInstaller on the wix-users mailing list.

  • dotNetInstaller
  • IRMakeBootstrap (Commercial product, licensed as part of MSI Factory)
  • Visual Studio Bootstrapper (Supports dependencies, not sure about self-extracting exe though)
like image 135
saschabeaumont Avatar answered Oct 04 '22 18:10

saschabeaumont