wix

How to schedule a deferred custom action from an immediate custom action in Wix/DTF?

I've seen statements to the effect that it is possible, even commonplace, to reference an immediate custom action from a .wxs file, and to have that custom action schedule subsequent (deferred) custom actions. What I don't know is what the code looks like that does this. Anyone? ...

WiX generated MSI is not compressed

I use WiX3 to generate MSI installation package. I have specified comression flag on in both the <Package> and <Media> elements: <Package InstallerVersion="200" Compressed="yes"/> <Media Id="1" Cabinet="MySetup.cab" EmbedCab="yes" CompressionLevel="high" /> but the resulting MSI is not compressed at all - WinZip compressed it from 2M...

Is it possible to use .png images for WiX bitmaps

I am using 2 500K bitmaps in to display images on my WiX dialogs. They dramatically increase the size of the installation package, and what is worse - it looks there's no way to package them as a part of a .cab file since they're <binary>-es in the WiX terms. So, I thught, is there any way to use other file formats for bitmaps or WiX i...

Include a text file content into a WiX script.

Is there a way to read value for the WiX variable from a text file? What I am trying to do is to include a version-specific information into instlal package. This version information extracted into the text file on the pre-build step, the question is how to propages this text file content into a build process. One of the possible solu...

DB Pro (data dude) and Wix3 SqlExtension

I'm attempting to use Wix to create a database during install. I have my database setup with the Db Pro Visual Studio SKU (Data Dude as it's sometimes referred). However, the output seems to be only consumable by sqlcmd.exe since it uses specific syntax in it (variable references like :setenv and $(FOO)). I'm trying to use the wix sqlex...

Product Installation and Configuration on a Windows Machine

Hi, I am working on a .NET 3.5 project which consists of a web application and a Windows service. Both need to be deployed on the server machine. I have created an msi package using Wix 3 which installs the application files, creates shortcuts and registers the service. My next task is to implement the following: Post-install step t...

Get install date from managed code

Is there a managed API to retrieve an application's install date using the Product GUID? Thanks. Scott ...

How to add a whole directory or project output to WiX package

We decided to switch from VS integrated setup to WiX. However, what we currently do is use projects output files as the input for the setup project. This lets us easily add Application Files to a directory (for images, samples, and other resources...) and those files are automatically added to the setup when we build. I could not find ...

Wix and .NET Framework (prerequisites)

How can I have my Wix package to download the required .NET Framework when it's not yet installed in the client's machine? I already have the condition to check for the installed .NET version but I'm not sure how to have it downloaded and installed when not found. ClickOnce does this automatically by checking the pre-requisites in the p...

writing registry in wix - problem illustrated with sample wxs file.

I am trying to write to registry using Wix. it is failing showing the error "The error code is 2727" to run this sample follow the below steps. you need a text file in c:\testinstall.txt it installs the file testinstall.txt in C:\Program Files\testinstall candle sample.wxs light sample.wixobj sample.msi will be created when i ad...

Free software for windows installers: NSIS vs. WiX?

I'm need to choose a software package for installing software. NSIS and WiX seem promising. Which one would you recommend over the other and why? Feel free to offer something else if you think it's better than these two. ...

Trying to use EnsureTable in Wix to fix Validation Errors

I hit numerous errors in Wix 3.0 when I tried to use the msvbvm60.msm merge module: C:\[...]: error LGHT0204 : ICE03: Table: Registry Column: Registry Missing specifications in _Validation Table (or Old Database) C:\[...]: error LGHT0204 : ICE03: Table: Registry Column: Root Missing specifications in _Validation Table (or Old Database) ...

How to get Application Data folder/Word template folder in Vista?

Using WiX (Windows Installer XML) I have created an MSI installer which installs Word templates into the users Application Data folder, e.g. on Windows XP C:\Documents and Settings\<user>\Application Data\Microsoft\Templates I'm retrieving the path to this folder from the registry: <Property Id="APPDIR" Secure="yes"> <RegistrySe...

WiX: CopyFile attributes

On install I want to optionally copy some .ini files from SOURCEDIR to TARGETDIR which means from the directory the .msi file is located to the destination folder the app is setup to. I did <CopyFile Id="CopyIniFile" DestinationProperty="INSTALLDIR" SourceProperty="SOURCEDIR" SourceName="Dreem15.ini" Delete="no" /> but it seems it's not...

How to create a multi-level subfolder in Start menu using Wix

Hi guys. How do I create sub folders (several levels deep) in the Windows Start menu, using Wix? Currently I am able to put my shortcut in the Start menu, but only in a folder immediately under Programs (Start / Programs / MyFolder), but I want to nest my shortcut deeper (Start / Programs / MyPlatform / MyProduct / etc). I tried differen...

WiX tricks and tips

We've been using WiX 3 for a while now, and despite the usual gripes about ease of use, it's going reasonably well. What I'm looking for is useful advice regarding: Setting up a WiX project (layout, references, file patterns) Integrating WiX into solutions, and build/release processes Configuring installers for new installations and up...

How do I create a conditional property in Wix? (Almost like an If-Then)

I have a Wix project that installs a few exe files. One is the 'Main' executable and the others are supporting programs to help diagnose problems. The main executable is optional, and the support programs will run on their own. Often, the end user will install a thrid-party program instead of my main executable. At the end of the wix i...

Help with one step build all projects + installer (.NET + WiX)

I have prebuild events on the installer to rebuild the projects with the appropriate configuration etc. If I right-click build/rebuild on the WiX (3.0) project in visual studio it all builds fine, but if I try to run MSBuild on the wixproj file the pre-build events will throw errors. I can instead call Candle and Light on the wixpr...

Wix major upgrade

How do I use WIX to prevent overwriting a config file during a 'Major Upgrade'? I want the file to be installed on the initial install, removed on uninstall, and left unchanged on a 'Major Upgrade'. Thanks ...

WiX: How to create a share for all users?

I am using WiX to create an installer, and wish to share a folder during the installation process. I would like to grant permission to all users. I am using the following fragment: <util:FileShare Id="MYSHARE" Name="MyShare" Description="Description of MyShare"> <util:FileSharePermission GenericRead="yes" Read="yes" ReadAttributes="ye...