GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop): silent Windows installs restart T3 Code when they had t… · Ryoku-dev/hyakki@6b0ea3f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/desktop/resources
    • installer.nsh
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/desktop/resources/installer.nsh‎

Copy file name to clipboardExpand all lines: apps/desktop/resources/installer.nsh
+12Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,13 @@
55
!else
66
${StrRep}
77
!define T3StrRep '${StrRep}'
8+
Var t3AppWasRunning
89
!endif
910

1011
!macro customAppRunningMessages
12+
!ifndef BUILD_UNINSTALLER
13+
StrCpy $t3AppWasRunning 1
14+
!endif
1115
Push $0
1216
Push $1
1317
${If} $IsPowerShellAvailable == 0
@@ -39,4 +43,12 @@
3943
WinShell::SetLnkAUMI "$newStartMenuLink" "${APP_ID}"
4044
${EndIf}
4145
!endif
46+
47+
# The template relaunches after a silent install only with --force-run, which WinGet does not pass.
48+
${If} ${Silent}
49+
${AndIfNot} ${isForceRun}
50+
${AndIf} $t3AppWasRunning == 1
51+
HideWindow
52+
${StdUtils.ExecShellAsUser} $0 "$launchLink" "open" ""
53+
${EndIf}
4254
!macroend

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.