wix

Deleting XML elements in WiX

How do you delete/remove an element from an XML file in WiX? ...

Merge Module problem from Dark.exe decompliation

I have been working for quite sometime to transfer all of the installations for my job from Wise for Windows Installer to WiX. Started with the obvious step (given the number of installations to transfer and their size) and decompiled them with Dark.exe (WiX toolkit). I have been creating a general purpose program to clean up the outpu...

How to get the username domain using wix

I have developed a screen for admin username and password,how will I display the username and domain automatically in the place of admin name label.Please help me out.. I would like to know whether I should write any custom action for this. ...

How to display domain name and validate the password

In the property I have given as SERVICEACCOUNT and Password as SERVICEPASSWORD but the domain name does not appear when the screen sequence somes. <Control Height="10" Type="Text" Width="80" X="10" Y="75" Id="AccountLabel" Text="Administrator Login" /> <Control Height="18" Type="Edit" Width="160" X="100" Y="75" Id="AccountTe...

Including msm of COM dll in Wix causes occusionally fail to reg COMs?

I have a msm which contains COM DLLs. It works well with VisualStudio's setup project. But recently we tried to use Wix to produce our msi file, so the msm is included into the Wix XML file. It works mostly, except on some machines it failed to register COM objects. I tried to use Orca to see what's the difference between VS produced ms...

Get the username displayed in the textbox automatically in wix

I have developed a screen that asks the admin username and password.My requirement is that I want the admin user and domain name to be displayed automatically on the screen in the username label.How can i do that please help me.. ...

Using <Condition> tag while installation of a component in WIX.

Hi, I am new to WIX. What I am trying to do: Windows registry maintains entries under Uninstall for my product. Now, when I upgrade to a later version it creates another entry there. So in upgraded version there are two entries under the Uninstall key. Things are fine till now. When I need to downgrade from upgraded version it should r...

WiX: Calling Custom Action on Merge Module only if Feature is selected

I have a WiX installer which has 3 Projects. 2 Creates Merge Moduels, 1 Creates the installer. The code in the mergemodules should only be executed if the corresponding feature is selected. Is there any chance to get this to work with custom actions? From my experience the custom actions are always called - wether or not a certain feat...

Howto use configurable Merge Modules in Wix?

AFAIK it's done like this: Product: <Merge Id ="HelpInstaller" SourceFile="HelpInstaller.msm" Language="1033" DiskId="1"> <ConfigurationData Name="SurpressInstallation_Config" Value="&amp;HelpFeature"/> </Merge> Merge Module: <Property Id="SupressInstallation" Value='0' /> <Substitution ...

Wix Howto determine if a directory exists during installation?

Is their any chane in wix to determine if a certain directory exits when the installer is running? I guess i have to use some sort of custom action, unfortunatelly i don't know how! Furthermore i want to store the result of the costom action in a property and use this as an condition for calling another custom action. Is this possible? ...

WiX Dynamically Populated ComboBox

In WiX I have a vbScript for use in a Custom Action that will return ListItems of Network Printers. I want to use these ListItems to populate the ComboBox at Install Time because I won't know the printer names on the users system until after starting the installation. Here is the vbScript. It currently outputs to a text file pending h...

How to display the ip address and port number in an text box that should be generated dynamically

Hi All, Is there a way to display the system ip address and port number in a text box that is generated dynamically??? I want the system to put the ip address into a text box according to the machine. Siddharth ...

Why is WiX detecting Windows Installer 4.05 when 4.5 is installed?

This is a bit of a strange problem. I have an installer that needs to check the version of Windows Installer on a machine, so I use the VersionMsi property to do this. However, when trying it out on a Vista 32-bit machine, I have found that it reports that I have 4.05 installed. So I checked msi.dll, msiexec, etc and found that they wer...

Sequencing custom action in WIX before "LaunchConditions".

HI All, Is it possible to sequence a custom action before "LaunchConditions"? This is my custom Action: <CustomAction Id="CA_vcAppRunning" BinaryKey="vcShowMsg" DllEntry="IsAppRunning" Return="check" Execute="immediate"/> Sequenced in <InstallExecuteSequence/> <Custom Action="CA_vcAppRunning" Before="LaunchConditions" /> I tri...

Best practice for harvesting COM file file to WiX fragment

I have made a dynamic deployment project based on WiX 3.0, that uses mainly HEAT to consume directories in dynamic way (files + DLL that need to be registered). The question is that i don't understand what attribute should i use in heat in term of the COM, Should i use "-SCOM" or not (what does it effect e.g. patching) thanks ...

Determining IIS user for IIS 5

I'm writing a Wix-based setup for a web application and would like to set permissions on the folders it installs so that IIS can access them. IIS 6 and 7 use IIS_WPG and IIS_USRS respectively, and IIS 5 uses IUSR_COMPUTER NAME. If the user has changed their machine name however, setting permissions using the current computer name fails. ...

WIX C++ Custom Action

Hi, I have a basic WIX custom action: UINT __stdcall MyCustomAction(MSIHANDLE hInstaller) { DWORD dwSize=0; MsiGetProperty(hInstaller, TEXT("MyProperty"), TEXT(""), &dwSize); return ERROR_SUCCESS; } Added to the installer: <CustomAction Id="CustomActionId" FileKey="Cu...

In Wix, can one define a ComponentGroup and Directory at the same time?

I'm new to WiX. Very new. Is there a way to define both a ComponentGroup and a Directory at the same time? I have a large number of files, on the order of 300 or so total, that need to be split into a number of groups, with each group having somewhere around 50 files. Using heat.exe, I was able to create a Fragment that creates Com...

How can I populate in to the listbox the values dynamically using Wix

Hi, How can I populate in to the listbox the values dynamically using Wix.Like when i click add it should add the values in to the listbox.please help.. ...

How to set folder permissions on install in a localizable fashion

I have an installation build with WIX 3.0. It currently creates some folders and modifies the folder permissions. However, it will not install on a Spanish OS. That is now a problem since we have to support Spanish OS's. So... I am trying to do this in a way that is localizable. This is what I have changed it to: <CreateFolder Di...