Skip to content

Commit 1784017

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

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)