If you have rights to do so, you can uninstall a patch from a command line by executing the following command:
`MsiExec.exe /I {QTP PRODUCT ID} MSIPATCHREMOVE={PATCH UPDATE ID} /qb`
Example:
`MsiExec.exe /I {3ECD871E-06F1-4AE6-8D62-3D6D3E016C8B} MSIPATCHREMOVE={1D637D7A-8B54-4FCD-A385-4E2330BA23CB} /qb`
You have to replace the QTP PRODUCT ID with the appropriate product ID for the QTP version you are using.
QTP 11 ID: 3ECD871E-06F1-4AE6-8D62-3D6D3E016C8B
QTP 10 ID: 4CC41272-6AA9-4946-ABA6-61C05A40DE80
To find the PATCH UPDATE ID, go to the Control Panel, Programs and Features.
Then click on Uninstall a program. Find the appropriate patch.
Then, right click on a column header, Click More and ensure that Update ID is checked.
An Update ID column will appear. Note the Update ID for the patch you are trying to uninstall.
Now replace the QTP PRODUCT ID and PATCH UPDATE ID and execute the command.
Example:
MsiExec.exe /I {3ECD871E-06F1-4AE6-8D62-3D6D3E016C8B} MSIPATCHREMOVE={1D637D7A-8B54-4FCD-A385-4E2330BA23CB} /qb
Then execute the following (including quotes):
`''C:Program FilesHPQuickTest ProfessionalbinQTPInstallReqs.exe'' /silent`