While replaying a Citrix script, the replay fails due to the error
"Error: The Citrix Registry patch failed to installed. Reason:Access is denied.
You need to install the following registry patch manually:<Loadrunner installation folder>\dat\Enable_Citrix_API.reg. Double click the file to install the registry patch."
The issue is due to no entry was made for VirtualChannels and AllowSimulationAPI in Wow6432Node\citrix Node of registry.
By default, registry entries for 32 bit clients on 64-bit OS will be done in Wow6432Node.
Follow the steps to fix the issue:
1. Right click on the Enable_Citrix_API.reg located under <LR Install Dir>/dat folder and select Edit.
2. Modify the Entries HKEY_LOCAL_MACHINE\SOFTWARE\Citrix to HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix which forces the entries for 32 bit clients on 64-bit OS.
Example:
Before Modifitication:
[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Third Party\CustomVC]
"VirtualChannels"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\ICA Client\CCM]
"AllowSimulationAPI"=dword:00000001
After Modifitcation:
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix \ICA Client\Engine\Lockdown Profiles\All Regions\Lockdown\Virtual Channels\Third Party\CustomVC]
"VirtualChannels"=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\ICA Client\CCM]
"AllowSimulationAPI"=dword:00000001