|
@@ -61,7 +61,7 @@ chinese.SetupWindowTitle=
|
|
|
|
|
|
[Files]
|
|
|
//onlyifdoesntexist 仅在文件不存在的时候 安装
|
|
|
-Source: extra\FlyinsonoLabServer\*; DestDir: "{app}\Server"; Flags: recursesubdirs createallsubdirs ignoreversion;
|
|
|
+Source: extra\FlyinsonoLabServer\*; DestDir: "C:\FlyinsonoLabServer"; Flags: recursesubdirs createallsubdirs ignoreversion;
|
|
|
Source: extra\VinnoApp\*; DestDir: "C:\VinnoApp"; Flags: recursesubdirs createallsubdirs ignoreversion onlyifdoesntexist;
|
|
|
Source: extra\MATLAB_Runtime_R2020b_Update_8_win64\*; DestDir: "{app}\MATLAB_Runtime_R2020b_Update_8_win64"; Flags: recursesubdirs createallsubdirs ignoreversion onlyifdoesntexist;
|
|
|
Source: resource\*; DestDir: {tmp}; Flags: dontcopy solidbreak ; Attribs: hidden system
|
|
@@ -181,9 +181,7 @@ var
|
|
|
BatchFilePath: String;
|
|
|
ResultCode: Integer;
|
|
|
begin
|
|
|
- // 将'your-batch-file.bat'替换为你的批处理文件的实际名称
|
|
|
- BatchFilePath := ExpandConstant('{app}\Server\close.bat');
|
|
|
-
|
|
|
+ BatchFilePath := ExpandConstant('C:\FlyinsonoLabServer\close.bat');
|
|
|
// 检查批处理文件是否存在
|
|
|
if FileExists(BatchFilePath) then
|
|
|
begin
|
|
@@ -194,7 +192,6 @@ begin
|
|
|
MsgBox('执行批处理文件时出错。错误码: ' + IntToStr(ResultCode), mbError, MB_OK);
|
|
|
end;
|
|
|
end;
|
|
|
- // 如果文件不存在,则什么也不做
|
|
|
end;
|
|
|
|
|
|
procedure TaskKill(FileName: String);
|
|
@@ -210,6 +207,7 @@ TaskKill('FlyinsonoDaemon.exe');
|
|
|
TaskKill('loader.exe');
|
|
|
TaskKill('Xilium.CefGlue.BrowserProcess.exe');
|
|
|
TaskKill('fis.exe');
|
|
|
+TaskKill('nginx.exe');
|
|
|
ExecuteBatchIfPresent();
|
|
|
end;
|
|
|
|