wix

Why MSI CustomAction that sets a reg key needs to be deffered on Vista with UAC?

We have a CustomAction that sets some registry key HKEY LOCAL_MACHINE. This wasn't working on Vista with UAC, until we made the action "deferred". The installer worked in other cases. Anyone knows why? We are using WIX to create the installer. ...

MSI Bootstrapping: External URLs

Much searching has lead me to find several descriptions of how to create a bootstrapping msi, but these solutions all assume the msi is local or a standard Windows component. Is there a way to make an msi that downloads an installer (which is also an msi) with normal MSI or Wix code rather than by having the bootstrapper execute some no...

Any pointers on making a downloader application? Preferably a Wix/MSI ?

We've got an application we'd like our users to download. Currently they click a link and download the EXE. What we'd like to do is have a launchpad/downloader application that would be small and fast to download, which would then download and install the main application. In a perfect world the downloader would be a MSI (so we could ...

Wildcard application maps in IIS using WIX

Is it possible to add a wildcard application map in IIS6 from the wix installer package? I know how to add application extensions however can't see any way to add wildcards. This is needed for ASP.Net MVC to function properly. Thanks ...

How to generate WiX XML from a .reg file?

Is there a tool to generate WiX XML given a .reg file? In 2.0, you were supposed to be able to run tallow to generate registry XML: tallow -r my.reg For what it's worth, the version of tallow I have is producing empty XML. In 3.0, tallow has been replaced with heat, but I can't figure out how to get it to produce output from a .re...

Set existing Web Service Extension to "Allow" using WiX

In IIS Manager under Web Service Extensions, ASP.NET v2.0.50727 is set to "Prohibited" by default. I would like to set this to Allow during the install. I am currently using WiX Version 2. I have tried using: <Component Id="Allow_WebServiceExtension_ASP.NET_2.0" DiskId="1" Guid="02247363-E423-41E1-AC15-BEF589B65A4D"> <WebServiceE...

WIX: How can the registry key be changed based on the OS on which the installer is running ?

I want to set registry keys in following way if OS is Vista then HKLM\MyKey1\MyValue=1 else HKLM\MyKey2\MyValue=1 I know how to set Registry keys in WIX but it seems the condition cannot be set on element. ...

MSI packaging guidance

We're in the process of packaging combinations of our products/modules. Some of them are stand-alone some are interdependent. All versions must be deployable side-by-side. As it is we're considering two choices: One MSI per package and version One MSI per product/module and version The first alternative would mean that combinations o...

Including all dependencies

I'm just starting out with WiX as I need to be able to automate building an MSI on our CI server. Is there anyway to automatically include all the dependencies of a project? ...

Wix Custom Actions with WixUI_Minimal

So, I'm trying to, after an application finishes installing (though in truth, it really doesn't matter when the secondary application is run, since it doesn't interact with the installed files during installation), run another program which is bundled with the application. Pertinent code (with various stuff replaced with "...": <direct...

Installing Capicom without SelfReg: Wix Custom Actions Not Found (Err 2721)

After following the advice in this question successfully, I added a couple additional lines of code for another custom action. This one is intended to call regsvr32 on the copy of capicom which I've tried to put in the user's system folder. However, I'm getting error 2721, which seems to be a custom action not found error, from what I'...

How do I encrypt app.config file sections during install with WiX?

I have found an example for encrypting a web.config during installation here, but my app is a windows service. The aspnetreg_iis method works only for web.config files. I know how to programatically encrypt the config file, but I don't think I can do that using WiX. Am I wrong? Any ideas? ...

Good resources for learning how to create MSI installers from WiX

I've given up trying to apply lipstick to the pigs of installers that come out of VS and have decided to look at WiX. What resources would you recommend to learn and reference? (Note - this is not a which installer tech do you use question - its specific to WiX) ...

What is the best way to specify whether InstallPrivileges is limited or elevated at the command line in WIX?

I want to create an MSI in WiX such that it can take a command line parameter to indicate whether it is a per-machine or per-user installation and consequently whether to raise a UAC dialog. What is the best way to accomplish this? ...

How to add a WIX custom action that happens only on uninstall (via MSI)?

Hello, I would like to modify an MSI installer (created through WIX) to delete an entire directory on uninstall. I understand the there RemoveFile and RemoveFolder options in WIX, but these are not robust enough to recursively delete an entire folder that has content created after the installation. I noticed the similar entry here (h...

Automated-build version number with WiX, Inno Setup, and VS2008

Basically what I need is an automated way to update the product version number in WiX (3.0 with Votive etc), and then get that version number into an Inno Setup "bootstrapper" I pretty much have the process mostly automated, however version numbers still need to be updated manually which obviously isn't ideal, but I couldn't find how to...

Manage configuration files with WiX

I have an application with several files that contain configuration parameters and other data that changes as the user uses the application. These files can change with newer versions of my software, but the user can also modify them (or they may be changed by the application itself). Basically, I'm looking for a solution to prevent th...

Why is the application size in Add/Remove Programs increasing each time my app is uninstalled and reinstalled?

It's a WiX MSI installer and each time I uninstall and reinstall it in my virtual machine environment the size reported in Add/Remove Programs gets bigger. It's up to 200MB now when the installed files are only just over 30MB. Any idea how this could happen and what I might be doing wrong? Edit: Not using any custom actions, and I don...

How do you register a win32 com dll in WiX3?

So I found this example on registering DLLs: http://blogs.msdn.com/robmen/archive/2004/04/28/122491.aspx and WiX complains about the "AssemblyRegisterComInterop" attribute. I removed that and changed the "Assembly" attribute to win32 and it says I need to specify the AssemblyManifest attribute, but I don't know what to put there. ...

How do I install a .NET DLL into a COM+ application using MSI (WiX)

Update: looks like this is indeed a WiX limitation - Cannot add 64bit com+ component (3.0.3907.0) I have a .NET application with an MSI installer created using WiX 2.0. The installer creates a COM+ application (amongst other things) and installs a .NET assembly as a component into this application. This DLL is pure managed, however it c...