wix

Shortcuts and MSI updates

We have an installer for application that is compiled using WiX and each version is updated using a new setup package. The installer creates advertised shortcut in Start menu and users often copy this shortcut to desktop or other location. During an application update a major upgrade is performed and the old shortcuts are removed, which ...

building wix managed Custom Actions in .net 4.0

We just recently upgraded all our code base to .net 4.0, and are trying to build custom actions in our installer using .net 4.0. We are using wix 3.5 to do that, I am getting BadImageException, saying its built using a newer version of .net runtime than currently loaded. does wix 3.5's makesxca utility support .net 4.0 ? ...

wix sfxca binding to CLR v 2.0 instead of v4.0

Iam building managed custom actions using .net 4.0, but when i package the installer and run it,it fails giving me "assembly is built by newer version" error. In the install log I can also see that the SfxCA is binding to v2.0 instead of 4.0, how can i configure it so it loads the v 4.0 version many thanks ...

MySQL 5.1 Schema Installer

I need to make an installer for a MySQL 5.1 Database, but I'm totally a noob when it comes to installers. I've been looking at NSIS and learned a little but I don't really know how to use it to just to execute a script. Anyone out there has experience installing database schemas in multiple computers? thanks ...

Is it possible to override the behavior of a merge module.

Supposing I have a merge module that installs a file "MyFile.txt" to a certain location, and that I wish to use that merge module, however I want to supply a different copy of "MyFile.txt" from the one supplied with the merge module. Is it possible to do this? (And for bonus points how can I do this using Wix) ...

How to show only Major and Minor version usinf WIX

Hi.. Using WIX installer earlier we were showing full dll version (it was static), but now we changed it to dynamic. So I get dll version like 4.5.3422.2319 Using this my setup shows whole version. But I want to show only Major and Minor version i.e. 4.5 only. So can you please help me in doing so. ...

What size should the background image in an MSI be?

I am trying to create a Windows Installer package using Wix. I'm getting a lot of conflicting information about what size my custom background should be--the Wix documentation suggests a size of 500 x 314 pixels, but this leads to slight image distortion in the installer. I believe that I may be indirectly using the SplashBitmap propert...

Initialise a wix CheckBox's check state based on a property?

How does one initalise a Wix check box based on the value of a property? So far, I've done the following: <Control Id="Checkbox" Type="CheckBox" X="0" Y="0" Width="100" Height="15" Property="CHECKBOX_SELECTION" Text="I want this feature" CheckBoxValue="1" TabSkip="no"> <Condition Action="hide">HIDE_CHECKBOX</Condition> <Condition Ac...

Msiexec REINSTALL=ALL REINSTALLMODE=vamus is not working

In my installer (created using WiX) I forcefully re install everything using msiexec REINSTALL=ALL REINSTALLMODE=vamus /qr /i setup.msi command. This was working fine but after adding a new component (an exe file) it stopped working. nw if I try this command it doesn't replaces the file in installation directory. To solve this I tried a...

Conditionally install feature not working in Wix

Hi, I have a setup which I need to support on IIS6 and IIS7. For now Im using the built in IIS extensions for IIS6 like so: <Component Id="C_IISApplication" Guid="{9099909C-B770-4df2-BE08-E069A718B938}" > <iis:WebSite Id='TSIWSWebSite' Description='TSWeb' SiteId='*' Directory='INSTALLDIR'>...

Add an option to enable or disable a feature during installation process using wix

Hi I have written code for my wix project such that it creates and deletes a schedule task on install or uninstall respectively. But I want to give the users an option(Feature) during installation where they enable or disable the task to get created not. My code so far shows the option but creates the task even when I select disable. ...

How to prevent a windows user from being removed and created during a patch.

I have a project that uses the wix extension WixUtilExtension to create a user for our windows services. When I patch the installation (using an .msp), the custom actions RemoveUser and CreateUser are executed. I don't want these wix extension created custom actions to run during a patch. I can add a condition directly to the custom ...

How can i get WIX to find the location of merge modules on 32 bits and 64 bits dev machines?

We are using a development environment where some developers are using x64 machines, and some are using Win32 machines, and the 'official' build machine is a 32 bit machine. This can cause problemns because on the x64 dev machines the 'common' merge modules are located at C:\Program Files (x86)\Common Files\Merge Modules\, and on Win32 m...

Auto increment build number using WIX

Hi.. I am using WIX tool for creating installation file for our project. I want to have the dynamic(incremental) build number. So can anyone please guide me. Please dont provide solution like 1.0.0.* as this gives any dynamic number at end. I want it incremental like 1.0.0.1, 1.0.0.2, 1.0.0.3,..... ...

GAC an assembly without embedding it within the MSI

I want to GAC an assembly already present on target machines, I know where this assembly is on every machine (you can assume, that path is static for all target machines and wont change and that I am the owner of this assembly) I do not want to include the assembly to be GAC'd in the MSI since it can change with each solution deployment ...

How can I use WiX properties in a sql file executed from the installer?

I have a WiX install project that I am rewriting based on our previous installers from Wise. In Wise, you can add files for it to execute (ours used sql script files) and it had a replace tab that specified certain text in the file to be replaced with either with static text or a Wise property. I am wondering if this is possible in WiX...

Check installed products in WIX

How to check installed products using WIX?If they are not installed, install ...

WiX uninstall - close application before Restart Manager

Hi I have an installer done with WiX. When it's done installing, it starts an application that injects some code in the Explorer process. Currently when I uninstall, the Restart Manager kicks in and offers to shut down my application and Explorer. Instead of that I want to close my application manually (this is done by running it again...

Registry GetSubKeyNames lists different keys than regedit?

We are using WIX to install a number of services we create. I am writing a quick utility to dump the currently installed services. I just iterate over subkeys of: SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall looking for DisplayName The problem is, only two of my ten services show up in the list. However, when I look at the s...

How to prevent from Wix removing registry entries on uninstall?

<RegistryKey Id="MyServerRegInstallDir" Root="HKLM" Key="Software\MyApp\Server" Action="create"> <RegistryValue Name="InstallDir" Type="string" Value="[INSTALLDIR]" /> <RegistryValue Name="DataDirectory" Type="string" Value="[MYAPPDATADIR]" /> </RegistryKey> The subkeys InstallDir and DataDirectory is deleted on uninstall....