Questions tagged [wix]

The WiX Toolset (formerly known as Windows Installer XML) is a toolset that builds Windows installation packages and WiX bootstrappers from XML source code. The toolset supports a command line environment that developers may integrate into their build processes to build MSI and MSM setup packages and EXE bootstrappers. For the cloud-based web development platform, use the [velo] tag.

The WiX Toolset (formerly known as Windows Installer XML) is a toolset that builds Windows installation packages and WiX bootstrappers from XML source code. The toolset supports a command line environment that developers may integrate into their build processes to build MSI setup packages, MSM merge modules, MSP patches and EXE bootstrappers. The installer also provides a Visual Studio extension that creates WiX projects, which can be built with Visual Studio or MSBuild.

References:

10232 questions
31
votes
3 answers

WiX installer fails with error code 2819

I am trying to create an installer using WiX which doesn't show the license agreement at the start. But I get the error as below. This is the full Product.wxs file I have at the moment. It compiles and builds OK. Why am I getting an error like…
user20358
  • 14,182
  • 36
  • 114
  • 186
31
votes
7 answers

WIX Autogenerate GUID *?

Let's say I generate my WIX XML file with a Product Id of *. Also for each Component GUID I use a *. Behind the scenes is the * spinning a unique…
aherrick
  • 19,799
  • 33
  • 112
  • 188
31
votes
3 answers

Make WiX installation set upgrade to the same folder

How can I make a major upgrade to an installation set (MSI) built with WiX install into the same folder as the original installation? The installation is correctly detected as an upgrade, but the directory selection screen is still shown and with…
Magnus Akselvoll
  • 1,257
  • 1
  • 11
  • 16
31
votes
4 answers

How to make WiX leave files after uninstall?

Is there a way to NOT delete files after an uninstall?
glenneroo
  • 1,908
  • 5
  • 30
  • 49
31
votes
1 answer

Build WiX 3.6 project targeting x64?

My solution is built with platform setting "Any CPU". For my WiX 3.6 installer project settings, it seems that I can't set the target platform to "x64"; only "x86" is available. Can the WiX project be built targeting x64?
sean717
  • 11,759
  • 20
  • 66
  • 90
31
votes
4 answers

How to convert vdproj file to WiX format?

I need to convert a vdproj file to WiX format so that I can get it building using msbuild. One solution was to call the devenv executable from msbuild and build the vdproj file from there but that's just nasty. I thought that I would try manually…
Draco
  • 16,156
  • 23
  • 77
  • 92
30
votes
3 answers

Wix- How to copy a directory to install folder

I have a Bin folder with many files in my project. For now, I only know how to add specific files to install folder with the code below. However, I want to…
Jack He
  • 1,683
  • 3
  • 18
  • 29
30
votes
1 answer

Run ExeCommand in customAction as Administrator mode in Wix Installer

I am new to wix installer. I have developed a set-up using wix installer for my application and I need to execute a Custom Action to run a command in cmd.exe. In XP it works fine. But in Windows 8 & 7 the cmd prompt needs to be run as…
Dah Sra
  • 4,107
  • 3
  • 30
  • 69
30
votes
2 answers

Wix - How to run exe files after installation from installed directory?

I'm using a program which is being installed using wix. (Don't know if it's relevant but it's a C# program) I want to run an exe file which was installed by the msi file, but the location of the installation is unknown to me since the user chooses…
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203
29
votes
2 answers

Setting environment variables requires reboot on 64-bit

I am working on an installer using Wix 3.5 that needs to set the system PATH environment variable. This is how I am setting the environment variable:
Alan Spark
  • 8,152
  • 8
  • 56
  • 91
29
votes
5 answers

Wix and .NET Framework (prerequisites)

How can I have my Wix package to download the required .NET Framework when it's not yet installed in the client's machine? I already have the condition to check for the installed .NET version but I'm not sure how to have it downloaded and installed…
Leon Tayson
  • 4,741
  • 7
  • 37
  • 36
29
votes
3 answers

How can I exclude files from being harvested with heat (WiX 3.5)?

I would like to harvest a folder with a lot of files by using heat.exe. But instead of harvesting all files, I would like to exclude specific file extensions like "*.txt" or something like that. How can I do this?
Marcus
  • 1,105
  • 2
  • 21
  • 35
29
votes
2 answers

Duplicate symbol 'WixAction:InstallExecuteSequence/RemoveExistingProducts' found. This typically means that an Id is duplicated

I am developing an installer project using WiX 3.9 toolset. I am trying to uninstall the previous version during the install of a new version. I tried the below one in product.wxs,
user2681579
  • 1,413
  • 2
  • 23
  • 50
29
votes
1 answer

WiX localization garbled words under installer properties tab

I'm trying to do localization in WiX installer. How can I fix the garbled words shown below in the installer properties? The language that I defined is Japanese.
user1219310
  • 732
  • 1
  • 9
  • 23
28
votes
3 answers

A complete WiX 3.6 bundle example bootstrapping a .NET 4 Client Profile

I tried to construct a working example of a WiX 3.6 installation script. We currently use WiX 3.5 and now we would like to begin installing the .NET 4 Client Profile framework as a pre-requisite for our MSI file that our product.wxs script creates.…
Jason Stevenson
  • 4,004
  • 3
  • 29
  • 49