I need install driver into system32\drivers, but if i'm using default install from rundll32 from c#, driver is installing into syswow64. That is my code:
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Verb = "RunAs";
startInfo.FileName = "cmd";
startInfo.Arguments = @"/C rundll32.exe SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 " + file;
var process = Process.Start(startInfo);
process.WaitForExit();
How can i run this process like 64bit process?