Questions tagged [wix3]

For issues relating to deployment using Windows Installer XML, version 3.

587 questions
264
votes
31 answers

WiX tricks and tips

We've been using WiX for a while now, and despite the usual gripes about ease of use, it's going reasonably well. What I'm looking for is useful advice regarding: Setting up a WiX project (layout, references, file patterns) Integrating WiX into…
si618
  • 16,580
  • 12
  • 67
  • 84
87
votes
3 answers

Wix create non advertised shortcut for all users / per machine

In WIX, how do you create a non advertised shortcut in the allusers profile? So far I've only been able to accomplish this with advertised shortcuts. I prefer non-advertised shortcuts because you can go to the shortcut's properties and use "find…
mcdon
  • 4,931
  • 3
  • 38
  • 36
77
votes
5 answers

How to build a minimal WiX installer UI without a license page?

I would like to use the WixUI_Minimal installer, but I don't want the license page. How can I do this?
Adam Tegen
  • 25,378
  • 33
  • 125
  • 153
76
votes
13 answers

WiX 3.0 throws error 217, while being executed by continuous integration

This is the error that is thrown by our automated build suite on Windows 2008, while running ICEs (after migrating from WiX 2.0 to WiX 3.0): LGHT0217: Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is an…
Rinat Abdullin
  • 23,036
  • 8
  • 57
  • 80
69
votes
2 answers

One file per component or several files per component?

Should I wrap all the files I want to install in individual components? What is the advantage of putting several files in one component?
Nestor
  • 13,706
  • 11
  • 78
  • 119
67
votes
3 answers

In WiX files, what does Name="SourceDir" refer to?

WiX files always seem to include this line: What is "SourceDir"? What is it used for? It's not a real directory name. Is it some kind of magical value?
dan-gph
  • 16,301
  • 12
  • 61
  • 79
51
votes
1 answer

WiX undefined preprocessor variable

I'm starting to use WiX in order to do automated builds to create msi's of my c# projects and am experiencing the error "Undefined preprocessor variable '$(var.MyProject.TargetDir)'" I am using the latest WiX v3.0.5419. Inside my wxs file I am…
David
  • 15,150
  • 15
  • 61
  • 83
41
votes
3 answers

How to register file types/extensions with a WiX installer?

I didn't find an explicit answer to this question in the WiX Documentation (or Google, for that matter). Of course I could just write the appropriate registry keys in HKCR, but it makes me feel dirty and I'd expect this to be a standard task which…
OregonGhost
  • 23,359
  • 7
  • 71
  • 108
40
votes
4 answers

How do I do a silent install and uninstall with WiX and MSI?

How can a silent installer be created in WiX that does not display any UI dialogs to the user and installs, upgrades and uninstalls with default settings?
MX4399
  • 1,519
  • 1
  • 15
  • 27
38
votes
3 answers

How do you register a Win32 COM DLL file in WiX 3?

I found an example on registering DLLs, Registering an Assembly for COM Interop in a MSI file with the Windows Installer XML toolset., and WiX complains about the "AssemblyRegisterComInterop" attribute. I removed that and changed the "Assembly"…
Davy8
  • 30,868
  • 25
  • 115
  • 173
35
votes
3 answers

WiX Includes vs Fragments

What's the difference between a WiX include (.wxi file) and a WiX fragment (.wxs file)? What are the use cases for each? Which should be used and why?
alastairs
  • 6,697
  • 8
  • 50
  • 64
33
votes
2 answers

Using Wix to create 32bit and 64bit installers from one .wxs file

I would like to keep my top level .wxs DRY while building 32 and 64 bit installers. I am using the -arch argument to candle.exe to control what default installer architecture is getting built. The wall I am hitting right now is that it appears the…
KevM
  • 2,496
  • 1
  • 22
  • 25
33
votes
3 answers

Change my component GUID in wix?

When should I change or not change my component GUID in WIX? The Microsoft SDK information is confusing. Glytzhkof edit: To clarify, the question deals with when a component GUID should be changed for an MSI component. A component can change with…
Rohit
  • 3,610
  • 7
  • 45
  • 76
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
25
votes
5 answers

WiX 3 driving me crazy - trying to create desktop shortcut

I have an app that is being installed with WiX 3 - most of the install works fine by now, but trying to get the desktop shortcut to work seems to cost me my mind... I have my app being installed and I already have a shortcut on the Start Menu folder…
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
1
2 3
39 40