[Inno Setup] Exec ShellExec 等待与否 参数

 

TExecWait = (ewNoWait, ewWaitUntilTerminated, ewWaitUntilIdle)

 

var
  ErrorCode: Integer;
begin
  if not ShellExec('', ExpandConstant('{app}\filename.rtf'),
     '', '', SW_SHOW, ewNoWait, ErrorCode) then
  begin
    // handle failure if necessary
  end;
end;

 

posted on 2021-01-25 15:39  liujx2019  阅读(880)  评论(0编辑  收藏  举报

导航