The following article uses options that are available starting with the Enterprise edition and project type.
This tutorial will guide you step by step into the creation of a simple Windows Installer patch project from scratch and building it in order to obtain an MSP package. It is addressed to those who have previous experience in using the Advanced Installer application to create MSI packages but have no experience in creating patches.
Let's start from the project that we created in the Simple Installation tutorial. After the "Build and install" step, we have created our 1.0.0 MSI. Save it in a safe place.
Go to the "Product Details" page and increase the version in the "Product Version" field to 1.0.1. When moving to another page you will be prompted, thus you should choose Keep existing as the update method.
After modifying and building the project, we will have two MSI packages (one for the 1.0.0 version and one for the 1.0.1 version) and we want to create a patch that will upgrade an installed 1.0.0 "Long Story" to 1.0.1.
If Advanced Installer is not currently running, start it by double-clicking on the desktop icon or by selecting it from the “Start > All Programs > Advanced Installer” menu. When the application starts, you will be presented a dialog where you can choose the type of the project you want to create.
Select the “Updates” > “Patch” type and press thebutton. The new project has been created and from now on you will edit it.
Save the project by using thetoolbar button and choose the file name and the destination folder. This will also be the folder where your patch package (MSP) will be created. Give it an appropriate name, "story-patch.aip" for this example.
The most important step in creating an MSP package is creating the Upgraded and Target images.
Switch to the “Images” page by selecting it in the left-side panel.
Click on thetoolbar button, browse to the 1.0.1 version of the "Long Story" product and select the “story.msi” file. A Windows Installer dialog will briefly pop up while the Administrative Image is being extracted.
Click on thetoolbar button, browse to where you have stored the 1.0.0 version of the "Long Story" product and select the “story.msi” file.
Now that you have created the Upgraded and Target images, let's build the MSP patch package.
First you need to make sure that the patch respects the Patch Rules.
Click on thetoolbar button and a “Build Project” dialog will appear showing you the build evolution.
The Windows Installer patches are built using the MsiMsp tool. Read more in External Tools.
Once the build is complete, click on thetoolbar button. The setup wizard will appear.
You must have the version 1.0.0 of the product installed in order to be able to patch it with this MSP.
Congratulations! You have created your first Advanced Installer MSP patch package. By default, the patched “story.txt” file is installed in "C:\Program Files\Story Teller\Long Story". Browse to that folder in Windows Explorer to check.