Consecutive Patches - Advanced Installer Community
rubenpl
Posts: 2
Joined: Mon Jul 03, 2017 8:21 pm

Consecutive Patches

I'm having trouble creating consecutive patches for a product.

I've created a setup (for my product's version 1.8.7.9). Then I create a patch as specified in the tutorial.
The patch to update from version 1.8.7.9 to version 1.8.7.10 is successfully installed (through the Auto Updater feature) and even in Add/Remove Programs I can see the patch installed. If I check the file system, the files are updated.

Next, I need to create a new patch so version 1.8.7.10 can be patched to version 1.8.7.11, what I did was to create a patch between the MSI for version 1.8.7.10 and the MSI for version 1.8.7.11 .
If I try installing it (manually or through auto-updater) I get the error "The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing, or the upgraded patch may update a different version of the program. Verify that the program to be upgraded exists on your computer and that you have the correct upgrade patch"

I already tried using the 1.8.7.9 MSI as target image and the 1.8.7.11 MSI as the upgraded image, but get the same error.
Each time I build the MSI using the command line, I specify the same product code.

How can I get a consecutive path to install?
If I add two target images (one for 1.8.7.9 and 1.8.7.10) I get another error when starting the build: "this patch contains multiple transform sets and is a mixture of QFE, minor and/or major patches."

Should I use a patch sequence?
Should I use the "Patches to Replace" option ?

The patches are around 10 Mb in size (patching around 10 files) instead of the 150 MB of the original MSI.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Consecutive Patches

Hello and welcome to our Forums,
...what I did was to create a patch between the MSI for version 1.8.7.10 and the MSI for version 1.8.7.11 .
If I try installing it (manually or through auto-updater) I get the error "The upgrade patch cannot be installed by the windows installer service because the program to be upgraded may be missing, or the upgraded patch may update a different version of the program.
Please make sure that before trying to install the patch, version 1.8.7.10 is installed on the machine.

Please take a look on my reply from a similar topic : Re: Patch Sequence 2.0 errors

By the way, we don't recommend using 4 digit product versions as the last one is ignored by Windows Installer when comparing versions. Please take a look on the following article : Product Details Tab

If this wasn't helpful, please send us the .AIP Projects (for all versions and the patch) to support at advancedinstaller dot com so we can investigate them.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rubenpl
Posts: 2
Joined: Mon Jul 03, 2017 8:21 pm

Re: Consecutive Patches

Hello.

Thanks for the help, I was able to correctly patch 2 consecutive versions. What did the trick was as instructed:
Make changes on the 3rd part of the version number (in my case 1.8.8 to 1.8.9 ) instead of 1.8.8.9 to 1.8.8.10.
Also I added the two targets to the upgraded image and it worked.
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Consecutive Patches

Hello,

You are welcome. Please let me know if you have any other questions.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”