wix

How to put version information in a multi platform program *nix and win32?

I want to know what is the standard way of doing it. currently I'm thinking in add a series of defines in a header file and inlcudie that file in the main resource file win win32 to update the version resource in win32 and in *nix make some global functions to return this information. and in windows make the msi install file also refle...

WiX installer and custom actions

Hi, I have an application that is a not so simple Windows service (C#). I created an installer using Visual Studio 2008, which did the job of installing the service on the clients machine, but using the Visual Studio deployment project has 2 drawbacks: I can't seem to get the installer to build using MSBuild (i've tried the DevEnv.exe...

How to use conditions in features in WiX?

Hello, I am trying to make simple windows intaller and I don't know how to deal with this. I have two features - feature1 and feature2. I want feature2 to be installed only if the user selected feature1 to be installed. So I tried: <Feature Id='core' Title='Core' Description='ØMQ 1.0.0 core functionality and C++ API' Level='1'> <Co...

How to specify c:\users\public (%PUBLIC%) in WiX?

Is there a Property that resolves to the public folder? I don't want to hard code "c:\users\public" in the Directory structure, obviously, but I can't find a predefined Property that resolves to this. Is there an accepted way of specifying files to be installed here and/or removed on uninstall? ...

WIX MSBuild automation help - solution best practices

I know there are many questions out there regarding this same information. I have read them all, but my brain is all turned around and I don't know which way to go. Plus the lack of documentation really hurts. Here is my scenerio. We are trying to use WIX to create an installer for our application that goes out to our dealers for our pr...

How do I get the location of a file in a WiX Script

How do I make a custom action that references a file on the command line? I have the custom action accessing the MYSQL properties correctly, but I haven't figured out the incantation to access the path to the installed sql script. Below are the relevant sections of the WiX script. I am trying to get the custom action to reference the ...

WiX Search and Replace on a configuration file

I'm trying to make an install using WiX and I need to modify a configuration file (not XML or INI) with entries that a customized WiX dialog. Is there a good way to do this? Do I need to make a VB script custom action, perhaps? Below is the relevant bits of the wxs file: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id...

How to differentiate between Vista SP1 and Server 2008 at install

I have a Wix installer which should be allowed to run on Windows Server 2008 but not on Vista. According to Microsoft's Operating System Properties page, this is not possible using the parameters they provide for this purpose (VersionNT and WindowsBuild). Has anyone solved this problem or know how to solve it? Thanks! ...

How to convert vdproj file to WiX format?

Hi all, 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 converting the file to WiX format but looking at its contents scared me quite a bit...

Get INI file value with WiX

I'd like to read a value from an INI file in a WiX installer. I've just tried to use IniFileSearch, but this looks for an INI file or a path specified in an INI file (the documentation isn't clear), it doesn't read a value from an INI file. Do I need a customaction to do this? And if so, what would people suggest? Seems very strange if ...

Add assembly and debug symbols (pdb files) to GAC - Wix Installer.

I am using Wix Installer (3) for deploying my application. How can I add both the output dll from one of the projects in my solution and the debug symbols (pdb files) to the GAC? (I have a C# application developed in Visual Studio 2008) ...

Accessing msi filename from within msi file

Is it possible to obtain the filename of an msi file from inside the msi file (when using either install shield or wix)? I am looking for an easy solution to a problem I am trying to solve and was going to key off of the msi filename not being "x". I have an existing msi file that I need to run silently and only accepts one command lin...

How do I use WiX to deploy an INF-based USB driver

This question could be considered a duplicate of: http://stackoverflow.com/questions/677686/how-do-i-deploy-a-inf-based-driver Except that I want to do that entirely in the installer, not with a separate program. There's supposed to be an example downloadable here: http://msdn.microsoft.com/en-us/library/dd163212.aspx But there's no ...

WiX XmlFile ElementPath multiple results

I've just used the WiX XmlFile element with an ElementPath that matches multiple XML nodes and it just updates the first one, rather than all of the ones that match. Is this a bug in WiX? Can anyone suggest a workaround for this? ...

How to write a registry entry on uninstallation using wix

Hi, Is it possible to write to windows registry during uninstallation of an application? Is such functionality supported by Wix. I want to avoid doing it in an assembly and calling the function using custom actions. However, I would not mind creating an in-script custom action. Regards, Wamiq ...

Reusing WIX components to speed up candle/light.

I am fairly new to WIX, so forgive me if I'm completly missing the boat here, but I was wondering if it was possible to reuse components (mwm,cab,etc) from within a wxs file without having light re-link them every time. The installer I'm working on has several executables, dlls and config files that tend to change between each install. ...

iis wildcard redirect - wix issue

<Component Id="WebVirtualDirComponentX86" Guid="E6995A18-BC79-4A72-BD82-F3961D72EC00"> <WebVirtualDir Id="WebVirtualDirX86" Alias="TestWebApp" Directory="INSTALLDIR" WebSite="OurWebSite"> <WebApplication Id="WebApplicationX86" Name="TestWebApp" > <WebApplicationExtension CheckPath="no" Script="yes" Executable="C:\WINDOWS\Microsof...

C# custom action in Wix

When my application is uninstalled, the server needs to be notified so that it can free up the license key assigned to the client. This is done via a web service call. I created a C# custom action that does this. The problem is, the uninstaller is quitting saying that it couldnt find a dll. The error log for the msi contains the foll...

Set Wix property only if certain condition is met

What I would like to do is this: <Property Id="LICENSEKEYPATH"> REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE <DirectorySearch Id="ProgramDataSearch" AssignToProperty="yes" Depth="4" Path="[#ProductDirInAppData]"> <FileSearch Id="LicenseFileSearch" Name="lic-conf.enp"/> </DirectorySearch> </Property> When my app...

How to include Wix Fragments created by Heat

I have the following fragment <?xml version="1.0" encoding="utf-8"?> ...