I while ago I had the error “error accessing the registry” while importing.
In my case I had escaped too many back-slashes. Not just the file names in the values, also the registry key names.
So I had key names like this:
[HKEY_CURRENT_USER\\Software]
That fails, but the error won’t tell you why. The key needs to be this:
[HKEY_CURRENT_USER\Software]
BTW: you do not need regedit.exe
to import as reg.exe
can do the same: [WayBack] How to add a .REG file to your Registry silently – Scott Hanselman
–jeroen