Carlo
Carlo

Reputation: 97

How to merge .reg file using VB.net

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().

Upvotes: 0

Views: 1336

Answers (1)

Serge Morel
Serge Morel

Reputation: 156

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.

Upvotes: 3

Related Questions