UFT/QTP – How to Fix Upgrade Patch Error when Installing a Patch or Hotfix

PerfectoTopAd

Error when trying to install a hotfix for QTP or UFT

A few people have emailed me and left comments in some of my post asking how to resolve the following error when trying to install a new patch or hotfix on their system:

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 that the program to be upgraded exist on your computer and that you have the correct upgrade patch

Possible Reason for The upgrade patch cannot be installed error

Here are a few of the possible reason why you might be getting this error:

  • Your patch/hotfix download is corrupted
  • Your UFT/QTP install is corrupted
  • You're missing a pre-requisite
  • You're trying to use a patch that is not intended for the UFT/QTP version you have installed

Things to try to resolve the error message

The first step is to perform a repair on your UFT/QTP installation. This is actually one of the first things I try for any funky QTP/UFT issues I might be getting.

Steps to Clean up Registry Settings and Folders:

1. Type regedit in your Start>Run menu


2. Delete the following registry keys if they exist:

HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional

HKEY_CURRENT_USER\Software\Mercury Interactive\Browser Helper Objects\AgentsKeys

HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional

On 64-bit OS:

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mercury Interactive\QuickTest Professional

3. Type %appdata%\HP in your Start>Run menu. Delete the following folders if they exist:

  • API Testing
  •  QuickTest Professional
  • Service Test


How to Run a Repair option for the UFT/QTP

To perform a repair on your current UFT/QTP install:

1. Navigate to Start>Control Panel>Programs>Uninstall a program.

2. Click on UFT or QTP and click on the Repair button


3. Once the repair is finished re-download the path. Tip: make sure to use IE when downloading HP Patches I've seen issues when using Chrome or Firefox browsers for this.

4. Double check the pre-requisite before installing the patch. Also on the first screen for patches and hot-fixes make sure to read installation instructions especially the System Requirements, Before Install and Description and Technical details to verify your current setup meets all the patches requirements



The above steps hopefully should resolve your QTP UFT Patch install error

Click here to add a comment

Leave a comment: