From 13573d43cf2e77681c47dd0b8447e0cd98bb2f6d Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Wed, 11 Feb 2026 12:40:27 -0600 Subject: [PATCH] Better Windows Store installation process Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- build/installer.nsh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build/installer.nsh b/build/installer.nsh index bbb03c61a1..cc15fed933 100644 --- a/build/installer.nsh +++ b/build/installer.nsh @@ -6,6 +6,15 @@ ManifestDPIAware true +# See https://github.com/electron-userland/electron-builder/blob/9c67fd31ce982d11c82aae71263ba1f0055a77cc/packages/app-builder-lib/src/targets/nsis/nsisScriptGenerator.ts#L33 +# See https://nsis.sourceforge.io/LogicLib#FileExists +!macro _isWindowsStore _a _b _t _f + ${StdUtils.TestParameter} $R9 "windows-store" + StrCmp "$R9" "true" `${_t}` `${_f}` +!macroend +!define isWindowsStore `"" isWindowsStore ""` + + !macro preInit Var /Global OLD_SIGNAL_VERSION @@ -57,5 +66,9 @@ ManifestDPIAware true # Signal modification: '--start-in-tray' added ${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" \ "--updated --start-in-tray" + ${ElseIf} ${Silent} + ${AndIf} ${isWindowsStore} + HideWindow + ${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" "" ${EndIf} !macroend