Skip to content

feat(nsis): terminate only processes running in installation folder #9069

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

panther7
Copy link
Contributor

Modified the process termination logic in NSIS scripts to only kill application processes that are running from the installation directory. This prevents accidental termination of processes with the same name running from other locations during installation or update.

issue: #9009

Copy link

changeset-bot bot commented Apr 29, 2025

🦋 Changeset detected

Latest commit: 4ee668a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Major
dmg-builder Major
electron-builder-squirrel-windows Major
electron-builder Major
electron-forge-maker-appimage Major
electron-forge-maker-nsis-web Major
electron-forge-maker-nsis Major
electron-forge-maker-snap Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mmaietta
Copy link
Collaborator

@beyondkmp would you mind taking a look at this when you have a chance?

Filip Mösner and others added 2 commits May 14, 2025 16:34
Modified the process termination logic in NSIS scripts to only kill application
processes that are running from the installation directory. This prevents
accidental termination of processes with the same name running from other
locations during installation or update.
@panther7 panther7 force-pushed the nsis-kill-process branch from 50e8b45 to d937699 Compare May 14, 2025 14:35
@mmaietta
Copy link
Collaborator

@panther7 following up here, what tests have you run so far?

Wondering if we can create an install+update test somehow for this in GHA runner? Similar to how this works: https://github.com/electron-userland/electron-builder/pull/9113/files?diff=unified&w=1#diff-1d9441830c74b56db3ecc46ef9805c4519141c15e145fabb24159d86e49d526dR10-R31

@mmaietta
Copy link
Collaborator

Working on a full "blackbox" test suite for verifying installation and updater flows with native/non-mocked Updaters
#9122

Will get that functional and then pull it into this PR for you so that we can add a black-box test for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants