wix

Uninstall error if original install DVD is not in drive

When trying to remove our application in Add/Remove Programs, the following error pops up, and the application fails to uninstall: Error 'mFileBagIDE.dll' is not a valid short file name. The curious thing is that you only get this error if the original installation DVD is not in the drive. If the DVD is in the drive, the unins...

How can I execute a Custom Action as System user with Wix 3.0, before checking to see if files are in use?

So I have a Wix 3.0 project that installs an IIS7 Native Code Module. When uninstalling I would like to be able to shut down the IIS7 application pools before deleting the file so that a reboot is not necessary. I am using the appcmd utility to shut down the app pools in a CustomAction element, but when I attempt to do an uninstall I ge...

How do I check whether Adobe Acrobat is installed using WiX?

The whole question is pretty much in the title. ...

Is it possible to change the language code of WiX depending on what language the OS is in?

I already know about the UserLanguageID and SystemLanguageID properties, but is there any way I could put this number into the language attribute of the Product tag? I'm probably either doing something very wrong, or it can't be done. Thanks ...

How do I include Satellite Assemblies(Localized Resources) in an MSI built with WiX?

Hello, The project I'm working on is switching from using the VS2008 deployment/installer to WiX, which i'm currently very new to. I've added the code to copy the output of the resources project into the Resources.dll, but in the old VS2008 installer file system there is also the localized resources output which currently produces two f...

Is there a way to set a preprocessor variable to the value of a property?

I have a WiX include file with the following code <Fragment Id="PropertyFragment"> <Property Id="DynamicLanguageCode" Value="[SystemLanguageID]" /> <?define productLanguage = [DynamicLanguageCode]?> </Fragment> Now in my Product tag in my WiX script I'd like to set the Language attribute to the value of productLanguage, as it onl...

wix: uninstall of application which uses a Service requires restart?

We developed an installer using Wix, and after uninstalling our app it suggests that we reboot the computer. It seems due to our app having installed a Windows Service. Is there any way we can avoid reboot, maybe if we have some code which stops the service, unregisters it, etc? ...

Detect Installed Software Using Wix

Hey all, Just to start I'm fairly new to wix. I am currently using version 3.0 with the Votive Visual Studio plug in. I know the upgrade code of an existing software package. I need to be able to detect the installation of this existing program using the particular upgrade code and halt the installation if the version of this program (...

How do you install Tomcat 6 as a service using the Wix ServiceInstall Tag?

How do you install Tomcat 6 as a service using the Wix ServiceInstall Tag? Is there a way to do it, or do I need to use a custom action to call the executable or batch file that comes with it to install the service? ...

Wix - ComPlusAssembly - Could not install type library

Hi, I'm new to Wix and I have ran into a problem that I'm obviously not able to solve on my own, so any help will be very much appreciated. Quick background: I'm representing a software vendor building a comprehensive suite of SOA based applications for deployment in large enterprises. Our architecture consists of many layers which ma...

How do you execute a custom action in WiX only if an installed feature is being uninstalled?

I have a WiX installer that has per-feature custom actions that need to be executed on uninstall. Right now I'm running into a problem where the actions execute whether or not the feature was actually installed by the user. The custom actions fail because they expect certain resources to exist and then the entire install is stuck in a ...

Including a fragment with Votive and Wix

I am separating out logical sections into fragment *.wxs files, but how do I include them in my main Product.wxs using Votive and Visual Studio? I am referencing the component in the main wxs file but receive and error that the component is not found. I'm assuming I'm not linking these correctly. Error 13 Unresolved reference to symbo...

Using WiX to install VB6 Binaries

I am converting an InstallShield project to a WiX based Installer. I have a number of VB6 projects whose binaries need to be registered. The InstallShield project actually marks these as self-registering files. From what I have read this seems to be a "Bad Thing" in the Windows Installer world. My question is, what should I be doing t...

Change Wix Merge Module Package GUID?

When is it necessary to change the package GUID of a merge module? <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"&gt; <Module Id="MyMergeModule" Language="1003" Version="1.0.0.0"> <Package Id="SOME_GUID" Manufacturer="Me" InstallerVersion="301" /> </Module> </Wix> Wix3 requires that the package GUID is explicitly specified...

Installer capabilities, WIX vs InstallSheild express.

Programmers that actually promote their products to production need an installer. (pre-emptive "programming related" justificaton.) For deploying a new suite of internal corporate apps and services, I'm trying to decide between using WIX and the InstallSheild express edition that comes with Visual Studio 2010. I've looked, but haven'...

WIX - Verify that file exists - and/or file-browser dialog/button

How do you create a "Browse" button in a WIX dialog. I currently have a custom dialog box with four radio buttons (Dev, QA, Stage, and Prod), and a text field for a filename. The install of course dies if the user enters a bad filename. I would be happy first of all just to verify that the file they entered exists. Secondly, I w...

How to create desktop shortcut for all users in WIX

Hello, I am developping a MSI installer by using WIX, I can create shortcut on desktop for only one user. Now what shall I do to make a shortcut for all users on the machine? Please advise. Thank you. <Shortcut Id="desktopshortcut" Directory="DesktopFolder" Name="test" WorkingDirectory='INSTALLDIR' Advertise="yes" /> ...

In Wix, how would you create a dialog to choose the name of a subfolder of the main application directory?

Hello, I am developing a MSI installer by using WIX. The main program installs to [APPLICATIONFOLDER]. I use the InstallDirDlg to set the directory of this without any issues. I'd like to display a custom dialogue based on the InstallDirDlg to specify a directory to install a particular component. I'd like to set the default direct...

Wix Compiler Extension Tutorial?

I need to create a WiX Extension to handle interacting with the HTTP API (httpapi.dll) so that I can set URLACLs and SSL bindings for a WCF service that is being installed. As I understand it, I need to create a WiX Compiler Extension, so that I can define an XML grammar (XSD), and then implement a Compiler to turn the XML into records ...

Wix Major Upgrade: how do I prevent Windows service reinstallation?

I'm working on an installer that is supposed to install several Windows services. We make new builds (with new .msi files) pretty often, and we use major upgrades to make it easy to install over a previous installation. The problem is that we need to update the service files without overwriting the service configuration (account usernam...