From here on, QuickTest will be
used to represent QuickTest Professional (QTP).
Note: Previous versions of QuickTest
should be uninstalled before (re)installing QuickTest.
Here are the steps for a clean uninstall/reinstall of
QuickTest:
-
Backup the LSERVRC file. Such
contains licensing information. If you do not save it, you will need to
reenter the license code.
For additional
information on the lservrc file, including its
location, refer to What is the lservrc file
Note: If you are using a concurrent
license, step #1 isn't required since such file should be located on the
license server machine. However, if file is found on client machine, it
is recommended to back it up.
-
Backup your test scripts if such reside under
QTP's installation folder (Default: <QTP Install folder>\Tests)
-
For QuickTest 8.2 and higher, uninstall any
non-core add-ins from Add/Remove Programs under Control Panel (Start
menu -> Control Panel ->Add Remove Programs)
Notes:
• Add-in versions higher than 6.5 and below or equal to
9.2 have separate uninstall process, meaning their own particular items
within the Add/Remove Programs to allow their removal
• Add-in versions for QTP 6.5 and below, 9.5 and higher come
bundled with core, so uninstall such to remove add-ins
• Extensibility Add-ins such Web, .NET and Java (Delphi
Add-in ins't considered of this type) are separate items under
Add/Remove Program listing
• Quality Center
Add-in is a separate add-in that requires a particular
removal/uninstallation. For more information, see How to perform a clean uninstall of QuickTest Add-in For
Quality Center
• IMPORTANT: If the necessary
steps to first remove add-ins (for those which aren't considered
bundled with QTP core) aren't performed, there may be repercussions such
as preventing installation of newer versions of QTP and/or other
add-ins such as the Quality Center one.
-
Uninstall QuickTest (Control Panel -> Add
Remove Programs).
-
Go to the install directory of QuickTest. The
default directory is "C:\Program Files\Mercury Interactive\QuickTest
Professional/" or "C:\Program Files\HP\QuickTest Professional"
-
Delete all the directories under this directory
except for the "Tests" folder since it might contain test scripts. If
you backed up the test scripts to a different directory in step 2, you
can delete the Tests folder also
Note: The following steps relating to HKEY_CURRENT_USER
must be performed for each user on a Citrix or Terminal Services
evironment, and for any user that has run QuickTest Professional.)
-
Open the registry editor (Start -> Run ->
regedit)
-
Navigate to the following registry keys and
remove them:
HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest
Professional
-
Delete the "QuickTest Professional" folder
(including all the keys and values under it.)
-
Navigate to the following registry key:
HKEY_LOCAL_MACHINE\SOFTWARE\Mercury
Interactive\QuickTest Professional
-
The HKEY_LOCAL_MACHINE\SOFTWARE\Mercury
Interactive\QuickTest Professional key contains license
information. HP Support recommends backing up the key first (right-click
on the "QuickTest Professional" key and select Export).
-
Delete the "QuickTest Professional" folder
(including all the keys and values under it.)
-
-
Run the utility to remove any QuickTest entries
that are listed, such as entries with names similar to "QuickTest
Professional [X.X.X.X]"
-
Delete or rename the BHOManager.dll
in C:\Windows\system32 folder
-
Delete the following assemblies from the C:\Windows\assembly\
directory:
•
Mercury.QTP.Agent
• Mercury.QTP.CustomServer
•
Mercury.QTP.WpfAgent
• policy.6.5.Mercury.QTP.CustomServer
•
policy.8.0.Mercury.QTP.Agent
• policy.8.0.MngUtils
•
policy.X.X.Mercury.QTP.WpfAgent ("X" could 9.5 or 10.0. This item may
appear repeated, just different version, so delete them all)
-
If the Firefox browser is installed go to
Tools->Add-ons and manually remove the QuickTest Professional PlugIn
-
For QTP 9.5 and above, delete the associated
application data "QuickTest Professional" directory. (Start -> Run
-> type "%appdata%\HP" -> Ok)
-
Reboot the machine (recommended)
-
Install or reinstall QuickTest Professional.
-
If step #1 is applicable to machine in question,
copy back the lservrc file into the correct directory.
Note: As long as the locking code (which is machine
specific) did not change, you should be able to use QuickTest
Professionalional without having to re-enter the license code.