【发布时间】:2013-01-26 23:22:27
【问题描述】:
请,我尝试运行一个 .exe 文件,该文件在 cmd 控制台中以以下方式运行:
nameFile.exe -inf fileDriver.inf install
在 Inno 设置中,我有以下内容:
var
command: Srtring;
Begin
command := 'nameFile.exe -inf fileDriver.inf install';
command := AddQuotes(command);
Exec(command, '', 'C:\pathOfFileName', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
S:= SysErrorMessage(ResultCode);
MsgBox(S, mbInformation, MB_OK);
end;
提示参数无效,如何运行带参数的exe文件?
【问题讨论】:
标签: parameters executable exe inno-setup