Skip to content

Commit 88e61bc

Browse files
authored
fix(win): product file name is too long causing the find process exe failed (#7955)
1 parent 869c7e4 commit 88e61bc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/happy-otters-heal.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(win): product file name is too long causes the find process exe to fail

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
${nsProcess::FindProcess} "${_FILE}" ${_ERR}
4343
!else
4444
# find process owned by current user
45-
nsExec::Exec `cmd /c tasklist /FI "USERNAME eq %USERNAME%" /FI "IMAGENAME eq ${_FILE}" | %SYSTEMROOT%\System32\find.exe "${_FILE}"`
45+
nsExec::Exec `cmd /c tasklist /FI "USERNAME eq %USERNAME%" /FI "IMAGENAME eq ${_FILE}" /FO csv | %SYSTEMROOT%\System32\find.exe "${_FILE}"`
4646
Pop ${_ERR}
4747
!endif
4848
!macroend

0 commit comments

Comments
 (0)