wix

Using WiX, how to install single file to (potentially) multiple sub-directories, based on what is available at install time?

I'm using WiX, and would like to know the .wxs necessary to take a file and install it to every available sub-directory of a particular location. This could mean 0 or more final installation locations, determined at install time based on the currently existing directory structure. For example, if I started the install with: \target \su...

"Bad Image" problem with Heat in Wix 3.0 with typelibs

When using heat (from Wix 3.0.4805.0) to generate Wix documents off of a typelib that's generated by Visual Studio, I have been getting an error. A window pops up that says: 'heat.exe - Bad Image' The application or DLL c:\path\to\file.tlb is not a valid Windows image. Please check this against your installation diskette. Bu...

How to install program shortcuts for all users?

I'm creating an installer msi file using the Windows Installer XML toolkit. When installing the created msi file, a shortcut placed under the ProgramMenuFolder folder results in a shortcut for the Administrator user only. How do I let the installer create a shortcut under the All Users profile, so that everyone on the machine has the sho...

Detect if an assembly is in the GAC via WiX 3?

I'd like to detect in WiX 3 (preferably via a Condition) whether a particular assembly is in the GAC. I know the name, version, and public key token of said assembly. Is there any built in way to do this, or will I have to write a CustomAction to do it? And how would I go about setting up that CustomAction? (This would be before the inst...

How can I install a third party MSI using a custom action?

I have a Visual FoxPro installer (exe) that I want to launch using a WiX custom action. However, I think the VFP installer is a wrapper for an MSI as I'm getting "Error 1500" which seems to denote I'm trying to run two installers at the same time. How can I bootstrap this third party MSI from my own MSI? I'm currently launching the VFP...

WiX-- always overwrite the previous version

Hi all, I have an installer of an application that needs to install over any existing version, regardless of version number. Instead, I've got an installer that constantly says that I need to go to add/remove programs. That's very frustrating behavior for my testers, since it just slows them down for no real reason in their minds-- th...

WiX - trying to figure out install sequences

I'm installing a large app, and part of it is a custom written tool called "DbUpdateManager" to mass execute SQL scripts against our target database. Right now, the WiX 2.x install works - but it has one flaw: during install, I also install a couple of Windows services, which can be optionally started right away. Those however will fail...

How do I create a custom dialog in WiX for user input?

I'm using WiX to create an installer for a windows service. It's desirable that the name of service that gets installed and displayed in Services is configurable at install time. For example, this is what I'm thinking (wix xml snip): <ServiceInstall Id="MyServiceInstaller" Name="NAME_PASSED_FROM_DIALOG" Type="ownProcess...

How customize the installation dialog of WIX?

How can I customize the text in WIX installation dialog. The requirement is to have dialog while installing like below: +-----------------------------------------------------------------+ | Cotoso ABC Product | +-----------------------------------------------------------------+ | ...

WiX 3.0: List of available UI Dialogs

I am creating a UI for a WiX installer, and I have included WixUI_Common. I have searched around, but I cannot seem to find a comprehensive list of the dialogs that are provided by WiX. Please list any dialogs you know about and what the dialogs do. Update: Thanks to CheGueVerra's answer, I was able to find the wxs files defining all...

Self updating application install with WIX?

I am writing an application that needs to be installed on a large number of desktops and also needs to update itself. We are looking at WIX for creating the installation. I have used ClickOnce and it is not a good solution for this install. WIX seems to fit, but there is no good process for auto update that I have found. I have looke...

Where should the System.AddIn pipeline be installed?

I have a plain old Windows Forms application with a WiX installer, and it is installed for all users to the Program Files folder as you would expect. The application hosts add-ins using the System.AddIn framework. Because the System.AddIn framework needs to write to some of the add-in pipeline folders (AddIns, AddInSideAdapters, AddInVi...

Software Versioning: Difference in Windows Installer and .Net Version

Microsoft is promoting .Net for over 8 years now. .Net assemblies are versioned using 4# versioning like major.minor[.build[.revision]]. Ref here While, Windows Installer still suggests 3# versioning like major.minor.build. Ref here With the difference in versioning in two systems. It is not straight to map .Net assemblies version to...

Using WXI files in Visual Studio WiX Project

I've come across several sources stating to split up a WiX installation file into the separate parts (variables, components, etc.) using include files (.wxi). Makes perfect sense to me, so I took the <components> nodes out of the .wxs file and put them in a separate file, but when I attempt to compile the project in Visual Studio 2008 I...

Resharper Live Templates to help with WiX

I'm writing a few WiX files today and there's a lot of repetitve typing involved, so it looks to me like Resharper's Live Templates would be very useful here. Does anyone know of any? I know it's not too hard to write new Live Templates so I may end up answering my own question in a couple of hours, but if anyone can point me to pre-exi...

Retrieving version of an MSI file (built with WiX)

I've created an MSI file with WiX. The source WiX file contains the version information like this: <Product Id="..." Name="..." Language="1033" Version="1.0.0.1" Manufacturer="..." UpgradeCode="..."> The MSI file seem to work OK: it installs, it uninstalls, it upgrades when I increase the version number, etc. How...

XPaths and <? ?>

I have a WIX file that I need to modify using MSBuild. It starts like this: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"&gt; <?--... Removed Params ...--> <?define ProductVersion = "1.0.1"?> <?--... Removed Params ......

XPath, Wix and MSBuild ** Duplicate**

The Question and Answer can be found at: http://stackoverflow.com/questions/822104/xpath-in-msbuild-sdc-and-wix Vaccano ...

XPath in MSBuild (SDC) and WIX

Fresh Asking of this Question-> I have a WIX file that I need to modify using MSBuild. It starts like this: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"&gt; <?--... Various Removed Params ...--> <Product Id='$(var.Produ...

How can I install same certificate on two different store locations with WIX?

I made the installer for certificates but it couldn't execute because it was returning error number 26352. I discovered it is because I am installing same certificate twice but on different store locations (current user and local machine). ...