We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37c2615 commit 45a0f82Copy full SHA for 45a0f82
.changeset/olive-planets-grin.md
@@ -0,0 +1,5 @@
1
+---
2
+"app-builder-lib": minor
3
4
+
5
+feat(nsis): add ShutdownBlockReasonCreate for blocking Windowns Shutdown alert/prompt
packages/app-builder-lib/templates/nsis/installSection.nsh
@@ -26,6 +26,9 @@ StrCpy $appExe "$INSTDIR\${APP_EXECUTABLE_FILENAME}"
26
FindWindow $0 "#32770" "" $hwndparent $0
27
GetDlgItem $0 $0 1000
28
SendMessage $0 ${WM_SETTEXT} 0 "STR:$(installing)"
29
30
+ StrCpy $1 $hwndparent
31
+ System::Call 'user32::ShutdownBlockReasonCreate(${SYSTYPE_PTR}r1, w "$(installing)")'
32
${endif}
33
!insertmacro CHECK_APP_RUNNING
34
!else
@@ -104,4 +107,4 @@ ${endIf}
104
107
${andIf} ${Silent}
105
108
!insertmacro doStartApp
106
109
${endIf}
-!endif
110
+!endif
0 commit comments