0
点赞
收藏
分享

微信扫一扫

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

guanguans 2023-04-17 阅读 72

[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 条评论