wix3

Wix cannot resolve symbol "Icon"

I'm just starting out with WiX 3 and can't figure out why it can't understand the Icon attributes in my .wsx file. I get the error message: Error 2 Unresolved reference to symbol 'Icon:Sample.exe' in section 'Product:{95DB18C7-24DC-474D-B58C-DC91AFD912F3}'. The section it is complaining about is: <Shortcut Id="startmenuSample" Direct...

Folder within Program Menu Folder for WiX 3

Following some example code on the net, I got my first WiX installer to work. However, it placed my program menu shortcut directly on Program Menus. I really want to create a folder, Sample, in Program Menus for my link. Original Code: <Shortcut Id="startmenuSample" Directory="ProgramMenuFolder" Name="Sample 0.5" WorkingDirectory='IN...

How to get a InstallDirDlg after FeaturesDlg

I've been trying to get a InstallDirDlg to show after the FeaturesDlg, but for some reason I get the Install progress Dialog. So, I created this simple test project that has 4 features (each installs a file)... Here's the code, thanks for the help... <Fragment> <UI Id="UserInterface"> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR...

WIX buttons / pop up dialogs

Hi All, Is there a way to add a button to a WIX custom UI? More importantly as well how do I make it spawn a dialog? Something like this, <Control Id="ConfigureDatabase" Type="Button" Width="70" X="150" Y="210" Height="18"/> I get an error when doing that, The installer has encountered an unexpected error installing this package. T...

Install Sequence

Hi All, I am writing an installer which has a EULA, and then a dialog to ask whether they want to do a 'custom install', or 'default install'. If they select custom they get a bunch of dialogs relating to SQL settings (as shown below with the next button starting the 'StartupMenu' dialog if they have selected custom install). If they ...

What does EndDialog do?

Hi All, I have a WIX installer and I am trying to work out what this line is actually doing (attached to the next button on my WIX dialog). <Publish Event="EndDialog" Value="Return" >1</Publish> It seems to me that this line means we are handing control back to the installer after showing our custom dialogs. But how does it then know...

In WiX how do I test for the existence of a registry key (not value) for Oracle ODP.Net

More specifically I want to test whether Oracle ODP.Net is installed on a machine. I want to do this by testing for the HKLM\SOFTWARE\ORACLE\ODP.NET registry key. The actual values used by ODP.Net are stored in HKLM\SOFTWARE\ORACLE\ODP.NET\2.111.6.20 however I assume that this lower level key's name will change as updates are released b...

How to detect the running process in Wix3?

I'm using wix3 to build a setup file, I would like to know whether the outlook is running during the installation. If the outlook is still running, the setup should notify the users to close it or have to reboot after the installation. I noticed that there is a feature can send a message to close the outlook directly, but that's not ve...

How do I set the xmlns attribute when using XMLFile in Wix 3

I am adding elements to an XML file during installation using the XmlFile element: <util:XmlFile Id="SetOracleDialectProperty" Action="createElement" ElementPath="//hibernate-configuration/session-factory" Name="property" Sequence="9" File="[INSTALLLOCATION]Config\hib...

How to install a plugin or add-on with WiX

Hello, I need to install plugins (or add-ons) to an application we write. I user WiX for the installer of the application. A plugin is, in my mind, an optional part of the application. It needs to integrate into the file-system structure of the application, but it can also be added later, even by someone who does not have control over th...

Installing .Net Add-in for POS 2009

I'm working on writing a WiX project to install a .Net Addin that is built for Microsoft POS 2009. During the development of the project, you had to run the command: AddinUtil.exe -PipelineRoot: {directory to the Addins folder for POS 2009} so that POS 2009 would recognize your Addin. Now that I'm getting ready to do the depl...

In WiX how can I select an IIS website by name?

What I would like to do is show the installer user a list of the websites on their server and allow them to choose one (using the method described here: http://www.cmcrossroads.com/content/view/13160/120/, which now seems broken see here for the core code). The installer would then create a virtual directory in the chosen website. Howev...

How can I require at least one of two optional components in WiX?

I am using WixUIFeatureTree to offer the user an option of what components of my application they want to install... One of my features has two optional features within it, at least one of which must be installed for the program to work. I don't want to force the user to install either particular one, but I'm at a loss as to how to fo...

How do I populate a ComboBox at install time in WiX?

Edit: I've updated the code below so that it now works, thanks to Rob's answer. I've found a couple of pages that show how to do this (http://www.cmcrossroads.com/content/view/13160/120/, http://www.mail-archive.com/[email protected]/msg05103.html) and looked through the source code for WAI (http://wai.codeplex.com/), but ...

WIX 3 : Using HEAT for Visual Basic 6 COM Dlls

I am using WIX 3. I have used heat to create a wxs file for a VB6 dll. The msi creates without any errors, and the installation is successful as well. All seems to be fine, and I can invoke the component successfully from a VB client. However, if I invoke the component from an ASP page, I get 0x800401f3. If instead of the installer, ...

Change my component GUID in wix?

When I should not change my component GUID in WIX? ...

Uninstalling an in-use shared assembly leaving WinSxs in a bad state.

I am having troubles uninstalling a shared win32 SxS assembly using Wix3 on WinXP. My wix file looks pretty much like the one described in http://n2.nabble.com/Tutorial-How-to-install-files-into-WinSxS-td841475.html. The problem is, if a module from the assembly is in use, the uninstaller completes with a success errorcode but leave...

Dynamically create WIX files without having to edit the wix files manually

Suppose you release the next version of your software, you will have to manually update your WIX files to remove obsolete files and add new files, etc. My use case is as simple as "recursively add the files under /sample/path in the user target C:\Program Files\MyApp". Is there a program that does this sort of automation? ...

wix product id should be autogenerated for patch number changes?

I use wix for building a setup for a product. The product has version of the format major.minor.patchnumber Example: 4.5.1313 in each build the last patchnumber keeps changing like 1314, 1315 and so on. I would like to know whether I should keep the id attribute in the product element as autogenerated between just the patch number...

How do I dynamically set a file source based on a property in WIX?

We have four regions (dev, test, qa, prod) that all require environment specific config files. I am trying to develop a WIX install that will accept a property assignment from the msiexec command line and dynamically set the file source of a config file. I've tried just about everything and read about every page and I can't seem to mak...