Cihan Elibol
Cihan Elibol

Reputation: 11

Registry createSubKey under LocalMachine

When I try to apply these codes like below, It doesnt get an success result when I check the subdirectory SOFTWARE\Safenet\PTKC\WLD. Is there anybody what is the reason of this issue.

RegistryKey Location = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Safenet\PTKC", true);
RegistryKey newKey = Location.CreateSubKey("WLD", true);
newKey.SetValue("data", "value");
Location.Close();

Upvotes: 1

Views: 218

Answers (1)

atkntuncer
atkntuncer

Reputation: 36

It was probably created in C:\Windows\SysWOW64\regedit.exe. Try building your application with only x64.

Upvotes: 2

Related Questions