Skip to content

Windows installer falsely reports “Attu cannot be closed” when upgrading to v3.0.0-beta.6 #1027

Open

Description

@grassfish1122

Description

When upgrading Attu from v3.0.0-beta.5 to v3.0.0-beta.6 on Windows, the installer repeatedly displays the following message:

Attu cannot be closed. Please close it manually and click Retry to continue.

The dialog still appears after Attu is completely closed and all Attu-related processes have been terminated.

Environment

  • OS: Windows
  • Installed version: v3.0.0-beta.5
  • Target version: v3.0.0-beta.6
  • Installation mode: per-machine / all users
  • Existing installation uses a custom installation directory

Steps to reproduce

  1. Install Attu v3.0.0-beta.5 on Windows.
  2. Close Attu completely.
  3. Run the v3.0.0-beta.6 Windows installer.
  4. Wait for the installer to attempt to remove or replace the previous version.
  5. The installer reports that Attu cannot be closed.
  6. Close all remaining Attu-related processes and click Retry.
  7. The same dialog appears again.

Actual behavior

The installation cannot continue because the installer incorrectly believes that Attu is still running.

No Attu.exe or other Attu-related process is visible in Task Manager or through Win32_Process.

Expected behavior

The installer should continue when no actual Attu.exe process is running.

Possible root cause

This appears similar to an upstream electron-builder NSIS process-detection issue:

Older versions of the NSIS template used prefix/substring matching when checking process names. As a result, another executable whose name contains or starts with the application name may be incorrectly detected as Attu.exe.

This may also cause the Attu installer executable itself, whose filename contains Attu, to trigger the check.

The upstream fix was released in app-builder-lib/electron-builder 26.13.0.

Could you please verify which version of electron-builder / app-builder-lib was used to build the v3.0.0-beta.6 Windows installer?

Workarounds

The following workarounds appear to help:

  1. Rename the installer to a neutral filename that does not contain Attu, for example setup-beta6.exe, and run it as administrator.
  2. Use the Windows ZIP build instead of the NSIS installer.

Suggested fix

Please upgrade electron-builder / app-builder-lib to at least 26.13.0 and rebuild the Windows installer.

Screenshot

The installer displays:

Attu cannot be closed. Please close it manually and click Retry to continue.

A screenshot of the dialog is attached.

Image

Activity

  1. shanghaikid commented on Sep 3, 2026

    @shanghaikid
    Collaborator

    Thanks for the detailed investigation. You were correct that the beta.6 installer used an older electron-builder version.

    The Attu v3.0.0 stable release is built with electron-builder and app-builder-lib 26.15.3, which includes the upstream process-detection fix introduced in 26.13.0.

    Please try upgrading with the latest v3.0.0 Windows installer. If the installer still incorrectly reports that Attu is running, please let us know the installer filename and any similarly named processes on the system.

  2. grassfish1122 commented on Sep 11, 2026

    @grassfish1122
    Author

    Thanks for the update. I tested again with the stable v3.0.0 installer.

    Installer filename: attu-3.0.0-x64.exe

    Before installation

    Before launching the installer, I verified that there was no running Attu.exe process and no other Attu-related process on the system.

    Image Image

    During installation

    However, after launching attu-3.0.0-x64.exe, the installer still reports:

    Attu cannot be closed. Please close it manually and click Retry to continue.

    Image

    While this dialog was still open, I checked the running processes again:

    Image

    There is still no running Attu.exe.

    The only Attu-related executable/process appearing after installation starts is the installer itself, attu-3.0.0-x64.exe.

    So the issue is reproducible with the stable v3.0.0 installer even though no existing Attu application process is running before the installation starts.

    Could the installer itself still be matched by the process detection logic because its filename contains attu?

  3. shanghaikid commented on Sep 11, 2026

    @shanghaikid
    Collaborator

    Thanks for retesting and for the detailed process checks. Our earlier suggestion to upgrade the installer did not cover every part of the upgrade path—sorry about that.

    We checked the NSIS installer code. The newer process-name check uses an exact match for Attu.exe, so the filename attu-3.0.0-x64.exe alone should not trigger that check. However, an upgrade still runs the previously installed version's uninstaller, which retains its original logic. The installer also displays this same “Attu cannot be closed” message after repeated failures of the old uninstaller, so the message does not necessarily mean an Attu.exe process is running. We have not yet confirmed which path is failing on your machine.

    Suggested workaround: uninstall the old version first, then install v3.0.0.

    1. Cancel the installation and close Attu and all Attu installer windows.
    2. Back up Attu's local settings/data folder before uninstalling. With the standard Windows configuration, check %APPDATA%\attu (you can paste this into File Explorer) and copy the folder somewhere safe if it exists. Also back up any files you have manually stored inside the custom installation directory. Do not delete the AppData folder as part of this workaround.
    3. Open Windows Settings → Apps → Installed apps (or Apps & features) and uninstall the existing Attu version. If offered an option to remove application data, leave it unchecked. For the previous all-users installation, allow administrator elevation when prompted.
    4. After uninstalling successfully, restart Windows. Place attu-3.0.0-x64.exe in a folder outside the old installation directory, such as Downloads, and rename it to setup.exe as an additional precaution for older detection logic.
    5. Run setup.exe and install Attu into the default directory. This gives you a fresh application installation while retaining the local data you backed up; resetting local settings is not required for this workaround.

    If step 3 also fails, please stop there rather than manually deleting installation folders or registry entries. As an alternative, you can use the Windows x64 ZIP build from the v3.0.0 release: extract it into a new folder outside the existing installation and run Attu.exe. This bypasses the NSIS installer/uninstaller path.

    If the issue persists, please share the old installation directory, the full path where you launched the installer, and whether uninstalling Attu separately succeeds (including any error shown). Those details will help distinguish an old-uninstaller failure from the remaining path-based process check.

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

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