Skip to content

[Bug]: autohotkey - Old versions persisting after update #17352

@Gitoffthelawn

Description

@Gitoffthelawn

Prerequisites

  • I have written a descriptive issue title.
  • I have searched all issues/PRs to ensure it has not already been reported or fixed.
  • I have verified that I am using the latest version of Scoop and corresponding bucket.

Package Name

autohotkey

Expected/Current Behaviour

When updating AutoHotkey, Scoop is persisting old versions.

Here is the resultant file system tree after installing AutoHotkey v2.19, then updating to v2.20, followed by updating to v2.21:

C:\USERS\[username]\SCOOP\APPS\AUTOHOTKEY
├───2.0.21
│   │   install.json
│   │   manifest.json
│   │   WindowSpy.ahk
│   │
│   ├───2.0.20
│   │   │   install.json
│   │   │   manifest.json
│   │   │   WindowSpy.ahk
│   │   │
│   │   ├───2.0.19
│   │   │   │   install.json
│   │   │   │   manifest.json
│   │   │   │   WindowSpy.ahk
│   │   │   │
│   │   │   ├───UX
│   │   │   │   │   AutoHotkeyUX.exe
│   │   │   │   │   install-ahk2exe.ahk
│   │   │   │   │   install-version.ahk
│   │   │   │   │   install.ahk
│   │   │   │   │   installed-files.csv
│   │   │   │   │   launcher.ahk
│   │   │   │   │   reload-v1.ahk
│   │   │   │   │   reset-assoc.ahk
│   │   │   │   │   ui-dash.ahk
│   │   │   │   │   ui-editor.ahk
│   │   │   │   │   ui-launcherconfig.ahk
│   │   │   │   │   ui-newscript.ahk
│   │   │   │   │   ui-setup.ahk
│   │   │   │   │   ui-uninstall.ahk
│   │   │   │   │   WindowSpy.ahk
│   │   │   │   │
│   │   │   │   ├───inc
│   │   │   │   │       bounce-v1.ahk
│   │   │   │   │       CommandLineToArgs.ahk
│   │   │   │   │       common.ahk
│   │   │   │   │       config.ahk
│   │   │   │   │       CreateAppShortcut.ahk
│   │   │   │   │       EnableUIAccess.ahk
│   │   │   │   │       GetGitHubReleaseAssetURL.ahk
│   │   │   │   │       HashFile.ahk
│   │   │   │   │       identify.ahk
│   │   │   │   │       identify_regex.ahk
│   │   │   │   │       launcher-common.ahk
│   │   │   │   │       README.txt
│   │   │   │   │       ShellRun.ahk
│   │   │   │   │       spy.ico
│   │   │   │   │       ui-base.ahk
│   │   │   │   │
│   │   │   │   └───Templates
│   │   │   │           Minimal for v2.ahk
│   │   │   │
│   │   │   └───v2
│   │   │           AutoHotkey.chm
│   │   │           AutoHotkey32.exe
│   │   │           AutoHotkey64.exe
│   │   │
│   │   ├───UX
│   │   │   │   AutoHotkeyUX.exe
│   │   │   │   install-ahk2exe.ahk
│   │   │   │   install-version.ahk
│   │   │   │   install.ahk
│   │   │   │   installed-files.csv
│   │   │   │   launcher.ahk
│   │   │   │   reload-v1.ahk
│   │   │   │   reset-assoc.ahk
│   │   │   │   ui-dash.ahk
│   │   │   │   ui-editor.ahk
│   │   │   │   ui-launcherconfig.ahk
│   │   │   │   ui-newscript.ahk
│   │   │   │   ui-setup.ahk
│   │   │   │   ui-uninstall.ahk
│   │   │   │   WindowSpy.ahk
│   │   │   │
│   │   │   ├───inc
│   │   │   │       bounce-v1.ahk
│   │   │   │       CommandLineToArgs.ahk
│   │   │   │       common.ahk
│   │   │   │       config.ahk
│   │   │   │       CreateAppShortcut.ahk
│   │   │   │       EnableUIAccess.ahk
│   │   │   │       GetGitHubReleaseAssetURL.ahk
│   │   │   │       HashFile.ahk
│   │   │   │       identify.ahk
│   │   │   │       identify_regex.ahk
│   │   │   │       launcher-common.ahk
│   │   │   │       README.txt
│   │   │   │       ShellRun.ahk
│   │   │   │       spy.ico
│   │   │   │       ui-base.ahk
│   │   │   │
│   │   │   └───Templates
│   │   │           Minimal for v2.ahk
│   │   │
│   │   └───v2
│   │           AutoHotkey.chm
│   │           AutoHotkey32.exe
│   │           AutoHotkey64.exe
│   │
│   ├───UX
│   │   │   AutoHotkeyUX.exe
│   │   │   install-ahk2exe.ahk
│   │   │   install-version.ahk
│   │   │   install.ahk
│   │   │   installed-files.csv
│   │   │   launcher.ahk
│   │   │   reload-v1.ahk
│   │   │   reset-assoc.ahk
│   │   │   ui-dash.ahk
│   │   │   ui-editor.ahk
│   │   │   ui-launcherconfig.ahk
│   │   │   ui-newscript.ahk
│   │   │   ui-setup.ahk
│   │   │   ui-uninstall.ahk
│   │   │   WindowSpy.ahk
│   │   │
│   │   ├───inc
│   │   │       bounce-v1.ahk
│   │   │       CommandLineToArgs.ahk
│   │   │       common.ahk
│   │   │       config.ahk
│   │   │       CreateAppShortcut.ahk
│   │   │       EnableUIAccess.ahk
│   │   │       GetGitHubReleaseAssetURL.ahk
│   │   │       HashFile.ahk
│   │   │       identify.ahk
│   │   │       identify_regex.ahk
│   │   │       launcher-common.ahk
│   │   │       README.txt
│   │   │       ShellRun.ahk
│   │   │       spy.ico
│   │   │       ui-base.ahk
│   │   │
│   │   └───Templates
│   │           Minimal for v2.ahk
│   │
│   └───v2
│           AutoHotkey.chm
│           AutoHotkey32.exe
│           AutoHotkey64.exe
│
└───current
    │   install.json
    │   manifest.json
    │   WindowSpy.ahk
    │
    ├───2.0.20
    │   │   install.json
    │   │   manifest.json
    │   │   WindowSpy.ahk
    │   │
    │   ├───2.0.19
    │   │   │   install.json
    │   │   │   manifest.json
    │   │   │   WindowSpy.ahk
    │   │   │
    │   │   ├───UX
    │   │   │   │   AutoHotkeyUX.exe
    │   │   │   │   install-ahk2exe.ahk
    │   │   │   │   install-version.ahk
    │   │   │   │   install.ahk
    │   │   │   │   installed-files.csv
    │   │   │   │   launcher.ahk
    │   │   │   │   reload-v1.ahk
    │   │   │   │   reset-assoc.ahk
    │   │   │   │   ui-dash.ahk
    │   │   │   │   ui-editor.ahk
    │   │   │   │   ui-launcherconfig.ahk
    │   │   │   │   ui-newscript.ahk
    │   │   │   │   ui-setup.ahk
    │   │   │   │   ui-uninstall.ahk
    │   │   │   │   WindowSpy.ahk
    │   │   │   │
    │   │   │   ├───inc
    │   │   │   │       bounce-v1.ahk
    │   │   │   │       CommandLineToArgs.ahk
    │   │   │   │       common.ahk
    │   │   │   │       config.ahk
    │   │   │   │       CreateAppShortcut.ahk
    │   │   │   │       EnableUIAccess.ahk
    │   │   │   │       GetGitHubReleaseAssetURL.ahk
    │   │   │   │       HashFile.ahk
    │   │   │   │       identify.ahk
    │   │   │   │       identify_regex.ahk
    │   │   │   │       launcher-common.ahk
    │   │   │   │       README.txt
    │   │   │   │       ShellRun.ahk
    │   │   │   │       spy.ico
    │   │   │   │       ui-base.ahk
    │   │   │   │
    │   │   │   └───Templates
    │   │   │           Minimal for v2.ahk
    │   │   │
    │   │   └───v2
    │   │           AutoHotkey.chm
    │   │           AutoHotkey32.exe
    │   │           AutoHotkey64.exe
    │   │
    │   ├───UX
    │   │   │   AutoHotkeyUX.exe
    │   │   │   install-ahk2exe.ahk
    │   │   │   install-version.ahk
    │   │   │   install.ahk
    │   │   │   installed-files.csv
    │   │   │   launcher.ahk
    │   │   │   reload-v1.ahk
    │   │   │   reset-assoc.ahk
    │   │   │   ui-dash.ahk
    │   │   │   ui-editor.ahk
    │   │   │   ui-launcherconfig.ahk
    │   │   │   ui-newscript.ahk
    │   │   │   ui-setup.ahk
    │   │   │   ui-uninstall.ahk
    │   │   │   WindowSpy.ahk
    │   │   │
    │   │   ├───inc
    │   │   │       bounce-v1.ahk
    │   │   │       CommandLineToArgs.ahk
    │   │   │       common.ahk
    │   │   │       config.ahk
    │   │   │       CreateAppShortcut.ahk
    │   │   │       EnableUIAccess.ahk
    │   │   │       GetGitHubReleaseAssetURL.ahk
    │   │   │       HashFile.ahk
    │   │   │       identify.ahk
    │   │   │       identify_regex.ahk
    │   │   │       launcher-common.ahk
    │   │   │       README.txt
    │   │   │       ShellRun.ahk
    │   │   │       spy.ico
    │   │   │       ui-base.ahk
    │   │   │
    │   │   └───Templates
    │   │           Minimal for v2.ahk
    │   │
    │   └───v2
    │           AutoHotkey.chm
    │           AutoHotkey32.exe
    │           AutoHotkey64.exe
    │
    ├───UX
    │   │   AutoHotkeyUX.exe
    │   │   install-ahk2exe.ahk
    │   │   install-version.ahk
    │   │   install.ahk
    │   │   installed-files.csv
    │   │   launcher.ahk
    │   │   reload-v1.ahk
    │   │   reset-assoc.ahk
    │   │   ui-dash.ahk
    │   │   ui-editor.ahk
    │   │   ui-launcherconfig.ahk
    │   │   ui-newscript.ahk
    │   │   ui-setup.ahk
    │   │   ui-uninstall.ahk
    │   │   WindowSpy.ahk
    │   │
    │   ├───inc
    │   │       bounce-v1.ahk
    │   │       CommandLineToArgs.ahk
    │   │       common.ahk
    │   │       config.ahk
    │   │       CreateAppShortcut.ahk
    │   │       EnableUIAccess.ahk
    │   │       GetGitHubReleaseAssetURL.ahk
    │   │       HashFile.ahk
    │   │       identify.ahk
    │   │       identify_regex.ahk
    │   │       launcher-common.ahk
    │   │       README.txt
    │   │       ShellRun.ahk
    │   │       spy.ico
    │   │       ui-base.ahk
    │   │
    │   └───Templates
    │           Minimal for v2.ahk
    │
    └───v2
            AutoHotkey.chm
            AutoHotkey32.exe
            AutoHotkey64.exe

Steps to Reproduce

1. using Scoop, install AutoHotkey v2.19
2. using Scoop, update to v2.20
3. using Scoop, update to v2.21

Possible Solution

Embrace the mess. ;)

Here's the blame report:
https://github.com/ScoopInstaller/Extras/blame/master/bucket/autohotkey.json

Scoop and Buckets Version

Current Scoop version:
b588a06e (HEAD -> master, origin/master, origin/HEAD) chore(release): Bump to version 0.5.3 (resync) (#6436)

'main' bucket:
15feaf84e3 (HEAD -> master, origin/master, origin/HEAD) git: Persist system-wide config (#7632)

'extras' bucket:
26d5c89c9d (HEAD -> master, origin/master, origin/HEAD) smoothcsv: Add version 3.15.1 (#17338)

Scoop Config

last_update                       scoop_repo                              scoop_branch virustotal_api_key
-----------                       ----------                              ------------ ------------------
2026-03-05T12:15:00.9810723-00:00 https://github.com/ScoopInstaller/Scoop master       [API key redacted]

PowerShell Version

Name                           Value
----                           -----
PSVersion                      5.1.26100.7705
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.7705
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Additional Softwares

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions