wix

Wix: Stopping a Windows Service on uninstall

Hi, When I uninstall my service I get the error where it says I have to stop such and such service before uninstalling. This is unsatisfactory - the uninstaller should automatically stop it. I found a blog or newsgroup posting on this months ago and got it to work properly, but now it has stopped working for me. And I don't have a link...

How to inspect a CustomAction's property (Wix)?

I am trying to put together a small 'prerequisites' dialog in Wix to give confidence to the users that they have all of the required things needed to run my software: For example, I have a need for Managed DirectX, so I look for some DLLs: <Property Id="MANAGED_DIRECTX"> <DirectorySearch Path="$(env.SystemRoot)\Microsoft.NET\DirectX ...

Wix - change the installation folder based on privilege

I have to create an installation package using Wix. If an admin user is installing the package, it should install into %programfiles%/[applicationName], if the user is an non-admin user then it should install into its local profile folder( LocalAppDataFolder). How it is possible? Ta, Rajeesh http://www.rajeeshcv.com ...

Wix: How can I set the property after CustomAction? Do I need CustomAction??

Hi, I want to install a plugin with the Wix Setup. On the computer, there could be installed more versions of the application, so the user has to decide, which version should be used. The applications are written in the registry in this way: HKLM\Software\Company\Application\Version .... That meas that the key HKLM\Software\Company\Ap...

WiX drops fragments with only Error elements if not reference by custom actions

Hello, I'm using WiX (3.0.3815.0) on a fairly large project. I want to do some code generation that will generate Error elements out of some kind of source (purpose: Both C-compiled CAs and MSI need to see the error strings and know about the IDs). I generate something like this: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http:...

Wix UI conditionals best practices

I have a fairly complicated installer that I'm writing in Wix that has a lot of custom dialog options based on which components you're installing. Generally, defaults are fine, and thus an unattended install would succeed, but having this customization helps things. What I'm wondering is, what are best practices in Wix for doing UI con...

WiX: How to register application to start when Windows launches?

I'm exploring distribution of .NET desktop applications with MSI generated by WiX. So far it works great. But I've got a few questions, googling can't help out with. What's the advised way of registering application to start when windows launches (in WiX)? What WixUI could I use and how? Notes: The application is not a Windows Ser...

Check if service is running in WiX

Hi all, Recently I had a problem in a costumer's computer. Our installer would hang during install and uninstall. Eventually I found out that the winmgmt service wasn't running, and that was causing the problem. For some reason it was disabled. I would like to add a check to our installer, to guarantee that the service is running when ...

WIX - Creating Shortcut to desktop for an existing file on the filesystem

I've been tasked with creating some shortcuts to the desktop when our app installs. Most of these shortcuts belong to our own app and its deployed files but a couple belong to other executables that already exist on the target system (such as Sharepoint Central Admin). For the shortcuts I need to deply for our own app I think an unadver...

WiX 3.0 throws error 217, while being executed by continuous integration

This is the error that is thrown by our automated build suite at Windows 2008, while running ICEs (after migrating from WiX 2.0 to Wix 3.0): LGHT0217: Error executing ICE action 'ICE01'. The most common cause of this kind of ICE failure is an incorrectly registered scripting engine. See http://wix.sourceforge.net/faq.html#Error217 fo...

Wix File element Source set to installed file

I am installing files to \MyApp. I want to add some of these files to GAC. How could i refer to the installed location in source attribute of the File element ( which has assembly set to .net) to acheive this ? Thx for your help. ...

Is it possible to target x64 .msi with WiX on a 32bit machine?

I'm developing SharePoint solutions on a virtual 32bit machine, and I use Wix to package the setup. I'm targeting both 32bit and 64bit environments with my solutions, but in order to create 64bit MSI's, I need to have have a 64bit machine and the 64bit version of WiX. Normally, this wouldn't be an issue, since I would have just simply ...

How do I upgrade without adding files with WiX?

I'm making MSI's with WiX for our product. The product loads some optional assemblies as modules. This allows us to just drop a dll into the directory and charge a bit more! Now I want to make a common major upgrade MSI that includes all the possile module assemblies but only upgrades files that exist, and doesnt install missing ones. H...

Component Execution Order In Wix

Is there a way to ensure, either through specifying order or by specifying dependencies, that one component will execute before another in WiX? Specifically, I'm trying to create a database, then, optionally, run a script on it. My Wix looks similar to this: <ComponentGroup Id="SQLServerComponentGroup"> <Component Id="SQLServerIs...

Include ServiceDependancy if checkbox selected WIX

Is it possible to include a ServiceDependency based on whether a checkbox was selected in a WIX application? ...

How do I register a .NET assembly to the GAC and register it for COM in WIX? (Regasm)

I am making a custom tool (code generator) for VS2008. I have the wix installer putting in all the registry entries for the visual studio, but what it is not doing is the equivalent of regasm mytool.dll It is getting into the GAC by virtue of the Assembly=".net" attribute of the File element. But I am not even entirely sure that getti...

What is the correct fragment to create a executable shortcut in wix 3.0

I have: <File Id='MantSegEXE' Name='MantSeguridad.exe' DiskId='1' Source='..\MantSeguridad\bin\Release\MantSeguridad.exe' Vital='yes'> <Shortcut Id="desktopMantSeg01" Directory="DesktopFolder" Name="MantSeg 1.1.0" WorkingDirectory='INSTALLDIR' Icon="MantSeg.ico" /> </File> but I get this error: error LGHT0204...

Can I set a custom license using WiX?

The default license for an MSI generated by WiX is the common public license. How do I change this to GPLv2? ...

Why do my MSI images look corrupted when using WiX?

I'm setting a custom banner and dialog image for my WiX generated MSI. <WixVariable Id="WixUIBannerBmp" Value="./build/msi/InstallerBanner.jpg" /> <WixVariable Id="WixUIDialogBmp" Value="./build/msi/InstallerDialog.jpg" /> For some reason, the image becomes corrupted when built into the MSI. I've added the two images to my question fo...

WIX installed program not uninstalling correctly

This is my situation. I have two programs. Lets call them program A and Program B. They both use WIX to create the MSI packages. A is a WindowsService, B is a Windows WCF Service When I install the services, A and B installs without issue. Without turning on the services.. When I try to uninstall either A or B (order does not matte...