While looking for a way to implement your method, I came across a patch for the game on torrents that fixes the registry error.
I'm not sure if it's allowed to post links to such resources here, so if anyone has a similar problem, please write to me in a private message.