Okan Çakmak
Software Testing Professional

How to perform a clean uninstall/reinstall of QuickTest Professional

Friday, 21 May 2010 14:05 by okan.cakmak

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:

  1. 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.

  2. Backup your test scripts if such reside under QTP's installation folder (Default: <QTP Install folder>\Tests)
  3. 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.


  4. Uninstall QuickTest (Control Panel -> Add Remove Programs).
  5. 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"
  6. 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.)

  7. Open the registry editor (Start -> Run -> regedit)
  8. Navigate to the following registry keys and remove them:

    HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional

  9. Delete the "QuickTest Professional" folder (including all the keys and values under it.)
  10. Navigate to the following registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\QuickTest Professional

  11. 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).
  12. Delete the "QuickTest Professional" folder (including all the keys and values under it.)
  13. Download the MSI uninstaller from the Microsoft: http://support.microsoft.com/kb/290301
  14. Run the utility to remove any QuickTest entries that are listed, such as entries with names similar to "QuickTest Professional [X.X.X.X]"

  15. Delete or rename the BHOManager.dll in C:\Windows\system32 folder
  16. 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)

  17. If the Firefox browser is installed go to Tools->Add-ons and manually remove the QuickTest Professional PlugIn
  18. For QTP 9.5 and above, delete the associated application data "QuickTest Professional" directory. (Start -> Run -> type "%appdata%\HP" -> Ok)
  19. Reboot the machine (recommended)
  20. Install or reinstall QuickTest Professional.
  21. 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.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Categories:   QTP
Actions:   E-mail | del.icio.us | Permalink | Comments (0) | Comment RSSRSS comment feed