wix3

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

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

Detecting and suppressing REINSTALLMODE=v switch

Summary:: is it possible to detect REINSTALLMODE=v switch (passed to the msiexec) from within the WiX script code and disable it? Story. Our software has been using auto-updates delivered with MSI minor upgrades (downloaded automatically and invoked as REINSTALL=ALL REINSTALLMODE=vomus). This was version 1.x. Obviously, minor upgrades...

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

Include ServiceDependancy if checkbox selected WIX

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

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

WiX: Installing Service as LocalService

Hey there, I am trying to get my application an installer via WiX 3.0. The exact code is: <File Id="ServiceComponentMain" Name="$(var.myProgramService.TargetFileName)" Source="$(var.myProgramService.TargetPath)" DiskId="1" Vital="yes"/> <!-- service will need to be installed under Local Service --> <ServiceInstall Id="MyProgra...

How to display 8-bit icons in Windows Installer?

I have a number of .ico files in my installer that have various renderings for different palette depths, sizes, etc. These display on the MSI's UI rather than being a part of the installation process. Unfortunately, each of these icon files are displaying the 4-bit palette depth version, which looks a bit rubbish. Is there a way to ...

How do I get the location of a file in a WiX Script

How do I make a custom action that references a file on the command line? I have the custom action accessing the MYSQL properties correctly, but I haven't figured out the incantation to access the path to the installed sql script. Below are the relevant sections of the WiX script. I am trying to get the custom action to reference the ...

WiX Search and Replace on a configuration file

I'm trying to make an install using WiX and I need to modify a configuration file (not XML or INI) with entries that a customized WiX dialog. Is there a good way to do this? Do I need to make a VB script custom action, perhaps? Below is the relevant bits of the wxs file: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id...

Get INI file value with WiX

I'd like to read a value from an INI file in a WiX installer. I've just tried to use IniFileSearch, but this looks for an INI file or a path specified in an INI file (the documentation isn't clear), it doesn't read a value from an INI file. Do I need a customaction to do this? And if so, what would people suggest? Seems very strange if ...

Reusing WIX components to speed up candle/light.

I am fairly new to WIX, so forgive me if I'm completly missing the boat here, but I was wondering if it was possible to reuse components (mwm,cab,etc) from within a wxs file without having light re-link them every time. The installer I'm working on has several executables, dlls and config files that tend to change between each install. ...

C# custom action in Wix

When my application is uninstalled, the server needs to be notified so that it can free up the license key assigned to the client. This is done via a web service call. I created a C# custom action that does this. The problem is, the uninstaller is quitting saying that it couldnt find a dll. The error log for the msi contains the foll...

Set Wix property only if certain condition is met

What I would like to do is this: <Property Id="LICENSEKEYPATH"> REMOVE~="ALL" AND NOT UPGRADINGPRODUCTCODE <DirectorySearch Id="ProgramDataSearch" AssignToProperty="yes" Depth="4" Path="[#ProductDirInAppData]"> <FileSearch Id="LicenseFileSearch" Name="lic-conf.enp"/> </DirectorySearch> </Property> When my app...