wix

How to create a shared registry key for WoW64 and x64 Processes.

Is there some way to create a custom (WoW64) shared registry key? By default some registry keys are shared and others are redirected (see MSDN). But I want to create a custom registry key under HKLM\Software which should be shared. I'm looking for a solution in C# (maybe P/Invoke) and WIX. ...

Wix CopyFile only on target machine

I need to be able to copy a file that exists on the target machines hard-drive based on a registry setting that holds the folder path. I have been trying to get this going for a day or two and am having difficulty, can anyone help? Thanks, B ...

How to modify IIS handler mapping permissions via Wix or a Custom Action

Hi, I'm using Wix to create an installer for a Silverlight application. When I install the application the virtual directory that has been created has the execute permission checked for the *.dll handler mapping (IIS 7 > Web site > VDir > Handler Mappings > *.dll > Edit Feature Permissions > Execute). When I browse to the applicatio...

WiX/Windows Installer: Re-install to a new folder

1. I am using WiX for creating installer and would like to implement the following behaviour: If a user launches msi installer for the product and the product already installed, then wizard works similar to pure (first time) installation with exception of some things (e.g. license aggrement screen is omitted). The wizard should allow for...

WiX overwrites config files during setup. How can I avoid this?

Hi, I'm using WiX to create a windows installer. Unfortunately my installer overwrites a config file on every update. What I really want is, that the installer only creates the file if it is not found. Thanks and regards, forki ...

How do I set a property based on condition that a user has selected a feature in WIX?

I want to set a property to be used after the FeaturesDlg (the one with the feature tree) , based on condition that an user selected a feature or not. Is this possible? I've declared a new property, but I don't know how to set its value (that feature is enabled/disabled on feature tree). ...

WixSharp IIS Examples

Hi All, I am trying to find examples of how to use WIxSharp (managed code interface to Wix) to install a website and associate AppPool. The steps I want to achieve are: 1. If the website exists in IIS 6, delete it. 2. If the AppPool exists in IIS 6, delete it. 3. Delete the application artifacts from the destination directory. 4. Copy ...

WiX: Prevent 32-bit installer from running on 64-bit Windows

Hi everyone, Due to user confusion, our app requires separate installers for 32-bit and 64-bit versions of Windows. While the 32-bit installer runs fine on win64, it has the potential to create support headaches and we would like to prevent this from happening. I want to prevent the 32-bit MSI installer from running on 64-bit Windows m...

Prevent MSMQ queues from being removed and recreated during a major upgrade

I have an installer which creates MSMQ message queues. During a major upgrade I am noticing that the queues are getting removed and reinstalled. Any suggestions to avoid this from happening? I am currently scheduling remove existing products after InstallInitialize <RemoveExistingProducts After="InstallInitialize"/> ...

Creating a MSI patch (.msp) by hand?

Our team has recently been considering pushing out a minor registry fix to users to modify one particular problematic key. Pretty straightforward stuff, just needed to update 1 key/value inside the registry. So at the moment, we are using Wix to build .msi installers for the product. While looking into Wix's support for generating .msp ...

How to create Custom action project with WIX 2.0

Hi, I have installed WIX 2.0 (and Votive). I need to create user defined custom actions using the Custom action project. I found the custom action project template in VS2008 when WIX 3.0 is installed. Now, i couldnt find any template in VS2005 with WIX 2.0. Can anyone plz let me know how can i create a custom action project( class with...

Are Visual Studio Setup Projects suitable for complex setups

Are "Visual Studio Setup" Projects suitable for complex setups in different versions? The application is rather large (> 500.000 lines of code) and is under continuous development. Every 6 to 10 month a new version gets released. We have multiple configuration files (INI and XML), registry keys, database migration scripts, etc. The app...

Wix: change installation folder tree

Hi, I've a set of folder to be installed in different layouts for different users. For examle: User1: AppFolder Dir1 Dir2 Dir3 User2: AppFolder Bin Dir1 Dir2 Lib Dir3 How it's possible? ...

WIX: COM unregistration when removing one of two programs

Hello, I am relatively new to WiX. It is a great tool, but I still need some time to learn it better. I have encountered a problem with registration and unregistration of a COM component. I have created installers for two applications, lets call them A and B. Both are using the same COM component. I have used the heat tool, as recommend...

How to use WIX to deploy and run WCF service

Hi I am trying to make an installer which deploys my wcf service, at the moment it is creating the virtual directory, but when I try connect my app to it, I get a CommunicationException was unhandled by user code The remote server returned an error: NotFound. I notice that if I create a virtual directory manually that it will ...

Parameterise Service start option in WiX installer

I have a ServiceInstall component in a WiX installer where I have a requirement to either start auto or demand depending on parameters passed into the MSI. So the Xml element in question is <ServiceInstall Vital="yes" Name="My Windows Service" Type="ownProcess" Account="[SERVICEUSERDOMAIN]\[SERVICEUSERNAME]" Display...

Adding shortcut for WiX file in a different fragment.

I'm using heat.exe to generate fragments similar to this: <Fragment> <DirectoryRef Id="INSTALLDIR"> <Component Id="id1" Guid="*"> <File Id="fid1" KeyPath="yes" Source="SourceDir\Foo1.dll" /> </Component> <Component Id="id2" Guid="*"> <File Id="fid2" KeyPath="yes" Source="SourceDir\Foo2.dll" /> </Component> ...

How to embed a UserControl in WIX installer?

Is there anyway to embed a usercontrol inside a WIX installer? We're trying to replace an InstallShield installer with a WIX installer, however there are a couple of involved UserControls that the InstallShield installer embeds that would be easier to reuse than reimplement. ...

WiX: Where can I download the bootstrapper?

I'm running Visual Studio 2008 SP1, and I'm getting the following error when trying to compile my WiX projct: Could not find required file 'setup.bin' in 'C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Engine I've got Windows Installer 3.0 and the Windows Platform SDK installed. I've got a Microsoft SDKs\Windows\v...

Can I set IP restrictions using the Wix IIS extension?

Hi, Is it possible to set-up IP address restrictions for an IIS site through a Wix installer? I don't see it mentioned in the IIS extension documentation. I want the site to be available to only one specific IP address. Thanks! ...