How to run the BizTalk WCF Service Publishing Wizard on remote BizTalk Server

I have a peculiar development environment where Visual Studio and the BizTalk SDK is on my development machine but the actual BizTalk Server instance is on a remote machine (it is actually a Virtual Machine).

As the  BizTalk WCF Service Publishing Wizard is available only where the BizTalk SDK is installed (the development machine) and as it needs access to the BizTalk hive of the registry which only exists where the BizTalk Server instance is installed; we need to export that hive from the remote BizTalk machine and import it in the registry of the development machine (where the wizard runs).

With that registry hive imported on the development computer, the BizTalk WCF Service Publishing wizard will be able to find the SQL Server on which the Management Database runs and thus find the various application installed. It will hence be able to create the various ports generated by the wizard.

The registry hive is the following: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BizTalk Server\3.0\Administration.
At the time of writing, this was valid from BizTalk 2006 R2 to BizTalk 2010.

BizTalk Administration Registry Hive