wix

WiX installer - environment variables do not expand %APPDATA%

In a .wxs file I have: <Environment Name="PATH" ... Value="%APPDATA%\Python\Scripts" system="no"/> Unfortunately this does not seem to work. After installing the installer on another machine, I do see that '%APPDATA%\Python\Scripts' is contained in the PATH environment variable. But typing 'foo' (where foo.exe exists in that set path)...

WiX VC++ Redist SourceFile [CommonFilesFolder]

I'm trying to add the Microsoft_VC90_CRT_x86 merge module to my WiX installer but am having an issue specifying SourceFile. Rather than copying the .msm file within the scope of my build in my make script I would like to access the .msm where it lives on the build system (C:\Program Files\Common Files\Merge Modules). Despite [CommonFiles...

In WiX how can I select an IIS website by name?

What I would like to do is show the installer user a list of the websites on their server and allow them to choose one (using the method described here: http://www.cmcrossroads.com/content/view/13160/120/, which now seems broken see here for the core code). The installer would then create a virtual directory in the chosen website. Howev...

Installing an MSBuild extension

I have created a task for MSBuild that is to be used by developers and would like to create an installer to install the task and the associated .targets file into the MSBuild extensions folder in Program Files (usually C:/Program Files/MSBuild on 32-bit XP). To do this properly, I would like to ask the system for that folder location at...

WiX - Permissions for ASP.NET Temp Folder

I'm trying to set the permissions of the temp ASP.NET files folder as follows: <PropertyRef Id="NETFRAMEWORK20INSTALLROOTDIR"/> <DirectoryRef Id="NETFRAMEWORK20INSTALLROOTDIR"> <Directory Id="TempASPNETFolder" Name="Temporary ASP.NET Files"> <Component Id="PermissionsTempAspnet" Guid="{C107EC7F-FC97-41b6-B418-EA4532949362}"> ...

Using File Names in WiX

I am copying a file to a directory, and then setting an environment variable to point to that file. This is working, however, I have to hard code the name of the file (I can't reuse what I already have). Here is the example: <Directory Id="CUSTOM_DIRECTORY" Name="Directory"> <Component Id="Framework" Guid="YOURGUIDIDHERE"> <F...

How can I require at least one of two optional components in WiX?

I am using WixUIFeatureTree to offer the user an option of what components of my application they want to install... One of my features has two optional features within it, at least one of which must be installed for the program to work. I don't want to force the user to install either particular one, but I'm at a loss as to how to fo...

How do I populate a ComboBox at install time in WiX?

Edit: I've updated the code below so that it now works, thanks to Rob's answer. I've found a couple of pages that show how to do this (http://www.cmcrossroads.com/content/view/13160/120/, http://www.mail-archive.com/[email protected]/msg05103.html) and looked through the source code for WAI (http://wai.codeplex.com/), but ...

How to use WiX to register a dll to a COM post install

I want to use regasm.exe to register a .net dll as a COM object. I am running into a problem which is causing the intstaller to not work. I believe it is because the file I want to register has not made it to the installed directory by the time I want to run the command. But there error log does not say enough about the install error for...

Wix, PostgreSQL install, executing Postgresql scripts

Hi! I have to make installer that installs Postgresql before our application, makes database and execute some sql scripts against the database. Now I'm using the Bootstrapper to install Postgresql and then our application and using Wix install sequence I execute SQL script that takes care of the rest. I'm wondering if there is any wa...

WiX Setup Project - Stop Building after every compilation

I have a visual studio 2008 solution with multiple c# library projects, a Web Project and a Wix Setup project. The setup project takes about 2 minutes to build. Currently when I do a build, it will build every project, including the setup project. I want to be able to build all projects, excluding the wix project when using the debu...

Change my component GUID in wix?

When I should not change my component GUID in WIX? ...

Specifying Short Names in WiX

I am using the WiX installer to install an application, and I need to set an environment variable to the CommonAppDataFolder location for the purposes of a temporary area to store files. This typically points to C:\Documents and Settings\All Users\Application Data. The problem is that the application cannot recognize long file names. ...

How do I format the text displayed in a WiX edit control that is displaying a Property value?

I am attempting to display the value of a property retrieved from the registry in a text edit control, with some text appended to the end of the property value. However, only the value of the property is displayed.It seems as though my custom format string is being ignored. I need to be able to assign any user modification of this text b...

WiX - Create MSI using msbuild

Hi I have a Wix (Voteva) Visual Studio project which creates an MSI from my WiX file. I want to integrate this into our continuous integration by putting into an msbuild script. Reading the project source file did not help and could not find any clear info from google. How do I create an MSI using a WiX (wsx) script from an MSBuild sc...

Uninstalling an in-use shared assembly leaving WinSxs in a bad state.

I am having troubles uninstalling a shared win32 SxS assembly using Wix3 on WinXP. My wix file looks pretty much like the one described in http://n2.nabble.com/Tutorial-How-to-install-files-into-WinSxS-td841475.html. The problem is, if a module from the assembly is in use, the uninstaller completes with a success errorcode but leave...

System environment variable created during install not available to current user until reboot

I have a msi package generated by wix that creates a system environment variable by populating the Environment table. <Environment Id="CreateEnvVar" Name="DATADIR" Action="set" System="yes" Part="all" Value="[DATA_DIR]" /> The install successfully creates the environment variable at the system level. This was verified by view...

Why isn't my service deleted on uninstall? (WIX)

Even after a reboot, the service is still there, even though the executable file is gone. I'm using WIX version 3.0.5419.0 <Component Id="IdiomServer.exe" Guid="7a751e1e-5e9e-41d2-be60-dc905ab1ccad"> <File Id="IdiomServer.exe" Source="$(var.IdiomServer.TargetDir)IdiomServer.exe" KeyPath="yes" /> <ServiceInstall Id="IdiomServer_Servi...

Dynamically create WIX files without having to edit the wix files manually

Suppose you release the next version of your software, you will have to manually update your WIX files to remove obsolete files and add new files, etc. My use case is as simple as "recursively add the files under /sample/path in the user target C:\Program Files\MyApp". Is there a program that does this sort of automation? ...

Application to generate installers for Linux, Windows and MacOSX from a single configuration

Here's what I want: Given a set of definitions (preferably in Python) on what files to install where and what post-install script to run, etc.. I would like this program to generate installers for the three major platforms: MSI on Windows dmg on MacOSX Tarball w/ install.sh (and rpm/deb, if possible) on Linux For example, installco...