写在下面的函数里

procedure CurStepChanged(CurStep: TSetupStep);

 

 

if_need_vc_x64 := NeedInstallVC8SP1_x64();
 if (CurStep=ssInstall) and (if_need_vc_x64) then begin
  ExtractTemporaryFile('vc_redist.x64.exe');
  Exec(ExpandConstant('{tmp}/vc_redist.x64.exe'), '/qb', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
  if not (ResultCode = 0) 
  then begin
    MsgBox('VC++ 2015 Redistributable which is mandatory!',mbCriticalError, MB_OK)      
  end;

 end;

 

相关文章:

  • 2021-05-03
  • 2021-06-24
  • 2021-06-06
  • 2021-11-12
猜你喜欢
  • 2022-12-23
  • 2021-07-16
  • 2021-09-16
  • 2021-11-07
  • 2021-06-21
  • 2021-11-21
相关资源
相似解决方案