wix

Visual Studio and msBuild fire BeforeBuild differently on WIX project

I have a WIX (Windows installer XML) v3, project which contains references to other projects in my solution. I am using the copy task inside the BeforeBuild event of the WIX project to collect some of the output of the references projects for later use my heat.exe. When I build the WIX project (not the solution) inside visual studio eac...

How to tell MSI to upgrade locked dll's and avoid reboots

I have MSI installer which installs product and this product has several widely used API dll's. These dll's may be loaded into processes that I cannot control during upgrade (for instance, I cannot ask user to close explorer.exe or svchost). So, during MSI upgrade these dll's are locked and cannot be upgraded without reboot. I need to ma...

Using FirewallException api in Wix to apply setting to all network profiles in Win7

Hi An installer with wix I've made uses the FirewallException api to register some components of the package with the Windows firewall, in order to try and prevent firewall popups. It seems that in Windows7, it only registers with exception for the network profile (ie Work/Home/Private) that is currently active when the user runs the i...

Is Web Deploy a good solution to deploy a huge web application to various platforms with IIS 5/6/7?

I tried making the title as self-explanatory as possible, but let me elaborate. Imagine there' s a huge web application (lots of files, various configuration options), that needs to be installed on different platforms with IIS 5.1 / 6 / 7 / 7.5. Currently it is packaged as MSI package using WiX. I wonder if it makes sense to let WiX in...

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...

How to quickly create a wix setup for a visual studio project

I have several large websites that I wish to create a WIX installer for. I'm dreading coming up with the initial WIX setup since there are a lot of files. Are there any shortcuts for this? I mean, if is there any tool I can use that I can point to a file system and tell it to generate components for every item? I'm using Visual Studi...

using wix to register .Net assembly marked for COM interop

I've got a vanilla .net class library which contains some types which are [ComVisible] and the assembly itself is marked "Register for COM Interop". I'm trying to build a WIX installer for the app which will need to not only copy the .net assembly to the INSTALLATIONDIR on the target machine, but also do the work of registering that the ...

How do I allow the user to select an existing IIS website to install to using WiX?

Does anyone know of a complete, downloadable/copyable example of a WiX installer that allows the user to select an existing website when installing a web application? I'm trying to get this working and, after seeing that it seems to be a significant piece of work, I'd like to get an example running first so that I have a working project...

Installing a web application with Wix

So I'm trying to install a web application and I stumbled upon this question: http://stackoverflow.com/questions/624918/using-wix-to-create-an-iis-virtual-directory. When I try to adapt this for my own app, I get an error: W:\projectlocation\IssInstallationComponents.wxs(6,0): error LGHT0204: ICE18: KeyPath for Component: 'SiteInstall...

WIX: InstallValidate adding REMOVE property when installing MSI?

I'm creating a MSI. When I try to install it through msiexec /lvxe log.txt /i product.msi I see the following in the log file: MSI (s) (2C:BC) [06:22:05:579]: PROPERTY CHANGE: Adding REMOVE property. Its value is 'ALL'. Action ended 6:22:05: InstallValidate. Return value 1. Which prevents a custom action I have from running because...

How do I do a search and replace on a configuration file using Wix?

Some code I inherited has its "configuration" (if you can call it that) embedded into its PHP and ASP (don't ask) code. Because its not an XML or INI file, I'm having the darnedest time figuring out how to modify these files at install time. If I could, I'd like to do a simple search and replace. I've read elsewhere (http://stackoverf...

How do I set the selected item in an MSI combo box that has been filled from a custom action?

I'm creating an web site MSI using WiX. I have a custom action (written in C#) that fills a combo box with the descriptions of the web sites in IIS so the user can select an existing web site to install to. Works fine - apart from the fact that there's no item selected when the dialog page is first shown. I'd like the first site in the ...

Windows Service without [RunInstaller]

I wrote a Windows Service using C#.NET. To install the service, I've added a "Project Installer" class that inherited from the Installer class and decorated with the [RunInstaller]. Without the [RunInstaller] decoration, I cannot install the service using installutil. Why is it that by deploying the service using the ServiceInstall tab...

WIX: No InstallUISequence table being created in MSI

I have a wix file that includes this snippet: <CustomAction Id="DownloadCache" FileKey="CACHEDOWNLOADER.EXE" ExeCommand="/v" Execute="deferred" Return="ignore"/> <UI> <Dialog Id="ExitDialog" Title="Product Installer" Height="60" Width="250"> ... </Dialog> <Dialog Id="FatalErrorDialog" ...

How do I set an MSI installation folder dynamically.

I'm creating a web application installer using WiX. I want to allow the user to select the web site from a list of sites on the IIS server, and then install the app in a sub-directory of that web site's root folder. I've finished the "select web site" portion. I have a custom action that sets a bunch of properties based on the selected ...

Windows Service won't automatically start after reboot

My automatically starting windows service fails to start only on reboot. I have a windows service created in C# and installed via a Wix created installer. The service is set up to start automatically. The service is installed and run under the NT AUTHORITY\NETWORK SERVICE. When the service is started, it first makes an external web ser...

Convert Virtual Directory to Web Application in WiX

I am creating a new WebSite whenever Feature A or B is installed: <Component Id="IIS.HelloWorld" Guid="6FA5EF90-C9D9-463C-9CC7-0410670AFBD1" Directory="TARGETDIR"> <iis:WebSite Id="IIS.HelloWorld" Description="Hello World for Web" Directory="INSTALLDIR"> <iis:WebAddress Id="HelloWorldAddress" IP="*" Port="8080"/> </iis:WebSite> ...

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...