wix3.5

WIX Custom Actions built for .Net Framework 4.0 does not work? Ways to resolve?

We were using WIX 3.5 (Build Number 1811) and built a custom action built using Visual Studio 2008 and with target framework as .Net 3.5. This used to work great, until we built the custom action using Visual Studio 2010 and with target framework as .Net 4.0. WIX is unable to invoke the custom action, the error that we get is this: S...

Setting .NET version in IIS application pool using WIX does not work

<!-- Custom action to set the .NET version --> <CustomAction Id="SetNetVersion_Cmd" Property="SetNetVersion" Execute="immediate" Return="check" Value="$(var.SetNetVersionCmd)" /> <CustomAction Id="SetNetVersion" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute="deferred" Return="check" Impersonate="no"/> <!-- Run the action --> <I...

how to install a package using a windows system account with WiX?

hi, usually when you install a MSI package on windows, it is installed using the currently logged on user account. but i want to install it to a specific user account. for now, i want to install my MSI package using the system account. is it possible? how to do that? thanks. P.S. i am using Wix 3.5 ...

Create database with bootstrapped SQL Express

I've written an app which bootstraps SQL Express 2008 with a Wix 3.5 installer, then attempts to CREATE DATABASE on first run of the app. The install of SQL Express is thus totally unattended. This all works fine when the account installing the app is an Administrator on the machine. However, somewhat unsurprisingly, problems arise whe...

How do I set input path for binaries in WIX project to MSBuild output path on TFS?

I want MSBuild to build WIX 3.5 project containing static files and binaries from another project's output folder. While with static files it all works just fine: I just set Source attribute of File element to "..\AnotherProject\Static\StaticFile.ext", I can't reference binaries, because they aren't in "..\AnotherProject\bin\Release\" fo...

How do I customise the Wix Progress Dialog

I'm trying to customise the standard WiX Progress Dialog (I want to make it show the ActionData). I've followed Neil's guide to customising dialogs but the trouble is, the original ProgressDlg is still being shown instead of mine. I think I know why: if you tool at the source to ProgressDlg you can see this block of code: <InstallUI...

Wix C# Custom Action .Net 4 Error

I am trying to use my first custom action in Wix and I am receiving error 2896: Executing action CustomActionTest failed. I am using VS 2010, Wix 3.5, 64-bit Windows 7 Ultimate, .NET Framework 4 Here are what I think are the relevant sections: <Binary Id="JudgeEditionCA" SourceFile="..\JudgeEditionCA\bin\Debug\JudgeEdition.CA.dll" /> ...

WIX 3.5 fails under NAnt but not under VS2010

Hi, I know this a is a common issue, but everything I can find in the forums seems to relate to 64bit framework incompatability (which is not an issue in my case). I have a set of simple WIX 3.5 installers developed using Votive that I can compile happily in VS2010, but when I try to compile them via NAnt (and MSBuild) on TeamCity (i....

Custom Action in C# used via WiX fails with error 1154

I am using WiX 3.5.1930 in Visual Studio 2010, targeting the .NET Framework 3.5. (Later weekly builds of WiX seem to be very broken with respect to their custom action template, at least for now. 1930 is the most recent build that seems to make a buildable C# CA with working references.) I have two custom action assemblies written in ...

Two almost identical WIX projects - one works fine, the other fails with security issue.

Hello, I have WIX installers for two windows services. Both are installed using the same credentials, but one works while the other fails with the error "Service "PCP Event Processor-3.9.9.0-wix' (MyServiceExeName) could not be installed. Verify that you have sufficient privileges to install system services.". I use a common wxi file f...

Switching from WiX 3.0 to 3.5 decreased msi size from 100Mb to 4Mb?!

After upgrading my installer build to WiX 3.5 the msi size fell from 100Mb down to only 4Mb! At first I thought some files were excluded from MSI, so I ran light.exe 3.0 and 3.5 with -v (verbose) and -notidy (to keep the temp files) options, checked the cab files, and indeed in case of 3.5 the cab file was 3.8Mb while the 3.0 produced 98...

WIX: Create EventSource using .NET message file

Hi, I'm creating an installer for my application using WIX. Everything works fine so far. However, I'm trying to create a new event source during installation and that doesn't work as expected. I've read and understood this question here on SO, but I have a somewhat different situation in which the given solution does not seem to work...

Dynamically update app.config file using WiX

I have an msi built using WiX. Part of the installer collects some settings that will be entered into the app.config file of the installed app. Now it works fine if I define Now my question is this: is there a way I can dynamically create this util:XmlFile tag (e.g. from a custom action) so that I don't have to hard code it in to the ...

Creating Installers using WiX Suitable For Screen Readers

I've spent a lot of time fighting with WiX to make an installer that works well with a screen reader. I want the Windows Screen Reader to read the labels and control names out in a sensible and predictable manner, but my findings are that WiX is not very good at producing installers that "sound" right. Are there best practices or sample...

How do I change the language of a Wix 3.5 MSI?

I have created an installer with Windows Installer XML 3.5 from within the Visual Studio 2010. The installer itself works pretty well but now I would like to change it's default language from english (1033) to german (1031). Therefore I changed the language attribute within the product tag to "1031" which should do the magic as far as I ...

WiX 3.5.2030.0 CreateDatabase fails with 1603 with DTF external UI handler, works without external UI handler

I have a simple WiX (3.5.2030.0) installer on Windows 7 (Windows Installer 5.0.7600.16385 according to msiexec.exe's properties) that uses the supplied custom action for creating a SQL database. When I run the MSI by itself, or run it in a transaction in a C# setup bootstrapper (using DTF for the interop), it works correctly. When I ru...

How can I remove an XML modification in Change-mode (WiX 3.5)

I have created an WiX 3.5 installer with multiple features. One feature performs some XML changes which works fine. I have read that these changes can be undone while uninstalling the application by using the permanent attribute. Now imagine the following case: The user installs the whole application. Feature 1 does some XML changes. N...

OpenFileDialog fails on Win7

My installer needs to open a file browse dialog. As there is no file browse dialog provided by WIX I have written a C# dll containing a method to invoke the standard OpenFileDialog when called by a Custom Action. However while this works fine in Win2003 the Custom Action just hangs when run on Windows 7. It seems to get as far as the Sho...

wix component condition evalulation

I have a component that needs to be installed if another feature ( not the parent feature of the component) is being installed. The component conditions seems to be evaulated during CostFinalize action, so i created a property and set the value of that property, I then force CostInitialize action using a custom action but the component...

How can I exclude files from harvesting a folder with heat (WiX 3.5)?

I would like to harvest a folder with a lot of files by using heat.exe. But instead of harvesting all files, I would like to exclude specific file extensions like "*.txt" or something like that. How can I do this? ...