[NSIS Installer] Incomplete cleanup during upgrade leaves processes running and old files behind
John Pace
johnpace95 at mail.de
Wed Nov 11 23:20:49 CET 2026
Hi,
here is a bugreport for you.
Also available here: https://bugs.kde.org/show_bug.cgi?id=528718
Original bug:
https://bugs.kde.org/show_bug.cgi?id=523721
Description
The problem occurs when updating an existing Gpg4win installation.
During the update process, the existing version is uninstalled before
the new version is installed. However, some processes from the previous
installation may still be running after the uninstallation.
In my case, the following processes remained running:
kleopatra.exe
dirmngr.exe
gpg-agent.exe
keyboxd.exe
The uninstaller reports that Gpg4win has been successfully removed, even
though these processes are still running.
As a consequence, files from the previous installation may remain in
place and potentially mix with files from the new version. This can
result in an inconsistent installation and may cause the issue described
in Bug 523721.
Expected behavior
During an upgrade, the installer should ensure that processes belonging
to the previous installation are no longer running before proceeding
with the installation of the new version.
If processes cannot be terminated or files cannot be removed, the user
should be informed accordingly, rather than being presented with an
apparently successful uninstallation.
Actual behavior
The update proceeds even though processes from the previous installation
are still running. This can leave files from the old version behind,
potentially resulting in a mixture of files from different versions.
Workaround
Before starting the update, the following batch script can be used to
terminate the relevant processes manually:
taskkill /F /IM kleopatra.exe
taskkill /F /IM dirmngr.exe
taskkill /F /IM gpg-agent.exe
taskkill /F /IM keyboxd.exe
After terminating these processes, the update can proceed without this
particular problem.
More information about the Gnupg-devel
mailing list