inno setup 提前安装外围程序,比如.net framework

guanguans

关注

阅读 72

2023-04-17

[Files]
 

  Source: ..\framework.exe; DestDir:{tmp}; Flags: dontcopy
 


 
 
   [code]
 
 
 
 
  
 
 

   function InitializeSetup(): Boolean;
 
 
 

   var Path:string;
 
 
 

           ResultCode: Integer;
 
 
 

   begin
 
 
 

     ExtractTemporaryFile('framework.exe');
 
 
 

     Result := Exec(ExpandConstant('{tmp}\framework.exe'), '/silent', '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
 
 end;

精彩评论(0)

0 0 举报