Skip to content

NSIS killing all processes with same name #9009

Open
@panther7

Description

@panther7

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions