FAQ Database Discussion Community


WiX: Install component based on ComboBox selection

combobox,wix,condition
I'm trying to create an installer which installs some components based on the selection of a Combobox but it seems like the condition isn't working. I declared the Combobox as the following: ... <UI> <ComboBox Property="Option"> <ListItem Text="Red" Value="red" /> <ListItem Text="Blue" Value="blue" /> <ListItem Text="Green" Value="green" /> </ComboBox> ......

Wix installer defaults to original Property value when another user logs in for the first time with app installed

c#,wix
I have a Wix installer where I have a property defined (Product.wxs): <Property Id="SITEBASE" Value="localhost"/> <Component Id="ApplicationSettings"> <File Id="ApplicationConfig" Name="MyApplication.exe.config" Source="$(var.Application.TargetPath).config"/> <util:XmlFile Id="ApplicatonConfig1" File="[INSTALLDIR]MyApplication.exe.config" Action="setValue" Value="[SITEBASE]" ElementPath="//MyApp.Properties.Settings/setting[\[]@name='SiteBase'[\]]/value" Permanent="yes" Sequence="1" /> <Component...

Namespace prefix 'bal' is not defined

wix
I've got this error. Since I put below code in the Bundle.wxs. <BootstrapperApplicationRef Id="WixExtendedBootstrapperApplication.Hyperlink2License"> <bal:WixExtendedBootstrapperApplication ThemeFile="Resources\COTheme.xml" LicenseUrl="http://xxxxxx /> </BootstrapperApplicationRef> Could please anyone help me?...

ExePackage does not run elevated although PerMaschine is set to “yes”

wix,bootstrapper,elevated-privileges
In my WIX-Bundle, i have an ExePackage like the following: It executes a ConsoleApplication which tries to open an write to a HKLM-Registry entry which fails when triggered out of the bundle. In cmd, everything works fine when executed as admin: <ExePackage Id="SqlServerAuthConfig" DisplayName="Configuration of SQL-Server Auth-Mode" Compressed="yes" PerMachine="yes" Vital="yes"...

WiX - Switch InstallScope from perUser to perMachine

wix,windows-installer
I'm trying to create an installer that supports perUser and perMachine installations dependent on a selection of setup types on the UI. The perUser setup type installs the application into "WIX_DIR_COMMON_DOCUMENTS" and shall require no admin permissions. The perMachine setup type install the application into "ProgramFilesFolder" and shall request an...

WiX: VS2013 How to change output directory

visual-studio-2013,wix,windows-installer
I have a WiX project in VS2013. The output directory in wixproj is: bin\$(Platform)\$(Configuration)\ by fact it is \bin\x64\Release\en-us How and where I can change the real output to \bin\x64\Release\ ?...

Creating a silent installer for a MSI

wix,nsis,msiexec,silent-installer
What is the best way to make a silent installer (or unattended) for a program that was already created and has a msi installer? At work I'm told to create an installer that is automated and does all the interaction with the user automatically so that the user essentially just...

WiX msxml 6 prerequisite

wix,msxml6
I am creating a WiX installer for our software which requires msxml 6. If I understand correctly msxml 6 is shipped with Windows starting from XP SP3 but since our software supports all versions of XP I guess there is a risk that the customer won't have msxml 6 installed;...

customize VerifyReadyDlg in Wix UI

wix
I have create an installer and done some customization on UI. For example, WelcomeDlg <> LicenseDlg <> UserRegestrationDlg <> VerifyReadyDlg However, how to customize Wix UI as below screenshot: ...

WIX Deployment: Which files to deploy?

wpf,entity-framework,wix
This might be a very trivial question but deployment is new to me and little confused about which file to deploy. I have a WPF test project uses Entity framework in visual studio and trying to use WIX to deploy it. Target machine is running windows 7. Given that .Net...

Upgrade older msi from Wix custom BA Bundle

wix,bootstrapper
We are upgrading our WIX msi installer (not a bundle) with manual pre-requisites to a Managed custom Bootstrapped application Bundle. The boot strapped custom installer bundle exe works fine for fresh installs. But if we want to upgrade our older product which is just an msi, we are in trouble....

wix installers with common component

wix,windows-installer
I have web app, which I want to install on IIS. This app supports plugins architecture. It consists of: Core Part Plugin A Plugin B I want to have 2 installers (msi). One for plugin A and other for plugin B. Each installer should also install Core Part. So if...

How to install a feature always

