Skip to content

Commit c73d47a

Browse files
committed
fixup! feat(nsis): terminate only processes running in installation folder
1 parent 9550457 commit c73d47a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Var IsPowerShellAvailable
6464
!macroend
6565

6666
!macro FIND_PROCESS _PATH _FILENAME _RETURN
67-
${If} $IsPowerShellAvailable == True
67+
${If} $IsPowerShellAvailable == 0
6868
nsExec::Exec `"$PowerShellPath" -Command "if ((Get-Process | Where-Object {$$_.Path -and $$_.Path.StartsWith('${_PATH}')}).Count -gt 0) { exit 0 } else { exit 1 }"`
6969
Pop ${_RETURN}
7070
${Else}

0 commit comments

Comments
 (0)