Skip to content

Commit 4217fe8

Browse files
committed
fix(nsis): undefined vars when customCheckAppRunning is defined
1 parent 44b2899 commit 4217fe8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/three-pets-sort.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"app-builder-lib": patch
3+
---
4+
5+
fix(nsis): undefined vars when customCheckAppRunning is defined

packages/app-builder-lib/templates/nsis/include/allowOnlyOneInstallerInstance.nsh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@
3030
!macroend
3131

3232
!macro CHECK_APP_RUNNING
33-
Var /GLOBAL CmdPath
34-
Var /GLOBAL FindPath
35-
Var /GLOBAL PowerShellPath
3633
!ifmacrodef customCheckAppRunning
3734
!insertmacro customCheckAppRunning
3835
!else
36+
Var /GLOBAL CmdPath
37+
Var /GLOBAL FindPath
38+
Var /GLOBAL PowerShellPath
3939
StrCpy $CmdPath "$SYSDIR\cmd.exe"
4040
StrCpy $FindPath "$SYSDIR\find.exe"
4141
StrCpy $PowerShellPath "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe"

0 commit comments

Comments
 (0)