https://bugs.kde.org/show_bug.cgi?id=528718

            Bug ID: 528718
           Summary: [NSIS Installer] Incomplete cleanup during upgrade
                    leaves processes running and old files behind
    Classification: Applications
           Product: kleopatra
      Version First Gpg4win-5.1.0
       Reported In:
          Platform: Microsoft Windows
                OS: Microsoft Windows
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
  Target Milestone: ---

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.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to