Install downloaded updates while in tray

This commit is contained in:
Fedor Indutny 2023-12-12 03:15:36 +01:00 committed by GitHub
parent c4521a063c
commit 12a2ec8dd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 87 additions and 24 deletions

View file

@ -45,3 +45,17 @@ ManifestDPIAware true
end_semver_check:
!macroend
!macro customInstall
${If} ${Silent}
${AndIf} ${isUpdated}
# Copied from app-builder-lib templates/nsis/common.nsh:
# "otherwise app window will be in background"
HideWindow
# Signal modification: '--start-in-tray' added
${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" \
"--updated --start-in-tray"
${EndIf}
!macroend