wix

wix product id should be autogenerated for patch number changes?

I use wix for building a setup for a product. The product has version of the format major.minor.patchnumber Example: 4.5.1313 in each build the last patchnumber keeps changing like 1314, 1315 and so on. I would like to know whether I should keep the id attribute in the product element as autogenerated between just the patch number...

Forcing an upgrade of a file that is modified during its initial installation

I'm working on the upgrade feature for my WiX-based installer. As part of the instalation, we are installing a web.config file and then using a custom action to update the connection strings inside the file. But this causes a problem when we run our upgrade. We would like to have the RemoveExistingProducts scheduled for after InstallF...

Is there a way to speed up WiX builds?

I've built an installer using WiX 3.0. The installer contains additional installers that can be run to add functionality at a later time. The "sub" installers are large-ish (totaling ~200MB). WiX builds were around a minute until I added these "sub" installers and then times increase to about 11 minutes. For reference, I'm building to a ...

How to determine if a registry key exists in Wix

I want to determine if a Registry key exists in Wix. I cannot make any assumptions about value names in that key, but at least one exists. Default value is not set. Is it possible to check if the key exists (and optionally, if it has any values) without using custom actions? ...

Wix Reset button not working

I am having a UI screen with Reset button and Browse control. When the screen opens, by default I am displaying "Programfiles\myapp\" as a path to install my files. Use the browse button user can change the paths and that path will be displayed in the text box next to browse button. When I click Reset button, it should change the text ...

How can I upgrade Windows Installer from inside an MSI (using WiX)? Is it possible?

I've currently got an .exe that bootstraps a bunch of prerequisites (NET3.5, hotfixes, ...), including upgrades to Windows Installer (I need 3.1), and then finally runs my msi. I'd like switch this to have an .msi that does everything, and calls an embedded binary for each prereq. Hopefully this'll be less error-prone plus I can integr...

How do I execute file installed by merge module?

I am using WIX and have successfully used a custom action to execute installed file at the end of installer like this: <CustomAction Id="LaunchAfterInstall" FileKey="foobar.exe" ExeCommand="parameters" Execute="immediate" Impersonate="yes" Return="asyncNoWait" /> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLLOCATION"/> <UIRef Id="Wix...

WiX: Installer for MOSS WSP

I've a question about creating an installer with WiX. In my SharePoint development I have three different features. They are all installed with a separate WSP. One of the WSPs (called A.wsp) contains another WSP (B.wsp) (it's the basic for the program). Every wsp can be installed for it's on. How can I check when uninstalling A.wsp if...

How do I dynamically set a file source based on a property in WIX?

We have four regions (dev, test, qa, prod) that all require environment specific config files. I am trying to develop a WIX install that will accept a property assignment from the msiexec command line and dynamically set the file source of a config file. I've tried just about everything and read about every page and I can't seem to mak...

Component GUID in Wix

I have a .net dll that is shared by 2 applications of mine, client and the server. I do not know where the files will be installed as user chooses the install and he may only install client or both client and server. I have component on both server and client wix and it contains only the shared assembly. Should I have same GUID for bo...

Step-by-step ngen with Wix 3.0

We use Wix to build an installer for our .NET application and are just in the process of porting to Wix 3.0. Our application includes several .NET assemblies (as is the way with .NET applications) and the final installer step is to ngen these. This is important as our application takes about twice as long to startup with non-ngen'ed ass...

Wix doesn't remove its files if I remove mine

I have a Wix installer which installs and removes fine if I don't execute my custom actions. But if I do execute them then my custom action does its job, and the uninstall does succeed, but all of the files installed remain in the program files application directory. On install, my custom action (After="InstallFiles") extracts a number ...

WCF in a windows service

Hi All, I have a windows service that exposes a TCP connection (using WCF). This service starts and works fine on my machine (which uses windows firewall). My colleagues are using mcafee security software (which includes a firewall). When they start the windows service it works some of the time, but the rest of the time the service tim...

Where do I set the license text in Visual Studio 2008 Setup project?

When I run the Output of my Visual Studio 2008 Setup project (*.wixproj), the install wizard displays a license. Where do I change the text displayed? I have searched all *.wxs files, but cannot find the license displayed. Also, a hint on where to find information on this stuff would be really cool... ...

Wix: Merge Module with multiple wxs files

So, I am trying to create a merge module where I have multiple wxs files. I thought that everything was OK since the build of my project succeeded. Later, I realized that the path used in Source attribute for one of the secondary wxs files was completely wrong but the compiler didn't give the following error: *The system cannot find the...

WiX ServiceInstall - setting the service to run as the current windows user

I am installing a Windows service using WiX. How can I make the service run in the context of Windows User that runs the installer? ...

Installshield vs Wix vs NSIS for website and windows services deployment?

Hi, the company I work for is looking at different options for installers. The product consists of a ASP.NET web site, some web services, and windows services. We'd like to be able to install everything in one go, but be able to uninstall or update services individually. We'd also like to be able to configure/edit xml files (like app....

Service Not Able to See Environment Variable

I created an installer (via WiX) that, as part of the installation, installs a Windows service (written in C#), and starts that Windows service. The service is a FileSystemWatcher and watches for the installation of plug-ins to a specific directory. Originally, it used an environment variable (which pointed to the path I wanted to watc...

Launch x86 or x64 MSI from MSBuild bootstrapper

So I have a WiX based MSI that installs a handful of device drivers and therefore I have an x64 and an x86 version. The package also has a .NET 3.5 dependency so I'm generating a bootstrapper to do this and then launch the MSI. My question is if anyone is aware of a way to create a bootstrapper that will detect the platform it is running...

How do I add an environmental variable, but not remove it if it already existed with WiX?

Right now, I can add an environmental variable on install with the Environment tag in WiX. Here's an example: <Environment Id="LibPath" Action="set" Name="PATH" Part="last" Separator=";" System="yes" Value="[INSTALLDIR]" /> However, sometimes, the envi...