PDA

View Full Version : Hkey_local_machine


erwin degraeve
06-17-2009, 05:00 AM
I have a problem on a 64 bits machine when i want to create a key in HKEY_LOCAL_MACHINE\SOFTWARE\MyApplication\Client with

Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\MyApplication\\Client", "Multistart", "1", REG_SZ);

the setup create the keys in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Digicom\Cl ient

how can i solve this problem?

Ulrich
06-17-2009, 09:58 AM
I have a problem on a 64 bits machine when i want to create a key in HKEY_LOCAL_MACHINE\SOFTWARE\MyApplication\Client with

Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\MyApplication\\Client", "Multistart", "1", REG_SZ);

the setup create the keys in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Digicom\Cl ient

how can i solve this problem?

Depending on the operating system, you may not be able to work around this. On certain platforms, only 64-bit applications are able to write in HKEY_LOCAL_MACHINE\SOFTWARE\Digicom\Client, while 32-bit applications are subject to registry redirection.

Registry Redirector on MSDN: http://msdn.microsoft.com/en-us/library/aa384232(VS.85).aspx
Registry Reflection on MSDN: http://msdn.microsoft.com/en-us/library/aa384235(VS.85).aspx

Ulrich

jassing
06-17-2009, 11:20 AM
I have a problem on a 64 bits machine when i want to create a key in HKEY_LOCAL_MACHINE\SOFTWARE\MyApplication\Client with

Registry.SetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\MyApplication\\Client", "Multistart", "1", REG_SZ);

the setup create the keys in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Digicom\Cl ient

how can i solve this problem?

see this post (http://www.indigorose.com/forums/showpost.php?p=108061&postcount=21)...