wix

(Windows Installer) What are some causes for different versions of a program showing 2 entries in add/remove programs?

Somehow we ended up with something going wrong with one of our recently deployed upgrades (internal deploy, only about a dozen machines or so) and there are now 2 entries for our program showing up in windows add/remove program and I'm trying to figure out what could have caused this. In a nutshell what does windows use to determine whe...

Execute Command Line In WiX Script?

How can I execute a command line from within a WiX script? I want to dynamically generate a command line string and have it executed. I'm not installing a file related to this. Using version 3.0.5419. ...

Where is the file 'wixca.dll' if I have WiX 3 installed.

Following the recommendations here we created a custom action which references wixca.dll. Other places on the net they say this should just be installed with the WiX installer, but I can't find the file anywhere. I see another question where someone else experienced this in pursuit of logging, but eventually did not use the custom act...

MSBuild Bootstrapper postrequisite

Hello I am using the MSBuild Bootstrapper for my Visual Studio 2005 project. I need to have a specific version of DirectX installed with my program. The problem is I am unable to catch and defer the reboot after DirectX gets installed. I dont know why it wont catch it. So my new idea is to have DirectX be installed after my program is. T...

Executing a custom action that requires elevation after install

I have the following wix snippet: <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1" /> <CustomAction Id="StartAppOnExit" FileKey="Configurator.exe" ExeCommand="" Execute="immediate" Impersonate="yes" Return="asyncNoWait" /> <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="Configure initial settings" /> <UI> <Publish...

Single 32-bit MSI with 32/64-bit drivers

Is it possible to include difxapp_x86.wixlib or difxapp_x64.wixlib in same WiX setup to install a driver in both 32-bit and 64-bit machines? Background is that we have a setup which needs to be 32-bit regardless of the target platform (it's a .NET application which uses 32-bit COM components, so we must build .Net assemblies as x86). S...

Wix upgrade: preselect features

Hi, we're using Wix to create our installers. We're using the UI where one can select the features that need to be installed. Some features are enabled by default and others are disabled. However, these defaults are retained when we run an upgrade. We would like the installer to remember what features were installed and enable them in ...

Can UMDF drivers be packaged/shipped via WiX?

Howdy Internets: I put together a WiX 3.0 package, utilizing the DIFx extensions, with the intentions to install a Windows 7 Sensor (UMDF driver). During installation, DIFXAPP logged "No matching devices found in INF" and simply threw the driver into storage. I read I'm to populate my INF with an appropriate DriverPackageType, but a...

WiX and shared, versioned components

This has to be a common need yet I find hardly ANY references to it on the web... I've got a product that has three sets of components, one installed on the server, one on the web head, and one on the developer's machine. All three sets could be installed on one machine and should peacefully coexist. As I had it yesterday, each compon...

wix: running external msi before installation begins

my application requires the microsoft visual c++ redisributable package (vcredist_x86.exe). i have a custom action to run the vcredist_x86.exe i want it to run only if it's not already installed. i created a registry search to check it. the question: how do i run this action with the check? when using the InstallExecuteSequence eleme...

Programmatically build WXS into MSI

I will try to make this as clear as I can, but if you have questions or don't completely understand let me know. I have a program that creates a WXS (WiX source code file) from scratch, and tests it to make sure it is valid. I would like the next automatic step to be the actual building of the WXS using Visual Studio (I am working with...

What is the best practise to create MSI with some other child MSI as prerequisite?

Currently we are using Innosetup as a bootstrapper to install the MSI prerequisites. It makes bit complex to maintain the setup. I found that burn tool which may help us to resolve this issue by having a single setup to install whatever we need. I could not find either documentation or sample for this tool. Is anyone have idea about this...

how to create custom UI for MSI in Wix?

I want to enhance my UI dialog of MSI using Wix. Can you point out me the best tool which provides an option to create such UI? Also, is there possible to show animated GIF image in MSI wizard ...

Setting directory using RegistrySearch for not exist directory doesn't work

I am using RegistrySearch to set a property that is one of my directory and i see that when the registry value is of sub directory that doesn't exist than he value of the directory is not set, why is that? In my case the ROLESDIR will be set to empty if the target directory doesn't exist (while the registry still point to it) --> the end...

Interesting custom action written using DTF in Wix

There was a challenging situation happened when i was working with install to provide product key validation. I had to use C++ unmanaged code to validate the key. Actually we had the main validation logic written in C# and I had to create a mixed project. Problem was not stopped only with these, it continued. Since I used VC++ code, it e...

Issue with Wix DTF while creating more than one action in a single DTF custom action assembly

DTF does not call the second action if the custom action assembly has more than one action. It always calls only the first action. As a workaround, I am using one action in one assembly. It works perfectly always. Do you have any idea on this issue? public class CustomActions { [CustomAction] public static ActionResult CustomA...

is it possible to create a multilanguage installer using WIX ?

is it possible to create a multilanguage installer using WIX ? ...

Improving performance of Wix msi install/uninstall

In Windows 7(i.e. MSI 5.0), there is a property called MSIFASTINSTALL which will improve the performance of your installer. Or else, you can turn off the rollback option by setting property DISABLEROLLBACK. This property is available in earlier version of MSI 5.0 too. Please share your knowledge to improve the install experience. Also, ...

Conditional Components

Since I cannot put conditions on elements in a component, I have to separate the items into two separate components conditional. From every example, this is how to do it: <Component Id="IIS7Webhost" Guid="482EC8D7-2DA2-48e6-A11D-6CAB3C5973E8"> <Condition><![CDATA[IIS_MAJOR_VERSION >= "#7"]]></Condition> <CreateFolder> <Permissio...

Is there a way to handle catch exception in MSI install wizard?

I am facing some odd situation that when I select/deselect the features in the feature customization wizard, it sometimes crashes the window. It does not give any clue at all. It also not happens consistently. Do you have any idea or faced such kind of issue? I am able to even trace the root cause using install log. ...