Trying to do the simple task of writing to the registry to make a C# application run at startup.
Using the basic Win32.RegistryKey
setup but for some reason it keeps adding my keys into the /SOFTWARE/WOW6432/Microsoft/Windows..
etc directory instead of plain ol /SOFTWARE/Microsoft/Windows..
Tried reading up on it a bit but there didn't seem to be a simple answer to this question:
How to I specifically write a key to the /SOFTWARE/Microsoft/Windows
Registry Key instead of it writing to WOW6432
? I've checked to make sure my Visual C# Express solution file had the platform listed as x86... so it's compiling correctly... I just don't want that wow6432
directory.
Thanks for any advice!
Edit:
I'm now using the following and still no success:
Microsoft.Win32.RegistryKey localKey32 = Microsoft.Win32.RegistryKey.OpenBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, Microsoft.Win32.RegistryView.Registry64);
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…