I have a 64 bit setup project with a 64 bit windows service exe and dlls. In my installer class i create registry keys with this code:
using (typeKey = typeKey.CreateSubKey(@"SOFTWARE\Folder\Folder\Folder"))
{
typeKey.SetValue("Type", 0);
typeKey.Close();
}
But it keeps creating registry keys at SOFTWARE\WOW6432NODE\SOFTWARE\FOLDER\FOLDER\FOLDER.
Btw setup copies exe and dlls under 64bit program files folder. No problem in copying folders to 64 bit folder.
Any idea?
You are using .NET 4, use the new RegistryKey.OpenBaseKey() method and pass RegistryView.Registry64