Hi Ampiaw,
According to the error message, this problem mostly caused by the permissions of your current Windows User account. Please try run your Visual Studio as administrator through right-click the Visual Studio 2013 icon -> Choose "Run as Administrator".
Then please make sure you have close all third part software when running Visual Studio. For example, antivirus.
In addition, please try enable you full registry access with PsExec tools using following command. Please get the PsExec tools from following link.
https://technet.microsoft.com/en-us/sysinternals/bb897553.aspx?f=255&MSPPError=-2147217396
psexec -i -d -s c:\windows\regedit.exe
Best Regards,
Weiwei