0
votes

I'm trying to add registry key :

My.Computer.Registry.LocalMachine.CreateSubKey("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\TESTKEY")

but key is created under :

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\TESTKEY

same thing happens when I try to merge .reg file using process.start().

1

1 Answers

2
votes

This means you have a 64-bit computer but you're application is running as 32-bit.

64-bit computers will save any key from a 32-bit application to that subkey.

Run your application as 64-bit & a correcy subkey will be made.