jdawar2593
Posts: 7
Joined: Mon Feb 18, 2019 4:32 pm

The upgrade patch cannot be installed by the Windows Installer service error

Hello,

I am creating an MSI along with 2 Patches (hotfixes).

My base MSI and Patch 1 work perfectly fine, but when I try to run the MSP for Patch 2, it gives me an error that says
"The upgrade patch cannot be installed by the Windows Installer service because the program to be upgraded may be missing, or the upgrade patch may update a different version of the program. Verify the program to be upgraded exists on your computer and that you have the correct upgrade patch."


I have verified that the program to be upgraded is in fact already installed on my machine, the Product Codes are the same, and the two MSIs that were compared for the MSP have the same names.

I'm not sure what else to check or what the problem is. Please advise on this issue. Thanks in advance!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: The upgrade patch cannot be installed by the Windows Installer service error

Hello and welcome to our forums,

Following up to your email reply. I cannot say exactly what caused the related error, but if you face again this issue then please make sure you fulfill all patch creation rules.

In the meantime I am glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdawar2593
Posts: 7
Joined: Mon Feb 18, 2019 4:32 pm

Re: The upgrade patch cannot be installed by the Windows Installer service error

Hi Daniel,

I discovered what was the root of this error. It comes from the "images" folder that gets generated from the Patch project (Build -> Administrative Install).

I currently have all my projects together in one location. Now, in order to build my Patches to avoid getting the "upgrade patch cannot be installed" error, I create the Patch 1 with a Family Structure of "Build" (the upgraded) -> "Build_1" (the target). (The MSI's being compared are named "Build.msi".)
When the MSP is done being created, I notice that there is an "images" folder located right next to the project which gets updated with a Build and Build_1 folder.

When I create my Patch 2, I create the Family Structure in a similar way. However, I get the "upgrade patch cannot be installed" error when I try to run the Patch 2 MSP, UNLESS I clear the contents of the images folder first, AND THEN build the Patch 2 MSP. Then, when I run the MSP, it works fine.

It seems this is the only way I've figured out how to work around the issue...but this is quite a nuisance and doesn't seem necessary.

Is there an easier way to keep building and creating my Patch MSP files without having to delete everything in the "images" folder everytime? Do I even need the "images" folder? Should I be putting my projects in separate locations? I would like to keep them in the same location.

Your guidance would be greatly appreciated. Thank you in advance!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: The upgrade patch cannot be installed by the Windows Installer service error

Hello,

This could be indeed an issue with our image caching mechanism. When you run a build operation we try to reuse the existing image cache if we did not notify any change in the image content. So there could be an issue with our cache check mechanism.

However, to avoid this kind of issue I strongly advise you to use the [Rebuild] button when you want to build your patch setup package. This way the existing cached images won't be used at all and they will be recreated from scratch every time you rebuild the patch setup project.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdawar2593
Posts: 7
Joined: Mon Feb 18, 2019 4:32 pm

Re: The upgrade patch cannot be installed by the Windows Installer service error

Thank you, Daniel.

I'll make sure to use the [Rebuild] button as I go through creating my patch projects.

Appreciate the advise!

Jackie
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: The upgrade patch cannot be installed by the Windows Installer service error

You are always welcome, Jackie.

Glad we could help.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”