0
我正在使用WIX安裝程序。在此我有自定義操作來安裝迷你過濾器驅動程序。在自定義操作中,我編寫了代碼來安裝迷你過濾器驅動程序。 inf文件。安裝迷你篩選器驅動程序窗體WIX
"RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 .\Driver.inf"
在命令提示符處,但它並沒有安裝。
任何人都可以告訴我在上述命令中有什麼問題嗎?
或者我需要按照不同的步驟來安裝。
更新:
,當我在管理員模式下使用「CMD」運行相同的命令,然後它會安裝驅動程序。
當我在.NET進程中運行相同的命令,然後失敗。
string FileName = "rundll32.exe";
string Arguments = @"SETUPAPI.DLL, InstallHinfSection DefaultInstall 131 E:\del\FsFilter1.inf";
ProcessStartInfo StartInfo = new ProcessStartInfo(FileName, Arguments);
StartInfo.CreateNoWindow = true;
StartInfo.UseShellExecute = false;
StartInfo.Verb = "runas";
Process process = Process.Start(StartInfo);
process.WaitForExit();
考慮使用WiX Toolset爲此提供的自定義操作。請參閱[驅動程序元素(Difxapp擴展)](http://wixtoolset.org/documentation/manual/v3/xsd/difxapp/driver.html)和本教程(http://kobyk.wordpress.com/2008/ 21分之10/安裝過濾器的驅動程序與 - DIFXAPP - 和 - a-威克斯-V3-MSI /)。 – 2014-09-01 15:03:55