-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nsis): NSIS uninstaller doesn't kill child processes
Close #2516
- Loading branch information
Showing
2 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
packages/electron-builder-lib/templates/nsis/include/nsProcess.nsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
!define nsProcess::FindProcess `!insertmacro nsProcess::FindProcess` | ||
|
||
!macro nsProcess::FindProcess _FILE _ERR | ||
nsProcess::_FindProcess /NOUNLOAD `${_FILE}` | ||
Pop ${_ERR} | ||
!macroend | ||
|
||
|
||
!define nsProcess::KillProcess `!insertmacro nsProcess::KillProcess` | ||
|
||
!macro nsProcess::KillProcess _FILE _ERR | ||
nsProcess::_KillProcess /NOUNLOAD `${_FILE}` | ||
Pop ${_ERR} | ||
!macroend | ||
|
||
!define nsProcess::CloseProcess `!insertmacro nsProcess::CloseProcess` | ||
|
||
!macro nsProcess::CloseProcess _FILE _ERR | ||
nsProcess::_CloseProcess /NOUNLOAD `${_FILE}` | ||
Pop ${_ERR} | ||
!macroend | ||
|
||
|
||
!define nsProcess::Unload `!insertmacro nsProcess::Unload` | ||
|
||
!macro nsProcess::Unload | ||
nsProcess::_Unload | ||
!macroend |