installation,wix,windows-installer,wix3.8
My installer has a feature called 'MyDatabase' that shows a dialog to take input 'server, dbname, user, pwd' and creates the specified database. It works the first time installation. My requirement is to show this dialog everytime the installer is run and this 'MyDatabase' feature is selected. The user may...

Wix Installer run msi after main install is done

wix
I need to run my installer then once done run a 3rd party msi. Figure this would be a simple enough job I am sure I am just missing a flag. What is wrong with my script; <Binary Id="AnotherApp" SourceFile="C:\Install.msi"/> <CustomAction Id="RunMSI" BinaryKey="AnotherApp" ExeCommand="" Execute='deferred' Return='asyncNoWait' Impersonate='no'/> <InstallExecuteSequence> <Custom Action='RunMSI'...

Calling exe bootstrapper from Add/Remove Programs

wix,windows-installer,inno-setup,bootstrapper
I have 2 MSI installation packages (done using WiX) a.msi and b.msi which are bootstrapped into one exe using InnoSetup resulting in c.exe. In the Add/Remove programs only a.msi is listed. The problem is when the user removes a.msi from Add/Remove programs I have a custom action in wix which...

Wix- Unable to write to XML file when using Property Name as Value

wix,windows-installer,wix3.7
I am trying to write a value into an XML file during the installation, this value comes from a text field which user fills it during the installation stage. In my GUI file for the installer I have the following EditField: <Control Id="LogEdit" Type="Edit" X="45" Y="155" Width="100" Height="18" Property="LOGVALUE" Text="{80}"...

Service dependencies are causing my wix msi to force a reboot on uninstall

wix,windows-installer
I have spent the past 3 days running in-place while tracking down the cause of forced reboots on my system, but have finally narrowed it down to a very specific cause. I have a service suite that I am working on in Wix. There are 10 msi's that are all...

Set the selected language in an installer as the default language of the application

.net,localization,installation,wix,multilanguage
First post Here. I am making a WPF application, and are currently using WIX to create installers in Visual Studio. This works great, but now the client wants to have multilanguage application and installation. We have implemented localization in the application, so that is ok: the user can select language...

WIX. How to not reinstall a feature during repair?

wix,condition,reinstall
In WIX I'd like a feature to be installed and uninstalled normally but not to be touched during repair. I was not able to find a condition which would allow me to do this. My attempts has failed: the feature is reinstalled on repair (what I do not need) or...

WiX – copy arbitrary files

c#,wix
The folder where my setup.exe is located contains a subfolder CALhaving files named something like xyz1234.cal – their names vary from customer to customer. These files have to be copied into a folder CAL in the target directory. So I created a CustomAction and a C# dll which uses the...

WiX common component as merge module and INSTALLDIR from registry

wix,windows-installer
I want to have 2 installers with common part. So I used merge module, and created 2 wix installers. Here is what I want to achive with more details (problem described there was solved): wix installers with common component I am using WixUI_InstallDir so user is able to choose directory...

Pack .EXE in Wix Installer and execute after installation

wix,windows-installer,custom-action
I'm creating an installer for my application using the wix toolset. I need to include an .EXE file and execute it during/after the installation process (the .EXE shall not be installed to the application folder). The .EXE also has a dependency on a .DLL file, which came with the .EXE...

Web Api 2 Service (allow service to interact with desktop)

c#,wcf,asp.net-web-api,wix,asp.net-web-api2
I am busy with a windows phone 8 application that i want to interact with my desktop. I have an SelfHosted WebApi that my phone posts data too. Now everything works fine if i run the service from Visual Studio. I can interact with the Desktop, but as soon as...

How to include full .NET prerequisite for Wix Burn installer

.net,wix,burn
I'm writing a managed Bootstrapper using Wix Burn and this Bootstrapper depends on .NET 4. If the .NET 4 is not installed on the machine, burn downloads it, installs it and then runs managed bootstrapper. But, I need to support also fully offline scenarios where .NET 4 can't be downloaded....

Evaluate conditions before custom actions

.net,visual-studio,wix,windows-installer,installer
I have this action under InstallUISequence: <Custom Action="WarnIfOutlookNotInstalled" Sequence="1"><![CDATA[NOT Installed]]></Custom> I also have this condition: <PropertyRef Id="NETFRAMEWORK45"/> <Condition Message="This product requires .NET Framework 4.5 or later."><![CDATA[Installed OR NETFRAMEWORK45]]></Condition> The custom action named WarnIfOutlookNotInstalled is defined in a custom action DLL which targets .NET 4.0. The problem I have is that,...

Setting up Property via CustomAction

.net,wix,windows-installer
I have the following snippet from our wxs file. I need to understand why we need the CustomAction SetInstallType? I assume that the INSTALLATIONTYPE property will be set from the Registrykey.Since it is a public property i suppose i could also pass it from the command line while running msiexec....

Error allocating file install folder in WIX 3.9

directory,wix,windows-installer
I am setting up the installation locations for my installer. However, it throws an error when I try to set the locations. Source code: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product Id="*" Name="Wix_setup" Language="1033" Version="1.0.0.0" Manufacturer="Frank Jansen" UpgradeCode="37a42e55-dea8-47da-8f4f-fb065dd38a9e"> <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> <MajorUpgrade DowngradeErrorMessage="A newer version of...

How to change text style of the Title & Description text controls of a WiX dialog?

wix
Where can I find information of the Style values for a text control of a WiX dialog? For example, the default text style used for the WiX dialog Title control is {\WixUI_Font_Title} & I would want to use the same style but to change the color to White. For the...

How to add several ports to FirewallException in Wix?

installation,wix,windows-installer,installer,custom-action
I use property PORTS to pass some http ports to my installation. Then these ports will be stored into init file and used by the application. I need to add these ports to FirewallException? But following code does not work: <Component Id="fwException" Guid="MyGUID"> <Condition>Privileged</Condition> <RegistryKey Root="HKCU" Key="Software\Company\[ProductName]"> <RegistryValue Name="fwException" Value="1"...

Deploy Any CPU build with WiX to x86 using MSBuild

visual-studio-2013,tfs,msbuild,wix
I have a set of solutions that build a complete .NET Any CPU application. I have a WiX project that will deploy that application as x86 and I can run this all manually in Visual Studio 2013 without any issues. Now I'm trying to get this to work in MSBuild...

Wix Set an Environment Variable Conditionally at Runtime

wix,windows-installer,custom-action
I'm using Wix 3.8, and I need to check to see if an environment variable is set at runtime - if it is not, I need to set it. If it is, I must NOT overwrite the existing value. From what I've seen, Wix offers statements, and conditional pre-processor directives....

My Wix project is only showing up for me in Add/Remove but not other people?

wix,windows-installer
We've been using Wix to create our website msi for awhile and it install fine. Issue (Little annoyance) - If I install my msi, it will show up in add/remove programs but if Person B goes on the server, my msi entry will not show up for them in Add/Remove...

Module failed to register HRESULT / Error 1001

wix,managedinstallerclass
My first question is about the error below : Module [Path/Name of dll].dll failed to register. HRESULT -2147024769. Contact your support personnel. I can continue the installation but i want to get rid of this error if possible. The second question is about the following error : Error 1001. Exception...

Wix installer- All the sources and contents are not being copied

wix,windows-installer,wix3.7,wix3.8
I have a very simple Wix Project and I have added a reference of my c# project to that. In wix project references I have set the Project Output Groups = All ,and Harvest = True In My Products.wxs I have the following code: <?xml version="1.0" encoding="UTF-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product...

Running SQL Script file through Wix using element

sql-server,database,wix,installer
am new to Wix Installer.I have a requirement where I have to provide credentials for SQL Server login and run a script from a specific path. Am not getting what's going wrong.The project is build successfully and .msi is created.After running it I get following Error: Error 26204. Error -2147217900:...

I don't want install a Bootstrapper Project itself

wix,bootstrap,burn
I am using VS2012+WiX3.9. Now, I assume the name of WiX Bootstrapper Project as MyBundle. I want to install Sample1.msi and Sample2.msi by this project. When I carry out MyBundle.exe, MyBundle is installed other than Sample1 and Sample2. I want to only install Sample1 and Sample2 and I don't want...

How to define WIX agent requirment in TeamCity?

msbuild,wix,teamcity
I have add a WIX installer project to solution in Visual Studio 2013. The project is built with every commit on TeamCity. There are several build agents connected to TeamCity cloud, but only some have WIX installed. Usually I would add the build agent requirement, so only the computer with...

Single Package Authoring

wix,windows-installer
I am trying to create Single Package Authoring installation using following tutorial - http://www.egoroff.spb.ru/blog/62003.html Main wix file is following: <?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> <Product Name='Foobar 1.0' Id='GUID' UpgradeCode='GUID' Language='1033' Codepage='1252' Version='1.0.0' Manufacturer='Acme Ltd.'> <Package Id='*' Keywords='Installer' Description="Acme's Foobar 1.0 Installer" Comments='Foobar is a registered trademark of Acme Ltd.'...

Wix Toolset install C++ 2010 Redistributable

wix,visual-c++-2010,wix3.8,wix3.9
I can integrate together on installation package Wix Toolset the installer Microsoft Visual C ++ 2010 redistributable? I tried this with a custom action, but it does not install if another installation is in progress. Someone would have any suggestions of how to do? Also another question. I can call...

WiX CustomAction fires in UI but not Execute Sequence

wix,custom-action
We need our MSI to store the password in the registry, so users can use our installer to change connection strings, etc. We found MsiExt for its cryptography DLL and are trying to configure the custom actions. Our users will need to be able to install both through the UI...

Remove “Installation successful” Dialog

wix,windows-installer
I'm having a problem with the wix installer. I want to remove the last dialog window when installing my application. The last dialog only shows the message "installation successful" and the user has to click finish. I want the installation to close automatically after the progress bar reaches 100%. I...

How do I install the Wix extension on after a Visual Studio 2013 Update?

visual-studio-2013,wix
I have installed Wix 3.9 on VS 2012. Recently, I just got VS 2013 and I am not sure how to install just the extension on there? How do I do without uninstalling wix 3.9 and reinstalling it back again?...

Is [email protected] attribute is a MUST in case of producing MergeModule

wix
In my .wxs file for components, there are only components with single file, and this is the case for generatable GUIDs. But it seems to me that for .msm (merge module), component's GUID should be explicitly specified. Or I'm free to use Guid="*" and that would be OK? I tried...

Database changes management in installer updates

sql,wix,windows-installer,wix3.8
How can I run a series of database scripts depending on some condition? Basically I want to check build installed on user's machine and then want to run all the scripts till the build in the installer. Say user has build number 4.10 installed and if he goes to install...

Pass path of shortcut file to CustomAction

wix,custom-action
I have a shortcut definition like this: <Component Id="PowershellShortcut" Guid="{12345678-1234-1234-1234-1234567890AB}"> <Condition>POWERSHELL_INSTALL_LOCATION</Condition> <Shortcut Id="PowershellStartMenuShortcut" Name="Powershell Environment" Description="Powershell Environment" Target="[POWERSHELL_INSTALL_LOCATION]" Arguments="-PSConsoleFile &quot;[#Powershell.Environment]&quot;" /> </Component> I want to pass the path to the resultant .lnk file into a CustomAction. I've tried various things,...

WIX Installer - Unable to change and save the platform to 64 bit

visual-studio-2013,wix,windows-installer,wix3.9
IDE:- VS.NET 2013 (Update 2) WIX version used : 3.9 Windows service MSI :- I am unable to change the platform to x64 bit and save it. If i change it to x64 option and save the build properties and close the property window, then reopen the property window...

Wix - copy file based on combobox property

wix
When installing an application using Wix, I would like to copy a file to a location based on a ComboBox property then a PushButton with <Publish Event="DoAction" Value="CustomAction">1</Publish>. If I use a Custom Action for this and set Execute="immediate", then the file copy fails with the error UnauthorizedAccessException was unhandled...

Unable to read value with RegistrySearch

wix,windows-installer,installer,msiexec
My installer need to distinguish between Intel and AMD processor manifacturer, in order to drop the corresponding components (Drivers). I've seen that is possible to catch such information from a registry key. I've done the following <Property Id="REGMANIFACTURER"> <RegistrySearch Id="RegCPU" Root="HKLM" Key="HARDWARE\DESCRIPTION\System\ControlProcessor\0" Name="VendorIdentifier" Type="raw" Win64="yes" > </RegistrySearch> And after drop...

WiX - upgrade services

wix,installer
I Installed my application in 1.0.0.0 version. Services have been installed on the user account (with username / password). How to make an update, so the user does not have to specify login and password again? <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />   <Component Id="MyService" Guid="MyGUID"...

burn.ancestors in wix 3.9

wix,burn
I recently upgraded to the latest stable Wix 3.9 from 3.8. Now when I run a bundle upgrade against a bundle that was built using 3.8, 3.9 passes a command line argument of "-burn.ancestors={some guid}". In the log I see a message like this: "w002: Unknown burn internal command-line switch...

How to change $(var.Platform) from x86 to Win32 in Wix

c++,wix,platform
I have a Visual C++ 2013 solution including many C++ projects and a WIX installer project. On x64 platform, everything is okay. But On x86 platform, $(OutDirectory)$(Platform)$(Configuration) of C++ projects is ...Win32..., but $(OutDirectory)$(Platform)$(Configuration) of WIX is ...x86... What can I do?

Wix installer does not overwrite previous version of an executable

wix,windows-installer
I have a very simple installer - copy a single dll to a Program Files subfolder and register it with regsvr32.exe. Works great, but if an older version of the dll is installed, "Repair" does not overwrite the existing dll. The dll is signed and its version (build) number is...

MSI WIX: Creating minor upgrade patch by using 2 MSI's

wix,windows-installer,patch,wix3.5,msiexec
Is there any way to create minor upgrade (patch file i.e. .msp) or msi based on the old MSI installer and new MSi installer. we want to give the customer to minor upgraded patch (.msp or .msi0, which contains the changes only. 1) I have created (old) Test.msi, based on...

Wix C++ Custom Action for Creating File

c#,visual-c++,wix
Previously I had written a C# Custom Action that was supposed to get the Values of Properties passed to the installer and create some config file. Since the C# Custom action was done, my installer depends upon .Net too. The only way to remove the .Net dependency is to write...

Change Wix Product version number using NANT XmlPoke

build,wix,nant,wix3.9
I ran into this issue recently - when I try to replace the Wix Product version number using NANT XMLPOKE task, it returns the following error message "No matching nodes found". <xmlpoke file="..\Setup\abc.wxs" xpath="//Wix/Product[@Version]" value="${version.label}" > Initially I thought that this was an issue with XPATH statement that I wrote....

How to get rid off unused dll's in wix when upgrade is uninstalled

wix,upgrade
I have a code that has some changes from the previous version. During changes, some dll's were removed. I am using wix to create installer. So now, when I upgrade from old version to new version and when I uninstall the product, inside the product folder, I see those old...

How to change Install button display text conditionally

wix,windows-installer,wix3.8
Is it possible to change the "Install" button display text based on some condition i.e if fresh install then "Install" if upgrade then "Update"? Basically, on major upgrade i am skipping some of my custom dialogs (which are shown on fresh installation) so on InstallReady dialog i want to show...

SHFileOperation cannot remove folder

c++,wix
I am writing a C++ Custom action for WiX that will be called during installation to remove any leftovers installed by the installer. Consider the following code: UINT __stdcall DeleteResidue(MSIHANDLE hInstall) { HRESULT hr = S_OK; UINT er = ERROR_SUCCESS; LPWSTR lpFolderPath = NULL; std::wstring temp; SHFILEOPSTRUCT shFile; hr =...

Having an issue with WIX upgrade

wix,windows-installer,installer,custom-action
Having an issue with WIX installer upgrade. Previously we had 2 version of installers 1 for per-machine and another for per-user. Currently we have developed a dual mode MSI. The dual mode MSI upgrades the PerUser version (on PC 1) of previous installer when install for yourself option is selected...

WIX-Installer ServiceControl “sufficient privileges” error

c#,windows-services,wix,installer,visual-studio-2015
Visual Studio 2015 RC Wix v3.10.0.1726 I am creating a installer for a windows services. I've tested the service with InstallUtil and it runs fine. Unfortunately I'm having a bit of troubles with wix, here is the exact error - "Service 'Service Name' failed to start. Verify that you have...

How to launch executable after installation (exe is delivered by .msm)

wix,custom-action
I did everything as explained in tutorial, but my executable wasn't launched after product installation completed. There is a nuance that my executable is delivered with .msm module, so in .wxs file for .msi I do the following to launch application: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <Product> <!-- I omit here features and...

How can I avoid LGHT0306 when adding a very large file to a WiX Burn bootstrapper?

wix,burn,wix3.9
I am using WiX Burn 3.9 to create a bootstrapper (with a custom managed bootstrapper application for the UI). I'm building a tiny version of the bootstrapper (a couple of megabytes) that downloads dependencies as needed. I'm also building a version with all dependencies embedded, to support easy installation on...

WiX - not executing custom action during update

wix,windows-installer,installer,custom-action
I have two custom actions (immediate and deferrend). I would like to skipping actions during upgrade. I tried: <Product Id="*" Name="$(var.ProductName)" Language="1033" Version="$(var.Version)" Manufacturer="$(var.Manufacturer)" UpgradeCode="{GUID}"> <MajorUpgrade DowngradeErrorMessage="Newer version is already installed." /> <Custom Action='CAa' After='InstallInitialize'>NOT Installed AND NOT PATCH</Custom> and: <Custom Action='CAa' After='InstallInitialize'>NOT Installed AND NOT...

How can I put a condition on a feature that disables it (instead of hiding it)?

wix
How can I have a Feature depend on a system dependency (e.g. powershell), but still indicate to users that this feature is available in the installer. Currently features are listed as follows (screenshot): Feature List My current idea is to put a condition on the feature: <Property Id="POWERSHELL_3_INSTALLED"> <RegistrySearch Id="Powershell3Installed"...

command line Start.Info.Argument error

c#,command-line,wix,heat
I would like run this command with C# : "%WIX%/bin/heat.exe" dir "C:\Documents and Settings\APP" -gg -sfrag -cg Appli -out wixappli.wxs I have this code (Program.cs) : System.Diagnostics.Process process1 = new System.Diagnostics.Process(); process1.StartInfo = new System.Diagnostics.ProcessStartInfo("cmd.exe"); process1.StartInfo.Arguments = String.Format("/k \"%WIX%/bin/heat.exe\" dir \"{0}\" -gg -sfrag -cg Appli -out wixappli.wxs ", @"C:\Documents and...

Duplicate symbol error when Adding InstallExecuteSequence “RemoveExistingProducts” to WIX

wix,windows-installer
<InstallExecuteSequence> <RemoveExistingProducts Before='InstallInitialize' /> </InstallExecuteSequence> I added this xml in order to force my application to uninstall previous versions as per this question but get the following error. Is there somewhere this could have been declared thats not in my product.wxs file? Error 34 Duplicate symbol 'WixAction:InstallExecuteSequence/RemoveExistingProducts' found. This typically...

How can I define a project variable with candle in WIX?

msbuild,wix,installer,wix3.5
I want to take an existing project variable and extend it but I want it to be global so that I don't have to include it in each wxs file. The one I want to extend is: $(var.MyProject.TargetDir) I want to turn to make var.MyProject.TargetDir.Help=$(var.MyProject.TargetDir)Help\ How can I do this...

Trigger uninstall and Repair of previously installed product

wix,windows-installer,wix3.8
i am new to Wix toolsets. i have successfully made my first installer in Wix but now i am confused about my software updates which usually are minor. in my installer i want to check if user have any older version installed then i want to show him three options...

Wix: Run custom action based on condition

wix,windows-installer,conditional,condition,custom-action
I'm trying to run a custom action (delete a certain file) based on the windows version. I know how to check for the windows version: <Condition Message="Windows version xxx required..."> <![CDATA[Installed OR (VersionNT >= 600)]]> </Condition> However, I do not want to display a message, but delete a file. I...

Check for .NET 4.5.2 in WiX

.net,visual-studio,wix,windows-installer,installer
I'm trying to make use of the WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED property. I've read the How-To. Specifically, I have: Added a reference to WixNetFxExtension.dll (located at C:\Program Files (x86)\WiX Toolset v3.9\bin\\WixNetFxExtension.dll) Added xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension" to my <Wix> tag. Referenced my property: <PropertyRef Id="WIX_IS_NETFRAMEWORK_452_OR_LATER_INSTALLED"/> But I get the following error when I try to compile:...

Wix Burn, dependency installation failing

c#,wpf,wix,installer,burn
I have made a custom WPF UI in Burn to install my application, testing on my laptop its fine as it has .Net installed, but i have moved to a vanilla platform and have hit a snag right away. Burn tries to install .Net framework on the target, however, when...

Retrieve x64 Program Files path from 32-bit process

c#,wix,64bit
First some background. I have created a WPF bootstrapper application for my WiX installer where I need to retrieve and display the default install location. Unless I am doing something wrong it appears the executable created by WiX is always 32-bit even if my Visual Studio configuration is set to...

Wix Managed Bootstrapper fails to unload WtsApi32.dll on uninstall of upgraded bundle

wix,bootstrapper
I have created a managed bootstrapper (wix v3.9.1208.0) that works a little like Visual studio/Resharper installers which works great in that: On install it installs pre-requisites and installs or skips what you select from the list of available applications that are bundled up. If you modify then it will uninstall/skip/install...

WIX cannot install msipackage

xml,installation,wix
Hi i have a problem installing an MsiPackage. I have the following code in my wix bootstrapper project: <Chain> <MsiPackage Id="InstacalFull" Name="InstacalFull" Cache="no" Compressed="yes" Permanent="yes" Vital="yes" SourceFile="../Suite.SetupBootstrapper/3rdparty/InstaCal.msi"/> <MsiPackage Id="MainPackage" SourceFile="../Suite.SetupProject/bin/Release/Suite.SetupProject.msi" DisplayInternalUI="yes" Compressed="yes" Vital="yes" /> </Chain> My application is succesfully installed but the MsiPackage with Id...

WixSharp inject multiple Custom CLR Dialogs

c#,wix,windows-installer,wixsharp
Using WixSharp, we can insert a custom System.Windows.Forms window as dialog . project.InjectClrDialog("ShowCustomDialog", Dialogs.InstallDirDlg, Dialogs.VerifyReadyDlg); [CustomAction] public static ActionResult ShowCustomDialog(Session session) { return WixCLRDialog.ShowAsMsiDialog(new MyCustomDialog(session)); } The MyCustomDialog is derived from WixCLRDialog class. If I have consecutive custom dialogs ( done in System.Windows.Forms ) to show. How do I insert...

Detect if 32 or 64 bit windows and define var

wix
I want to install Visual C++ 2012 redistribute with my app. I would like to install the appropriate version based on the architecture of the machine. eg if platfrom is x86 vcredist_filename = Microsoft_VC120_CRT_x86.ms else vcredist_filename = Microsoft_VC120_CRT_x64.ms Ive tried to accomplish in many differents ways but I cant get...

Why is my Wix Custom Action is breaking my installer

windows,batch-file,elasticsearch,wix,windows-installer
I had a perfectly good wix installer when it came to moving files from the cab file to the hard drive. The problems are all being caused by the way I am writing my custom action. First, I will show the culprit, then explain the symptoms. <CustomAction Id="InstallElasticWithProvidedBatch" FileKey="fil85D231A31B2F8EB99C6B9EA4B95A354C" Impersonate="no"...

(WiX) Write product info to registry for dual purpose installer

wix,windows-installer
I'm making a dual purpose package in WiX according to this article. So I initialized the ALLUSERS and MSIINSTALLPERUSER according to the article: <Property Id='ALLUSERS' Value='2' /> <Property Id='MSIINSTALLPERUSER' Value='1' /> In my dialog I set MSIINSTALLPERUSER="1" if the user selected the per-user option. For per-machine I set MSIINSTALLPERUSER="". So...

Cant find File System, Registry icon in WIX setup project in Visual Studio

visual-studio-2012,wix
I installed WIX in my machine. I followed the video of https://www.youtube.com/watch?v=CoFPyIbcqN8enter link description here I can not find any way to add File Systems, no icon for it, no context menu entry on project. I am using Visual Studio 2012....

Dealing with shared registry values

wix
I'm working on an installer that's creating registry values and deleting them on uninstall. However some of the registry values I'm working with could be shared with other companion applications. I only want it to remove the registry values if it's the only component using those registries. If other apps...

WiX error build target

msbuild,wix,installer
I'm trying to create my MSI setup with WiX and MSBuild command which deploy my img.png into a repertory and i have this error : "MSB4019: project imported "C:\Program Files\MSBuild\Microsoft\WiX\v[[Version.M ajor]].x\Wix.targets" was not found. " Make sure that path of declaration are correct In this line : <Import Project="$(WixTargetPath)" />...

WiX - Set MSI's Program name

wix,windows-installer,manifest,properties-file,details
in my WiX installer, if I right-click my MSI, hit Properties, go to Details, and browse the details of my MSI package, I see that under Origin, the default Program name is set to Windows Installer XML Toolset (3.9..... How can I change the Program name that appears in the...

Package the .Net redistributable in my burn bootstrapper

wix,burn,wix3.9
I'm trying to package the .Net 4.5.2 redistributable into my burn application, by following the instructions on this page. But it fails to find the file in the temp burn location. According to the log burn tries to find the file here: [0A14:09C4][2015-05-12T16:48:52]w343: Prompt for source of package: NetFx452Redist, payload:...

WiX MSI upgrade disallows installation of some components

xml,wix,windows-installer,installer,upgrade
When I try to do an upgrade of my project, I get the following logs for about eight or so components: MSI (c) (24:EC) [11:50:17:422]: Disallowing installation of component: {290E89A8-6BA7-59F2-B350-BE657C2823BC} since the same component with higher versioned keyfile exists The uninstall portion of the upgrade seems to remove all of...

Create a new user with an underscore in the name

xml,wix,windows-installer
I am trying to create a user in WiX, using the following XML: <Component Id="cmp_MyNewFolder" Guid="*"> <util:User Id="MyNewUser" CreateUser="yes" Name="DUMMY&#95;USER" Domain="[ComputerName]" Password="" PasswordNeverExpires="yes" RemoveOnUninstall="yes" UpdateIfExists="yes" /> <CreateFolder> <util:PermissionEx GenericAll="yes" User="DUMMY&#95;USER"/> </CreateFolder> </Component> I've removed the GUID and password for this post, so the issue isn't with those. The problem is...

what is a secure location for Wix Burns ApprovedExeForElevation

wix,burn
I try to have my standard bootstrapper to run a program after installing. I had it working but ran into some problems with the install location due to 32/64 bits program files as I have both in the installer. The version I install depends on the bitness of excel, which...

How to create .msi installer with WiX

wix,windows-installer,installer
Can someone help me understand how WiX works? I have a directory structure which I would like to create an installer for. I have generated the for the directory structure with heat.exe and when I build the setup project it generates an .msi file but I don't think it installs...

How to add assemblies to WiX toolset setup, which comes from a nuget package?

c#,.net,wix
I use the Votive-project type to create a setup with the WiX toolset. I know, that I can add an assembly like this to the setup: <File Id="FILE_myproject.dll" Source="$(var.myproject.TargetPath)" KeyPath="yes" /> What I don't know is, how can I add referenced assemblies to the setup, which comes in a nuget...

How to allow WiX Burn Bundle to be partially uninstalled?

c#,wix,windows-installer,burn
Currently I have a WiX/Burn Custom Managed Bootstrapper Application that allows the user to selectively install and uninstall different MsiPackages. That code that handles that looks something like this. private void PlanPackageBegin(object sender, PlanPackageBeginEventArgs args) { var app = applicationViewModels.FirstOrDefault(app => app.PackageID == args.PackageId); if (app == null) { return;...

Should a WiX web installer and stand-alone installer both show up in Add/Remove programs?

wix,wix3.9
We have two WiX installers that use our own BA. One installer gets all the packages from the web, while the other gets all the packages from the exe. We call them "Web" and "Full" installers. We have a case where a user might install one package from the web...

Wix Heat Error on Jenkins CI

jenkins,msbuild,wix,heat
I am building a wix bundle that depends on a wix setup project and the wix setup depends on a C# project. When I build locally, everything works great but when I build the bundle on Jenkins, I get an error when I try to harvest some files. The heat...

Set location of binaries in wixproj file

wix
I am using Wix 3.9 and when I run a continuous integration build in TFS I get an error heat.exe: The directory could not be found because TFS is putting binaries in a different location to my local machine, so the project will build locally but not on TFS. In...

WIX XMLConfig Different Root Element Names

wix
I'm running into an odd issue with a "config" msi I'm writing in WIX that uses XMLConfig to check for, delete and then create the new values in a single xml file. Since I Discovered WIX I've been packaging a lot of our manual configuration processes so this is my...

No environment variable set after installation of MSI generated by WIX

wix,environment-variables
My WSX file looks like this: https://gist.github.com/pyeremenko/891eceb779197e4be240#file-sample-wxs-L23-L25 Copying works fine, i.e. exe file available in Program Files/test/my_test folder, but I can't access TEST env variable after installation via echo %test% (of course I reload cmd) I tried also to look for it in System Properties > Environment Variables, but there...

executing an vb script from another project bud in the same solution in C#

c#,vb.net,wix
i am trying to call a VB script that i made that in the same solution bud in another project, it is a C# project with windows forms and WIX. i am building an .MSI installer and when i arrive at a certain form i want it to execute a...

Speed up Build-Process of WiX-Installer

visual-studio,wix,windows-installer,installer,heat
For my Wix project I am harvesting 4 directories, via the pre-build-event of visual studio, which will result in about 160mb of data, and about 220 files, but the build process tooks very long. How can i speed that process up? I have one embedded media.cab file which will hold...

Msi & exe singing Microsoft Authenticode requirments

wpf,winforms,deployment,wix
I am trying to sign my small application, following this tutorial: In the tutorial they did not ask me to purchase Microsoft Authenticode Certificates I need to Removes "Unknown Publisher" security warnings; after I signmy msi and exe files I still have "Unknown Publisher" Can I sign my msi or...

how to skip dialog based on selected feature

wix,windows-installer,installer,msi-gui
I want to add a custom dialog in the UI sequence after the Feature selection (Customize) dialog. The feature selection is done through a Feature tree. How can I figure out if a particular feature was selected and launch the custom dialog? Right now I am having the following codes...

WiX ExePackage Cache

wix,burn
The documents for the ExePackage element state the the purpose of the Cache attribute is Whether to cache the package. The default is "yes". I don't understand what this does. Where is the package getting cached?...

How can I change the text in the Wix installer dialog?

wix,windows-installer,wix3
My text message is stuck to "Install My Product to:" How can I change this? ("My Product" is the name of my product and the string above is resolved based on the Name attribute in my Product.wxs). I have 2 dialogs and the second requires a different message....