Installer: Rename "/AUTORUN" argument to "/LAUNCH"

This commit is contained in:
Nodir Temirkhodjaev 2024-04-25 14:14:43 +03:00
parent d3cb7ca4d3
commit 0c5c73859e
3 changed files with 5 additions and 5 deletions

View File

@ -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"

View File

@ -1 +1 @@
@for %%f in (FortFirewall-*.exe) do @call .\%%f /SILENT /AUTORUN @for %%f in (FortFirewall-*.exe) do @call .\%%f /SILENT /LAUNCH

View File

@ -128,7 +128,7 @@ bool AutoUpdateManager::runInstaller()
} }
if (!settings->hasService()) { if (!settings->hasService()) {
args << "/AUTORUN"; args << "/LAUNCH";
} else { } else {
emit restartClients(); emit restartClients();
} }