Skip to content

Commit 3735881

Browse files
authored
fix(nsis): undefined vars when customCheckAppRunning is defined (#9245)
1 parent b778686 commit 3735881

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/old-spies-lick.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
@@ -33,12 +33,12 @@
3333
Var /GLOBAL CmdPath
3434
Var /GLOBAL FindPath
3535
Var /GLOBAL PowerShellPath
36+
StrCpy $CmdPath "$SYSDIR\cmd.exe"
37+
StrCpy $FindPath "$SYSDIR\find.exe"
38+
StrCpy $PowerShellPath "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe"
3639
!ifmacrodef customCheckAppRunning
3740
!insertmacro customCheckAppRunning
3841
!else
39-
StrCpy $CmdPath "$SYSDIR\cmd.exe"
40-
StrCpy $FindPath "$SYSDIR\find.exe"
41-
StrCpy $PowerShellPath "$SYSDIR\WindowsPowerShell\v1.0\powershell.exe"
4242
!insertmacro IS_POWERSHELL_AVAILABLE
4343
!insertmacro _CHECK_APP_RUNNING
4444
!endif

0 commit comments

Comments
 (0)