wix

How do you make a WiX project build when dependent files have changes?

Hi, I've adopted a Visual Studio solution that contains a number WiX projects. We build the solution from an MsBuild script to generate the product's installer msi. The problem I'm experiencing is that if I build (and don't rebuild), even if exe's and dll's get updated that need to be put in the installer, the WiX build system doesn't ...

WiX - Passing parameters to a CustomAction (DLL)

I've got a DLL from an old WiSE installer that i'm trying to get working in WiX, so i'm pretty sure the DLL works with MSI-based installers. Here is my definition: <Binary Id="SetupDLL" SourceFile="../Tools/Setup.dll" /> <CustomAction Id="ReadConfigFiles" BinaryKey="SetupDLL" DllEntry="readConfigFiles" /> and usage: <Publish Dialog=...

WIX: How can I uninstall an ISAPI filter using WIX?

In WIX, I can install an ISAPI filter using the iis:WebFilter element: <Component Id='C.Filter1' Guid="6781xxxx-xxxx-4893-xxxx-aaaabbbbdddd"> <!-- CreateFolder - included to avoid problem with missing KeyPath --> <CreateFolder/> <iis:WebFilter Id="WebFilter1" LoadOrder="first" Name="My Custom ISAP...

How to check the system is Windows 7 or Windows Server 2008 R2 in Wix Installer?

Hi there, I am working on a windows installer project. And now I only want the software only can be installed on Windows 7 or Windows Server 2008 R2 system, I tried to use this: <Condition Message='Windows Server 2008 R2 or Windows 7 is required'>(VersionNT = 600 AND ServicePackLevel = 1) OR VersionNT = 601 </Condition> but it can st...

wix: does INSTALLDIR always end in a slash?

I think the default dir gets a trailing slash. But what if the user selects a different directory? Is there a way for the INSTALLDIR to NOT have a trailing slash? It's not that I want it to not have a trailing slash. I want to know if I can count on it, so that, for example, [INSTALLDIR]Filter.dll ...will always resolve to a re...

How to conditionally exclude features from "FeaturesDlg" in WiX 3.0 from a managed Custom Action (DTF)

I am trying to put together an installer using WiX 3.0 and I'm unsure about one thing. I would like to use the FeaturesDlg dialog to allow the users to select features to install, but I need to be able to conditionally exclude some features from the list based on some input previously received, preferably from a managed Custom Action. I...

GenerateBootstrapper fails to create a working setup.exe

I’m seeing some odd behaviour I can’t explain. I'm using wix to generate a msi and using the msbuild GenerateBootstrapper task to handle pre-requisites. It all seems to build correctly i.e. there are no error or warnings but the generated setup.exe won’t run. It gives a nice blank error dialog and the event log gives about the same inf...

How to move user content in Wix Installer

To support Window Vista in my game, I have changed were the save files are placed (From under Program Files to My Documents) for both XP and Vista installations. Now I would like to be able to move the current XP users save games from the old location to the new location. I think I can correctly trigger this via the upgrade checking co...

Wix Custom Dialog

We are currently having the Classic theme of (Wix) for our installer wizard. Now, we have plan to improve the look and feel of the installer. 1) How i can change the custom dialog classic themes to something else. 2) While installing our setup we have plan to show the some images like slide show. Is it possible to show the images like ...

Check for type of file system in an MSI package

In my MSI package I need to set user rights to a directory using cacls.exe. It works fine in an NTFS environment but fails when run on a Fat32 file system. Is there a method to determine the type of file system of the drive the software is installed to? I'm using WiX 3 to create my MSI package but any hint pointing to the MSI database w...

inno to wix upgrade

I have wix installer with latest version.Now i want to upgrade the latest wix with old inno set up.(inno to inno upgrade working fine And wix to wix upgrade also working fine.)Please suggest me a way to put upgrade code in latest wix ...

Stuck on preserving config file in WIX major upgrade!

ARGH! Wix is driving me crazy. So, of course I have seen the many posts both here on stackoverflow and elsewhere about WiX and major upgrades. I inherited this software project using WiX and am releasing a new version. I need this new version to leave ONLY the one configuration file if it's present, and replace everything else. This...

How do I share a WiX fragment in two WiX projects?

We have a WiX fragment in a file SomeDialog.wxs that prompts the user for some information. It's referenced in another fragment in InstallerUI.wxs file that controls the dialog order. Of course, Product.wxs is our main file. Works great. Now I have a second Visual Studio 2008 Wix 3.0 Project for the .MSI of another application and ...

How to associate application with existing file types using WiX installer?

related to this: http://stackoverflow.com/questions/138550/how-to-register-file-types-extensions-with-a-wix-installer but not a duplicate. I need to handle existing file types (.jpg files). I do not want to be the default handler for .jpg, I would just like to extend the "Open with" menu with a link to my app. I see HKCR\.jpg\OpenWith...

Problem with WiX major upgrade!

The Problem: I need both these files, PathwaysMDF and PathwaysLDF to replace (overwrite) the old copies on a major upgrade. Okay, this WiX is driving me crazy. The settings file works perfectly, however the database files are still not working! I have tried several approaches... Here is the code attempting this with the registry key...

Wix: I can't use some tags :/

Hi :) I want to create installer in Wix. I use 3.5 version integrated with VS2008 Professional. I need detect MS SQL Server installation (I do it) and eventually install it. I try to use bootstrapper, there is code: <ItemGroup> <BootstrapperFileMax Include="Microsoft.Sql.Server.Express.9.2"> <ProductName>SQL Server 200...

How to move progress bar during custom action

While running the custom action in the installer there is no progress bar. We are using the Immediate C# manage code custom action. Is any other ways to show the progress while running the custom action ? Advance thanks \ Velu ...

Wix - Upgrade always runs older installer msi and fails in trying to read old msi

I'm having a problem though with the Windows caching of the installer. I'm trying to do an upgrade and each time the Windows installer is launching the installer of the older version. And when I do the upgrade it is complaining about problems with reading the older version's msi file (because its not in the same directory anymore). I di...

Problems referencing build output from TFS Build and Visual Studio

Here's what I'm trying to do: I have two solutions - one for my main application and its associated projects and another for my database (VS .dbproj) and its associated projects. What I'd like to do is include the output from the database project (a .dbschema and some SQL scripts) in my WiX installer (which exists in the main application...

Install SQL express; msm file

Where can I download sql server 2008 msm file from ?? I need to insall it with my software ?? Thanx :) Jacek ...