wix

How do I fix WiX warning: Component 'X' has both per-user and per-machine data with an HKCU Registry KeyPath

Hi, I'm trying to maintain some Wix code, and am getting the following warning: warning LGHT1076 : ICE57: Component 'FILE_MY_ASSOCIATION' has both per-user and per-machine data with an HKCU Registry KeyPath. From the following code: <Component Id="FILE_MY_ASSOCIATION" Guid="E1DF42A5-BD00-4a80-9BE5-B66A3EF0576E" Win64="$(var.Variable...

How to pass additional wxs files to candle when using votive?

When building a wixlib from Visual Studio using votive, how do you speficy to candle where to find additional wxs files that are not part of the visual studio project (and are also not part of a referenced project)? I do not want to add the wxs files to the project because they are updated by heat during the build process, and therefore...

Wix 3.5 and .net 4 custom action doesn't work

My custom action assembly doesn't work with wix 3.5. When I build custom action under .net 3.5 in propreties all works fine, but when change in project properties of custom actions assembly target framework to .net 4 - it fails with BadImageFormatException. Utility makesfxca.exe works fine with both - .net 3.5 and 4.0 ca assemblies. Co...

WIX: Only check or get IIS settings when web features are being selected for installation

Hi gurus, I am using WIX here. 3.0 to be specific. I have created an installer in which I have about 6 features. 2 of which are websites for IIS. the problem is that, when I deselect the 2 web features, the installer still looks for IIS. How can I avoid that? Especially when I want to install the 4 features on a machine that does not hav...

TeamCity + WiX + MSBuild workflow suggestions needed

I've been working on the next step of my continuous integration project, which is to get TeamCity to build my application, automatically change the version number of all assemblies, and then create an installer. A little background first: I've been running TeamCity successfully for the past several months, and it builds my configuratio...

WIX: How not to call ActionStart(Name=StartMetabaseTransaction) during installation

Hi, My installer would fail when installed on a machine that has no IIS installed. The features that are going to be installed doesnt need IIS. The error says "Cannot connect to Internet Information Server". In addition to that. The installer file has also a feature that requires IIS. But when I unselect that feature, the installer st...

Running copied files in wix using custom action

Hello, I'm creating an MSI installer using WiX and I have, say, a *.bat file that I'm copying to SomeFolder2 under %temp% (something like the code snippet below...) ... <Directory Id='TARGETDIR' Name='SourceDir'> <Directory Id='ProgramFilesFolder' Name='PFiles'> <Directory Id='MyDir' Name='SomeFolder'> ...

Will Microsoft continue to use WiX in-house

Microsoft announced that it will no longer provide a tool to create installation packages and officially recommends InstallShield. Will Microsoft continue to use WiX in-house? ...

Merge 2 wix libraries

Hi, Is it possible to merge two wix libraries into one? Regards, Martin ...

RegistrySearch not working in Wix project

I'm trying to add a check in my installer, so that if a specific registry key is not present it has to fail. That's roughly what I'm doing: <Property Id="REGVALUE"> <RegistrySearch Id="regval" Root="HKLM" Key="SOFTWARE\Foo" Type="raw"/> </Property> <Condition Message="Valid Foo value not present. Found [REGVALUE]"> <![CDATA[REGVALUE...

WiX ScheduleReboot Conditions

I am trying to get the following to work: On the first installation of a program, it modifies the environment variables of the system, and therefore you must restart in order for the program to fully work. Doing this in WiX is fairly straight forward, you just schedule a reboot: <InstallExecuteSequence> <ScheduleReboot After="Insta...