我需要在system32 \ drivers中安装驱动程序,但是如果我使用来自c#的rundll32的默认安装,则驱动程序将安装到syswow64中。那是我的代码:
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();
如何像64位进程一样运行此过程?