Just downloaded the game from Steam using latest client version on Windows 10 (Preview 18922, not sure that created the issue). Anyways, for me the key is under the 64bit registry view.
I fixed it by iterating over both 32 and 64bit, in that order. I also did it for either version (Steam, CD version), whereas I'm pretty sure, CD version might be 32bit only. Feel free to fix it accordingly ;-)
I also fixed a potential NullPointer in the CD version reg reading, if the key does not exists.
Just downloaded the game from Steam using latest client version on Windows 10 (Preview 18922, not sure that created the issue). Anyways, for me the key is under the 64bit registry view.
I fixed it by iterating over both 32 and 64bit, in that order. I also did it for either version (Steam, CD version), whereas I'm pretty sure, CD version might be 32bit only. Feel free to fix it accordingly ;-)
I also fixed a potential NullPointer in the CD version reg reading, if the key does not exists.