wix

Wix: Add a sequential registry key

I am writing an installer using Wix 3 which installs a plugin to a 3rd party application. The application uses a group of registry keys to detect installed plugins. Each plugin is required to add a new subkey with a numerical name from 0-9 to the HKEY_LOCAL_MACHINE\SOFTWARE\Vendor\App\Plugins. The key contains a single string value whi...

Using an absolute value in a .net installer

I'm using WIX files to build an MSI to deploy an application. It work using an environment value, <Property Id="ProgramFilesDir" Value="$(env.ProgramFiles)" /> but doesn't seem to understand abolsute values, e.g <Property Id="ProgramFilesDir" Value="X:\MyFolder\" /> Is there anywhere else I need to declare absolute values? ...

WiX installer design options for bootstrapper and seamless updating

I have an app that on first installer run needs a boostrapper where you can choose the language of the installed app, install .net framework if it's not there yet and some other prerequisites. I've taken a look at the WiX How To: Install the .NET Framework Using a Bootstrapper but I don't see how to use this for other custom prerequ...

What is the wix 'KeyPath' attribute?

What is the Wix 'KeyPath' attribute? In particular, how does it apply to the following: <Component Id="ProgramMenuDir" Guid="BF266F76-192A-493E-B5C7-C54660E61D7D"> <RemoveFolder Id="ProgramMenuDir" On="uninstall" /> <RegistryValue Root="HKCU" Key="Software\CompName\AppName" Type="string" Value...

How to install and start a Windows Service under NetworkService account by using WiX?

Dear All, I am trying to create a wix installer to install and start a Windows Service under NetworkService account, but failed, what I got is "Service"() could not be installed. Verify that you have sufficient privileges to install system services." Please advice, my code is as below: <Component Id="service" Guid='myguid'> ...

Use Wix installer to add shortcut to subfolder in startmenu programs

I am trying to add my program shortcut to an existing folder in the start menu shortcuts. For example All Programs -> AppNameFolder -> AppNameVersionFolder -> AppShortcut In order to achieve this I added the extra lines: <Directory Id="ProgramMenuFolderApp" Name="App"> <Directory Id="ProgramMenuDir" Name="APP ...

How do you determine if a WiX installer is quiet or interactive?

Is there a way within WiX to determine if the installer is being run in quiet mode or interactively? ...

Remove file and folders on uninstall

Hi, i am learning WIX to build installer for my app but i am stuck with removing files, my question is how can i remove files and folders on uninstall. when i click on remove button all files and folders which installer created doesn't remove on uninstall. please help me. ...

Passing build parameters to .wxs file to dynamicaly build wix installers

Good day I am a student developer and I have built several installers for the company I am working with now. So I am fairly familure with WIX. We recently decided to have a Build server that auto builds our solution. It builds both debug, and release, aswell as Obfuscated(and non obfuscated) projects. And you really don't have to unders...

Is it Possible to make installer experience like photosuru in wix??

hii, As we can make installer using SCE(Syndicated Client Experiences) kit like photosuru http://tozon.info/blog/post/2009/02/07/photoSuru-install-experience.aspx what i want is that change images on the progress of installation as u can see in the photosuru.i want the same in wix. it makes a better installer experience possible in wix...

How do you create a shortcut in the SendToFolder for all users with WiX?

When I try to create a shortcut in the SendTo folder for all users in WiX, I receive the following error: warning LGHT1076 : ICE91: The shortcut 'MY SHORTCUT NAME' will be installed to the per user directory 'SendToFolder' that doesn't vary based on ALLUSERS value. This file won't be copied to each user's profile even if a per machin...

WIX CustomAction - how to get more info in install/log

Someone told me there was a way for the CustomAction in WIX to display the output in the console log. I'm including an .exe called XmlPreprocess.exe to manipulate my web.config, based on parms in a file called SettingsFileGenerator.xml, I'm running like this: msiexec /i bin\Debug\TFBIC.RCT.WCFWebServicesWIXSetup.msi /L*V "C:\logs\Wix...

Adding first custom Dialog Box to WIX in VisualStudio environment

I'm using Visual Studio to build my wix file. So far I have one file Product.wxs and it's working for a simple install. Now I want to add some custom dialogs. I think from the two articles below, I understand how to do it - after I get my environment set up: http://blog.torresdal.net/2008/10/24/WiXAndDTFUsingACustomActionToListAva...

Maxlength in Wix Edit control

Is there a way to specify the maximum number of characters allowed in an edit control in Wix?There does not appear to be a property such as Maxlength. The only option I can think of is to use a MaskedEdit control, but there is no option to specify the field length directly. So, to set the Maxlength to say 50 characters, I would have to...

WiX Uninstalling after a minor upgrade

I have noticed that after applying a minor upgrade (1.0.1) the uninstall will be executed using the older version of the installation package (1.0.0) and not with the new package (1.0.1). Is it possible to uninstall using version 1.0.1 ? This is what I done: I have a version 1.0.0 msi package. After installing version 1.0.0 I app...

How to create a shortcut using wix that could change depending on a user's system

I have created a Wix installer that places 3 shortcuts onto the desktop. One of these shortcuts references the user's DVD Drive. Is there a way to dynamically set the target of this shortcut based on that drive letter? Would a custom action be the way to go? If so how would I change the target of a shortcut using that custom action. I ha...

WIX equivalent of a C# textbox?

I'm staring at this page wondering which control is a textbox. Seems like it should be obvious, but I don't see it. http://wix.sourceforge.net/manual-wix2/wix_xsd_control.htm Also, is there a built-in "Browse" button to select a file from disk? Or do you have to code all that yourself? Thanks, Neal ...

Wix create non advertised shortcut for all users / per machine

In WIX, how do you create a non advertised shortcut in the allusers profile? So far I've only been able to accomplish this with advertised shortcuts. I prefer non-advertised shortcuts because you can go to the shortcut's properties and use "find target". In the tutorials I've seen use a registry value for the keypath of a shortcut. T...

WiX undefined preprocessor variable

I'm starting to use WiX in order to do automated builds to create msi's of my c# projects and am experiencing the error "Undefined preprocessor variable '$(var.MyProject.TargetDir)'" I am using the latest WiX v3.0.5419. Inside my wxs file I am trying to use pre-processor variables that are listed on this webpage (http://blogs.msdn.com/j...

WIX property value substitution and CAQuietExec

So far, I'm NOT finding WIX to be my favorite most intuitive, easy-to-use, language/system. I created a custom dialog, entered data, and see the values in the install log. MSI (c) (C8:A4) [14:42:37:137]: PROPERTY CHANGE: Modifying VARRADIOBUTTONENVIRONMENT property. Its current value is 'Dev'. Its new value: 'QA'. MSI (c) (C8:A4) [14...