mirror of
https://github.com/tnodir/fort
synced 2024-11-15 03:36:07 +00:00
Installer: Rename "/AUTORUN" argument to "/LAUNCH"
This commit is contained in:
parent
d3cb7ca4d3
commit
0c5c73859e
@ -97,7 +97,7 @@ Filename: "sc.exe"; Parameters: "start {#APP_SVC_NAME}"; Description: "Start ser
|
|||||||
Flags: nowait; Tasks: service
|
Flags: nowait; Tasks: service
|
||||||
|
|
||||||
Filename: "{#APP_EXE}"; Parameters: "--lang {code:LanguageName}"; \
|
Filename: "{#APP_EXE}"; Parameters: "--lang {code:LanguageName}"; \
|
||||||
Description: {cm:LaunchProgram,{#APP_NAME}}; Flags: nowait postinstall; Check: IsAutoRun
|
Description: {cm:LaunchProgram,{#APP_NAME}}; Flags: nowait postinstall; Check: ShouldLaunch
|
||||||
|
|
||||||
[UninstallRun]
|
[UninstallRun]
|
||||||
Filename: "{#APP_EXE}"; Parameters: "-u"; RunOnceId: "Uninstall"
|
Filename: "{#APP_EXE}"; Parameters: "-u"; RunOnceId: "Uninstall"
|
||||||
@ -138,9 +138,9 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function IsAutoRun: Boolean;
|
function ShouldLaunch: Boolean;
|
||||||
begin
|
begin
|
||||||
Result := ParamExists('/AUTORUN') or not (ParamExists('/SILENT') or ParamExists('/VERYSILENT'));
|
Result := ParamExists('/LAUNCH') or not (ParamExists('/SILENT') or ParamExists('/VERYSILENT'));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
#if CHECK_WIN10 == "Y"
|
#if CHECK_WIN10 == "Y"
|
||||||
|
@ -1 +1 @@
|
|||||||
@for %%f in (FortFirewall-*.exe) do @call .\%%f /SILENT /AUTORUN
|
@for %%f in (FortFirewall-*.exe) do @call .\%%f /SILENT /LAUNCH
|
||||||
|
@ -128,7 +128,7 @@ bool AutoUpdateManager::runInstaller()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!settings->hasService()) {
|
if (!settings->hasService()) {
|
||||||
args << "/AUTORUN";
|
args << "/LAUNCH";
|
||||||
} else {
|
} else {
|
||||||
emit restartClients();
|
emit restartClients();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user