
Due to many reasons — such as a bad install –, you might need to completely uninstall QTP and reinstall it. Here are the steps to follow for a clean uninstall of Quick Test Professional.
Steps to Perform a Clean Uninstall of QTP
-
First if you currently have a QTP seat license – you will need to back up your QTP’s LSERVRC file. The LSERVRC file contains the license codes that have been installed. Whenever a new license is registered to a machine, the license code is automatically added to this file. This file is usually in the ‘Program FilesHPQuickTest Professionalbin’ folder. If not go to start/run and type %LSERVRC% in the open textbox:

- Open the file in notepad. To find the files directory – in notepad – click File>Save As and in ‘Save As’ dialog click the ‘Save in’ drop down. This will show you the file’s path. Mine was in “D:Documents and SettingsAll UsersApplication DataHPFunctional testingLicense“. Save the file to your desktop. If you are using a concurrent license you can skip this step.
- Navigate to control panel>add remove programs in XP or control panel>programs>uninstall a program in windows 7
- Find HP QuickTest Professional and in XP ‘Remove’ and in Win7 ‘Uninstall’
- If you are using QTP with QC you want to also remove the ‘HP QuickTest Add-in for ALM-QC’
- Once QTP is uninstalled — delete any QTP directory still on your system, Usually the QTP directory is under Program FilesHP. Delete the ‘QuickTest Professional’ folder and the ‘QuickTest Add-in For ALM-QC’ if it exists. Caution: If you are saving QTP test locally, in this directory, make sure to backup the folder before deleting the QTP directory.
- Next remove all the QTP references in the registry. Go to start>run and type in regedit.
- Find the following keys in the registry and delete them:
- HKEY_CURRENT_USERSoftwareMercury InteractiveQuickTest Professional
- HKEY_LOCAL_MACHINESOFTWAREMercury InteractiveQuickTest Professional
The above steps are usually all you need to do but there are a few more steps you might want to check just to be safe
- Look under your Windowssystem 32 folder and make sure that the BHOManager.dll does not exist. If it does delete or rename it
-
Look under your Windowsassembly folder and look for the following files. If they exist delete them:
• 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)
-
Reboot your machine
Joe Colantonio is the founder of TestGuild, an industry-leading platform for automation testing and software testing tools. With over 25 years of hands-on experience, he has worked with top enterprise companies, helped develop early test automation tools and frameworks, and runs the largest online automation testing conference, Automation Guild.
Joe is also the author of Automation Awesomeness: 260 Actionable Affirmations To Improve Your QA & Automation Testing Skills and the host of the TestGuild podcast, which he has released weekly since 2014, making it the longest-running podcast dedicated to automation testing. Over the years, he has interviewed top thought leaders in DevOps, AI-driven test automation, and software quality, shaping the conversation in the industry.
With a reach of over 400,000 across his YouTube channel, LinkedIn, email list, and other social channels, Joe’s insights impact thousands of testers and engineers worldwide.
He has worked with some of the top companies in software testing and automation, including Tricentis, Keysight, Applitools, and BrowserStack, as sponsors and partners, helping them connect with the right audience in the automation testing space.
Follow him on LinkedIn or check out more at TestGuild.com.
Related Posts
Bottom Line: Kobiton is the first real device testing platform I’ve seen that makes AI-powered mobile testing feel like it […]
Look, most of the AI testing tools I cover on the TestGuild Automation Podcast share two things in common: they’re […]
At least one in five people has some kind of impairment, so it’s important to have them in mind when […]
Last Updated: April 18, 2026 By Joe Colantonio — 25+ years in testing, 500+ podcast interviews with tool creators Full […]



