wix

WiX major upgrade doesn't run when I remove a merge module from the project

Hello, I've got a WiX project that includes the installation of Visual C++ 2008 runtime components for x86 with a separated merge module. Unfortunately there's a well known issue with that .msm with MSI v4.5. To be more specific the .msm custom action SxSUninstallCA takes 20 minutes to complete on uninstall. So, long story short, I de...

WIX Installer time frame to develop an installer

My boss has requested I build a Win Installer MSI using WIX. He has given me 2 days based on the fact that the PA in the group says it is easy to use WIX (He made an installer in about 2 months). Now for the fun part, the application deploys 4000 files to 14,000 locations, has custom actions, and installs 25 services. Files go to the C ...

Is it possible to create .msi files that install files to non standard locations?

I need to generate an .msi package to deploy some files on my computers. I can do this using a program called Deep Freeze. I provide the .msi and Deep Freeze puts it in my workstations. I've been trying to create this .msi with the WiX sdk but I can't use my own folder path but as soon as I replace the APPLICATIONPATH with something else...

How to upgrade from an old and unavailable version of Wix?

I have to make a maintenance release of a project that hasn't been touched for a couple of years. Unfortunately, it requires Wix version 2.0.3719.0, which is no longer available and wasn't checked in or saved somewhere by the original developers. Downloading the required version of Wix is difficult too because it apparantly moved away f...

How do I customise the Wix Progress Dialog

I'm trying to customise the standard WiX Progress Dialog (I want to make it show the ActionData). I've followed Neil's guide to customising dialogs but the trouble is, the original ProgressDlg is still being shown instead of mine. I think I know why: if you tool at the source to ProgressDlg you can see this block of code: <InstallUI...

Windows Installer XML Domain Objects

I've been working on a tool that creates a UI for authoring wxs files. Currently it's simple code that uses Linq-to-XMl queries to bind the UI to the XDocument and I'm starting the process of refactoring it. My question is: Are there any classes already in WiX that provide useful functionality? For example something like enumerating a...

Are Distributed Transactions a good idea for enabling rollback of database upgrades in Windows Installer Custom Actions?

I've outgrown the Sql Server custom actions available in WiX, so I'm taking the bold step of creating my own using Deployment Tools Foundation. I want to be a good citizen and make sure that mine support rollback. But what's the best way of doing it? I need to support SQL Server 2005 and later, all editions. The problem, as I see it, i...

How can I insert the greater- and less-than characters into an XML file modified by WiX during install?

I'm using WiX to author a Windows Installation database for my application. I've got an XML file that is installed along with my app, which needs to be filled with information obtained during installation. The WiXUtilExtension tags util:XmlFile and util:XmlConfig are great ways to do this, in principle, but they don't quite solve my prob...

How do I read app.config values and set properties in Wix

I have a .NET program that I've written a Wix installer for. I want to be able to update from a pre-Wix version. To do this, I'd like to read from the installed program's app.config file. This will save the user from having to manually retype in all of these values. Is there anyway to do this? Thanks! ...

Installing WiX 3.5 alongside WiX 3.0

Is it possible to install both WiX 3.0 and 3.5? If I install 3.5 after installing 3.0, it removes the 3.0 files - and if I attempt to install 3.0 after 3.5, it tells me there is a newer version already installed. I'm in the process of migrating from VS 2008 to VS 2010, so one version (branch) of my application is is using VS 2008 (exist...

Splitting up a WIX file

So I thought it'd be clever of me to split my WIX file up into various smaller files. I did this for a couple reasons. One being that it would make it easier to maintain. Anyway, regardless of my reason, I put the components in one file. But when I compile, I now get a warning that says: warning LGHT1079: The cabinet 'media1.cab' do...

WIX: GenerateBootStrapper conditions?

I've built an installer with WIX and have packaged it with the .NET 4.0 framework using the GenerateBootstrapper task. Now .NET 4.0 cannot be installed on XP SP2, but it appears to have no precondition check for this so its installer fails halfway through. I'd like to add my own check to make sure the OS that the entire package is being...

Get an environment variable into a WIX property

Hi, Is there a way to get an environment variable in WIX into a property? I'm trying to get the USERPROFILE with: Property Id="UserFolder" Value="$(env.USERPROFILE)\EdwardsApp\MyFolder" But this only picks up the USERPROFILE of the build machine, where the installer is built. I want it to use the USERPROFILE of the machine where th...

How to get a Wix installer to update an app.config with bindingRedirects

I have a Wix 3.0 project that installs some .Net assemblies into an existing application. As part of the installation, I need to update the application's config file with bindingRedirects so that the correct assembly versions are used, e.g., <configuration> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> ...

What would cause a Windows Installer package to lose its progress status?

I have a WiX installer project which has recently been producing installers that don't show any file installation progress. That stage takes around 30 seconds to complete, and users may think that the install has hung since the progress bar remains empty until the install suddenly completes. I know there used to be a progress bar for th...

Wix C# Custom Action .Net 4 Error

I am trying to use my first custom action in Wix and I am receiving error 2896: Executing action CustomActionTest failed. I am using VS 2010, Wix 3.5, 64-bit Windows 7 Ultimate, .NET Framework 4 Here are what I think are the relevant sections: <Binary Id="JudgeEditionCA" SourceFile="..\JudgeEditionCA\bin\Debug\JudgeEdition.CA.dll" /> ...

WiX: InstallService conditionally, but install file unconditionally

In Windows Install XML toolset, to install a service, we group <ServiceInstall> with a <File> in a <Component>. To conditionally install the service, we put <Condition> under the <Component>. However if the condition is false, the file will not be installed too. If I put the <File> in an unconditional <Component>, then the service has no...

WiX Executing an Application Unconditionally

alo Everyone. My problem is twofold. I have a WiX Project that I have been working on, and have been tasked to make it perform a program execution regardless of the user pressing cancel, the installation being aborted (via an already existing version) or the user successfully finishing the installation. I currently use the built-in di...

Problem invoking PowerShell commands from C# custom action in WiX installation

Background: I'm writing an installation for a SharePoint component. In addition to getting the software onto the target machine, I want to properly configure it. SharePoint (esp. 2010) exposes its management functionality via PowerShell. So I wrote a C# custom action to invoke a series of commands, like this: Runspace runSpace = Runs...

How to create a setup experience much like LogMeIn?

I would like to find out if someone (and maybe someone on StackOverflow works for LogMeIn, and can fill me in on the details) knows how to create a similar experience much like what you get with LogMeIn when you install their remote components on a computer, when logged into their site? Typically, when you download and keep their remote...