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
28
votes
4 answers

What is the purpose of administrative installation initiated using msiexec /a?

Windows Installer technology supports administrative installation. The command line for initiating administrative installation is: 'msiexec /a setup.msi'. I want to understand the purpose of this type of installation and in what scenarios are they…
Anand Patel
  • 6,031
  • 11
  • 48
  • 67
28
votes
4 answers

Include all Files in Bin folder in Wix installer

I'm new in Wix, I succefully create an MSI installer for my project, but my Bin folder have a lot of DLL's files with EXE main file, I want to include all these files with the installer I found THIS solution, that seems right but unfortunately I can…
Abdulsalam Elsharif
  • 4,773
  • 7
  • 32
  • 66
28
votes
1 answer

What is the WiX equivilent of Environment.SpecialFolder.ApplicationData from .NET?

I need to install a file into the Environment.SpecialFolder.ApplicationData folder, which differs between XP and Vista. Is there a built in way to reference the correct folder in WiX or will I have to use conditional checks for OS and do it…
Davy8
  • 30,868
  • 25
  • 115
  • 173
28
votes
2 answers

How to log an installation made from a WiX bundle

When creating a Windows installer using the WiX (Windows Installer for XML) toolset, how do you make the install process write logging information to a log file? Is there a command-line switch which triggers the output of the log file?
Ken Richards
  • 2,937
  • 2
  • 20
  • 22
28
votes
4 answers

How do I make a WIX MSI always remove a previous version?

I have CI build system builds an MSI whenever a developer checks in a change. We run automated acceptance tests on the installed MSI. Basically every MSI is a complete install of the product, so we don't have any versioning (ala Windows installer)…
grillp
  • 1,273
  • 1
  • 11
  • 13
27
votes
2 answers

Referencing a WixVariable defined in a WiX Library Project from a WiX Setup Project

I'm trying to configure a WiX setup and library so that the version of one of the files in the library is used as the Product/@Version in the setup. Background In a setup with the files defined locally this is relatively straightforward in that…
Michael Phillips
  • 862
  • 2
  • 7
  • 17
27
votes
5 answers

How do I pass msiexec properties to a WiX C# custom action?

I have an MSI file being created with Wxs 3.0. My MSI references a C# custom action, written using the new C# Custom Action project. I want to pass an argument to msiexec that gets routed to my custom action - for example: msiexec /i MyApp.msi…
David Laing
  • 7,605
  • 10
  • 33
  • 44
27
votes
3 answers

Typelib Generation and Installation with WiX

After asking about what Visual Studio does to register a COM Library, it became clear that VS did two things for COM registration: Registered the COM Library Creates and registers a Type Library Visual Studio seems to do this registration using…
Robert P
  • 15,707
  • 10
  • 68
  • 112
27
votes
2 answers

WiX script with only Welcome and Completed screens

I need a WiX 3 script to display to display only 2 dialogs: Welcome & Completed. Thats it no need for EULA, folder selection etc. All help appreciated.
Tim Murphy
  • 4,892
  • 4
  • 40
  • 48
27
votes
6 answers

Why isn't my service deleted on uninstall? (WIX)

Even after a reboot, the service is still there, even though the executable file is gone. I'm using WIX version 3.0.5419.0
Rupert Morrish
  • 785
  • 2
  • 10
  • 18
27
votes
3 answers

WiX: How to register application to start when Windows launches?

I'm exploring distribution of .NET desktop applications with MSI generated by WiX. So far it works great. But I've got a few questions, googling can't help out with. What's the advised way of registering application to start when windows launches…
Rinat Abdullin
  • 23,036
  • 8
  • 57
  • 80
26
votes
2 answers

Windows Installer and the creation of WiX

We currently use WiX for building our MSI files, and as such it is the only MSI builder I have had experience using. I know you can build installers natively in Visual Studio though. What are the differences between using WiX and Windows Installer,…
codewario
  • 19,553
  • 20
  • 90
  • 159
26
votes
2 answers

WiX ServiceControl Stop a service on uninstall, but don't start it on install

I need the service to stop and be removed on its uninstall, but I don't want it to start on install. The problem is, the start attribute on the ServiceControl element does not provide an option to disable starting. Or am I just missing it? I'm using…
Jonn
  • 4,599
  • 9
  • 48
  • 68
26
votes
2 answers

wix installer failing Error code 2819

I am attempting to build an installer with wix. It compiles and runs. Unfortunately when I run it, I accept the license agreement and hit next, then it explodes. Error "The installer has encountered an unexpected error installing this package. This…
DotNetRussell
  • 9,716
  • 10
  • 56
  • 111
26
votes
3 answers

Wix - Setting Install Folder correctly

I'm creating a program which is being installed by Wix, using VS 2010 and I've already got the product.wxs ready. In my wxs file, I've got directory definitions which looks like this:
CodeMonkey
  • 11,196
  • 30
  • 112
  • 203