mirror of
https://github.com/tnodir/fort
synced 2024-11-15 01:15:29 +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
|
||||
|
||||
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]
|
||||
Filename: "{#APP_EXE}"; Parameters: "-u"; RunOnceId: "Uninstall"
|
||||
@ -138,9 +138,9 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function IsAutoRun: Boolean;
|
||||
function ShouldLaunch: Boolean;
|
||||
begin
|
||||
Result := ParamExists('/AUTORUN') or not (ParamExists('/SILENT') or ParamExists('/VERYSILENT'));
|
||||
Result := ParamExists('/LAUNCH') or not (ParamExists('/SILENT') or ParamExists('/VERYSILENT'));
|
||||
end;
|
||||
|
||||
#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()) {
|
||||
args << "/AUTORUN";
|
||||
args << "/LAUNCH";
|
||||
} else {
|
||||
emit restartClients();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user