views:

356

answers:

2

My program is trying to create an key on the

HKLM\Software\Microsoft\Shared Tools\MSCONFIG\startupreg\test\

but instead the key is created on the

HKLM\Wow6432node\Software\Microsoft\Shared Tools\MSCONFIG\startupreg\test\

and don't work properly... Why? How can I solve it?

A: 

Turn off registry redirection.

Ben Voigt
how can I do it on Python with _winreg?
Shady
Don't know, don't care, you should have tagged your question "Python". Most likely you'll need to call the Windows API directly, if you didn't feel the programming language was important enough to even mention that I assume you're able to translate any solution we give you into your language.
Ben Voigt
+1  A: 

Registry redirection is on, because you are running a 32-bit program. If you switch to 64-bit, you will not have this redirection.

Timores