From MSI to WiX, Part 8 – Major Upgrade

The main page for the series is here.   Introduction A typical Major Upgrade removes a previous version of an application and installs a new version.  This blog will guide you through the process of creating Major Upgrade. Source code for RTM version Let’s create a C# solution with two projects in it: library and console application. …

44

From MSI to WiX

Русская версия здесь.   This is a series of articles on building installation packages using WiX. From MSI to WiX, Part 1 – Required properties From MSI to WiX, Part 2 – ARP support From MSI to WiX, Part 3 – Launch Conditions and Application Search From MSI to WiX, Part 4 – Features and Components…

28

From MSI to WiX, Part 3 – Launch Conditions and Application Search

The main page for the series is here.   Introduction Before we start with Launch Conditions and Application Search let’s take a look at the sequence of actions Windows Installer executes during installation.  You can find the suggested sequence for InstallExecuteSequence table here. Basically, what this table is saying is that in order to install any…

18

From MSI to WiX, Part 10 – Shortcuts

The main page for the series is here.   Introduction Microsoft Windows Installer supports four installation states for product features: Installed locally Installed to run from source Absent Advertised  When feature is advertised, it is not actually installed on the local system.  However, appropriate shortcut to launch the feature is present.  The first time a user…

16

From MSI to WiX, Part 25 – Installable Items – Updating XML files using XmlFile

To use XmlFile element we need to: Add  reference to WixUtilExtension extension. Add util namespace to <Wix> element: <?xml version=”1.0″ encoding=”UTF-8″?> <Wix xmlns=”http://schemas.microsoft.com/wix/2006/wi”      xmlns:util=”http://schemas.microsoft.com/wix/UtilExtension”> Here is what we can do with existing XML file using XmlFile element: Set the value of an attribute Set the text value of an element Create new element Create new…

9

From MSI to WiX, Part 15 – Installable Items – Ini files

The main page for the series is here.   Introduction Today’s topic is how to create and modify Ini files. MSI story Ini file contains configuration information that application needs during run-time. MSI has two tables related to Ini files:  IniFile and RemoveIniFile.   IniFile table contains information about data which need to added to the Ini file…

8

From MSI to WiX, Part 1 – Required properties

The main page for the series is here. Русская версия здесь.   Introduction  Today I will start a series of posts about creating an MSI installation package using WiX.  The goal here is to show what is omitted from the WiX documentation and explain not just what needs to be done in WiX, but also – why. …

7

От MSI к WiX

English version is here.  Словарь здесь.  Это серия статей о том как создать инсталлер используя WiX. От MSI к WiX, часть 1 – Обязательные свойства От MSI к WiX, часть 2 – Поддержка “Установка и удаление программ” От MSI к WiX, часть 3 – Условия запуска и поиск программ От MSI к WiX, часть 4 -…

7

From MSI to WiX, Part 4 – Features and Components

The main page for the series is here.   Introduction When we install any msi what we are doing is we are installing a Product which is contained in a package (msi file).  Every product consists of one or more features and every feature contains zero or more components.  Components can be shared between features in…

7

From MSI to WiX, Part 19 – The Art of Custom Action, Part 1

The main page for the series is here.   Code for this topic is attached.   Introduction Today we will start exploring custom actions, how to write them, what makes custom action good custom action and everything else related to custom actions. Let’s start with very simple sample.  We have an application which creates a new…

6