Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSIS killing all processes with same name #9009

Open
panther7 opened this issue Apr 4, 2025 · 0 comments
Open

NSIS killing all processes with same name #9009

panther7 opened this issue Apr 4, 2025 · 0 comments

Comments

@panther7
Copy link
Contributor

panther7 commented Apr 4, 2025

ref: #7773

Autoupdate(nsis) process killing all apliccations with same name.

Expected is kill only process from installed folder.

Example:

app1: /folder1/app.exe
app2: /folder2/app.exe
Both running, NSIS installing/updating app1, but app2 is killed too.


  • Electron-Builder Version: 26.0.12
  • Node Version: 22.14.0
  • Electron Version: 35.1.2
  • Electron Type (current, beta, nightly): current
  • Target: win

Solution:

Print all processes from actual directory:

powershell -Command "Get-Process | ?{$_.Path -and $_.Path.StartsWith($(Get-Location).Path)}"

And kill them:

powershell -Command "Get-Process | ?{$_.Path -and $_.Path.StartsWith($(Get-Location).Path)} | Stop-Process -Force"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant