Skip to content

Commit

Permalink
fix(win): product file name is too long causing the find process exe …
Browse files Browse the repository at this point in the history
…failed (#7955)
  • Loading branch information
bayun2 committed Jan 4, 2024
1 parent 869c7e4 commit 88e61bc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/happy-otters-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"app-builder-lib": patch
---

fix(win): product file name is too long causes the find process exe to fail
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
${nsProcess::FindProcess} "${_FILE}" ${_ERR}
!else
# find process owned by current user
nsExec::Exec `cmd /c tasklist /FI "USERNAME eq %USERNAME%" /FI "IMAGENAME eq ${_FILE}" | %SYSTEMROOT%\System32\find.exe "${_FILE}"`
nsExec::Exec `cmd /c tasklist /FI "USERNAME eq %USERNAME%" /FI "IMAGENAME eq ${_FILE}" /FO csv | %SYSTEMROOT%\System32\find.exe "${_FILE}"`
Pop ${_ERR}
!endif
!macroend
Expand Down

0 comments on commit 88e61bc

Please sign in to comment.