My registry keys were mixed up!

Switched x64 / x32 $Reg and $Reg64 variables around, they were mixed up.