8000 [Bug]: autohotkey appears to be installing an old version · Issue #15337 · ScoopInstaller/Extras · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Bug]: autohotkey appears to be installing an old version #15337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
3 tasks done
Gitoffthelawn opened this issue Apr 22, 2025 · 11 comments
Open
3 tasks done

[Bug]: autohotkey appears to be installing an old version #15337

Gitoffthelawn opened this issue Apr 22, 2025 · 11 comments
Labels

Comments

@Gitoffthelawn
Copy link
Contributor

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 installing autohotkey, v2.0.19 is currently supposed to be installed. However, according to the date of the executable, the executable's meta data, and the autohotkey help file, v2.0.18 is actually being installed.

Furthermore, the file structure Scoop is creating is quite odd. It creates a folder named v2.0.18 within the a folder named v2.0.19.

I tried uninstalling and reinstalling autohotkey multiple times (via Scoop), and the result was always the same.

Steps to Reproduce

scoop install autohotkey

Possible Solution

I haven't had time to look into a fix. Either upstream didn't update their file timestamps and metadata, or something Scoop is doing for autohotkey is borked. I'm guessing it's the latter because all the info matches what one would expect for v2.0.18 instead of v2.0.19.

Sorry, I haven't had time to look into things further.

Scoop and Buckets Version

scoop --version
Current Scoop version:
859d1db5 (HEAD -> master, tag: v0.5.2, origin/master, origin/HEAD) chore(release): Bump to version 0.5.2 (#6080)

'main' bucket:
db2e16090 (HEAD -> master, origin/master, origin/HEAD) tailspin: Update to version 5.4.2

'extras' bucket:
45a1e8b5d2 (HEAD -> master, origin/master, origin/HEAD) reqable: Update to version 2.33.11

Scoop Config

scoop config

last_update                       scoop_repo                              scoop_branch virustotal_api_key
-----------                       ----------                              ------------ ------------------
2025-04-22T02:22:46.1019309-00:00 https://github.com/ScoopInstaller/Scoop master

PowerShell Version

$PSVersionTable

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

Additional Softwares

No response

@HUMORCE
Copy link
Member
HUMORCE commented Apr 22, 2025

Cannot reproduce.

Image

@Gitoffthelawn
Copy link
Contributor Author

@HUMORCE Thank you for checking on this. The results I experience are different. I uninstalled and reinstalled AHK (via Scoop) multiple times, just to be sure, and the result was the same each time. I also verified the autohotkey folder in Scoop's apps folder got completely deleted after each uninstall.

Image

@HUMORCE
Copy link
Member
HUMORCE commented Apr 23, 2025
scoop cat "$(scoop prefix autohotkey)\manifest.json"
scoop cat "$(scoop prefix autohotkey)\install.json"

Try execute them and leave the outputs.

@Gitoffthelawn
Copy link
Contributor Author

@HUMORCE

scoop cat "$(scoop prefix autohotkey)\manifest.json"
{
"version": "2.0.19",
"description": "The ultimate automation scripting language for Windows.",
"homepage": "https://www.autohotkey.com/",
"license": "GPL-2.0-or-later",
"notes": [
"Install specific version of Interpreter(Default: Latest 1.x):",
" - 'autohotkey /script "$dir\UX\install-version.ahk" [version]'",
"Uninstall Sub-versions of Interpreter:",
" - 'autohotkey /script "$dir\UX\ui-uninstall.ahk"'",
"See also: https://github.com//issues/10066"
],
"url": "https://github.com/AutoHotkey/AutoHotkey/releases/download/v2.0.19/AutoHotkey_2.0.19.zip",
"hash": "4e0d0e65655066a646a210951320feaef0729a3597177131adaec4066bef5869",
"extract_to": "installer",
"installer": {
"script": [
"$ahk = @('/script', "\"$dir\\installer\\UX\\install.ahk"", '/to', "\"$dir"", '/user', '/silent')",
"if ($global) { $ahk = @('/script', "\"$dir\\installer\\UX\\install.ahk"", '/to', "\"$dir"", '/silent') }",
"Start-Process "$dir\installer\AutoHotkey32.exe" -ArgumentList $ahk -Wait"
]
},
"post_install": [
"Remove-Item "$dir\installer" -Force -Recurse",
"# Persistence",
"if (Test-Path "$persist_dir\installed-files.csv") {",
" Get-Content "$persist_dir\installed-files.csv" | Add-Content "$dir\UX\installed-files.csv"",
" Copy-Item "$persist_dir\installed-files\" "$dir" -Recurse -ErrorAction SilentlyContinue",
" # Remove old files",
" Remove-Item "$persist_dir\installed-files.csv" -Force",
" Remove-Item "$persist_dir\installed-files" -Force -Recurse",
"}"
],
"architecture": {
"64bit": {
"bin": [
[
"UX\AutohotkeyUX.exe",
"autohotkey"
],
[
"v2\AutoHotkey32.exe",
"autohotkey32"
]
]
},
"32bit": {
"bin": [
"UX\AutohotkeyUX.exe",
"autohotkey"
]
}
},
"pre_uninstall": [
"# Persistence",
"ensure "$persist_dir" | Out-Null",
"ensure "$persist_dir\installed-files" | Out-Null",
"if (Test-Path "$dir\UX\installed-files.csv") {",
" $csv = Import-Csv "$dir\UX\installed-files.csv" | Where-Object 'Version' -ne $version",
" if ($csv) {",
" $export = @()",
" $dirs = @()",
" $csv | ForEach-Object {",
" $current = (Get-Item "$dir\$($.'Path')" -ErrorAction SilentlyContinue).Directory.Name",
" $export += "$($
.'Hash'),$($.'Version'),$($.'Path'),$($.'Description')"",
" if (!($dirs.Contains($current)) -and ($
.'Path' -notlike '
.lnk')) { $dirs += $current }",
" }",
" $export | Out-File "$persist_dir\installed-files.csv" -Encoding ASCII",
" $dirs | ForEach-Object { Copy-Item "$dir\$_" "$persist_dir\installed-files" -Recurse -ErrorAction SilentlyContinue }",
" }",
"}"
],
"uninstaller": {
"script": "Start-Process "$dir\UX\AutoHotkeyUX.exe" -ArgumentList @('/script', "\"$dir\\UX\\install.ahk"", '/uninstall', '/silent') -Wait"
},
"checkver": {
"url": "https://www.autohotkey.com/download/2.0/version.txt",
"regex": "([\d.]+)"
},
"autoupdate": {
"url": "https://github.com/AutoHotkey/AutoHotkey/releases/download/v$version/AutoHotkey_$version.zip",
"hash": {
"url": "https://www.autohotkey.com/download/$majorVersion.$minorVersion/AutoHotkey_$version.zip.sha256"
}
}
}

@Gitoffthelawn
Copy link
Contributor Author

@HUMORCE

scoop cat "$(scoop prefix autohotkey)\install.json"
{
"bucket": "extras",
"architecture": "64bit"
}

@Gitoffthelawn
Copy link
Contributor Author
Gitoffthelawn commented Apr 23, 2025

@HUMORCE

Here is the list of files the scoop install autohotkey creates (current is, of course, a symlink). As you can see, it creates a 2.0.18 within 2.0.19, but all executables (even within 2.0.19) are v2.0.18:

..\scoop\apps\autohotkey\2.0.19
..\scoop\apps\autohotkey\current
..\scoop\apps\autohotkey\2.0.19\2.0.19
..\scoop\apps\autohotkey\2.0.19\install.json
..\scoop\apps\autohotkey\2.0.19\license.txt
..\scoop\apps\autohotkey\2.0.19\manifest.json
..\scoop\apps\autohotkey\2.0.19\UX
..\scoop\apps\autohotkey\2.0.19\v2
..\scoop\apps\autohotkey\2.0.19\WindowSpy.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18
..\scoop\apps\autohotkey\2.0.19\2.0.19\install.json
..\scoop\apps\autohotkey\2.0.19\2.0.19\manifest.json
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX
..\scoop\apps\autohotkey\2.0.19\2.0.19\v2
..\scoop\apps\autohotkey\2.0.19\2.0.19\WindowSpy.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\install.json
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\manifest.json
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\v2
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\WindowSpy.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\AutoHotkeyUX.exe
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\install-ahk2exe.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\install-version.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\install.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\installed-files.csv
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\launcher.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\reload-v1.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\reset-assoc.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\Templates
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\ui-dash.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\ui-editor.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\ui-launcherconfig.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\ui-newscript.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\ui-setup.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\ui-uninstall.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\WindowSpy.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\bounce-v1.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\CommandLineToArgs.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\common.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\config.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\CreateAppShortcut.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\EnableUIAccess.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\GetGitHubReleaseAssetURL.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\HashFile.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\identify.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\identify_regex.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\launcher-common.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\README.txt
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\ShellRun.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\spy.ico
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\inc\ui-base.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\UX\Templates\Minimal for v2.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\v2\AutoHotkey.chm
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\v2\AutoHotkey32.exe
..\scoop\apps\autohotkey\2.0.19\2.0.19\2.0.18\v2\AutoHotkey64.exe
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\AutoHotkeyUX.exe
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\install-ahk2exe.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\install-version.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\install.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\installed-files.csv
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\launcher.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\reload-v1.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\reset-assoc.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\Templates
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\ui-dash.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\ui-editor.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\ui-launcherconfig.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\ui-newscript.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\ui-setup.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\ui-uninstall.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\WindowSpy.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\bounce-v1.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\CommandLineToArgs.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\common.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\config.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\CreateAppShortcut.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\EnableUIAccess.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\GetGitHubReleaseAssetURL.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\HashFile.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\identify.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\identify_regex.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\launcher-common.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\README.txt
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\ShellRun.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\spy.ico
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\inc\ui-base.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\UX\Templates\Minimal for v2.ahk
..\scoop\apps\autohotkey\2.0.19\2.0.19\v2\AutoHotkey.chm
..\scoop\apps\autohotkey\2.0.19\2.0.19\v2\AutoHotkey32.exe
..\scoop\apps\autohotkey\2.0.19\2.0.19\v2\AutoHotkey64.exe
..\scoop\apps\autohotkey\2.0.19\UX\AutoHotkeyUX.exe
..\scoop\apps\autohotkey\2.0.19\UX\inc
..\scoop\apps\autohotkey\2.0.19\UX\install-ahk2exe.ahk
..\scoop\apps\autohotkey\2.0.19\UX\install-version.ahk
..\scoop\apps\autohotkey\2.0.19\UX\install.ahk
..\scoop\apps\autohotkey\2.0.19\UX\installed-files.csv
..\scoop\apps\autohotkey\2.0.19\UX\launcher.ahk
..\scoop\apps\autohotkey\2.0.19\UX\reload-v1.ahk
..\scoop\apps\autohotkey\2.0.19\UX\reset-assoc.ahk
..\scoop\apps\autohotkey\2.0.19\UX\Templates
..\scoop\apps\autohotkey\2.0.19\UX\ui-dash.ahk
..\scoop\apps\autohotkey\2.0.19\UX\ui-editor.ahk
..\scoop\apps\autohotkey\2.0.19\UX\ui-launcherconfig.ahk
..\scoop\apps\autohotkey\2.0.19\UX\ui-newscript.ahk
..\scoop\apps\autohotkey\2.0.19\UX\ui-setup.ahk
..\scoop\apps\autohotkey\2.0.19\UX\ui-uninstall.ahk
..\scoop\apps\autohotkey\2.0.19\UX\WindowSpy.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\bounce-v1.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\CommandLineToArgs.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\common.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\config.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\CreateAppShortcut.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\EnableUIAccess.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\GetGitHubReleaseAssetURL.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\HashFile.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\identify.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\identify_regex.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\launcher-common.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\README.txt
..\scoop\apps\autohotkey\2.0.19\UX\inc\ShellRun.ahk
..\scoop\apps\autohotkey\2.0.19\UX\inc\spy.ico
..\scoop\apps\autohotkey\2.0.19\UX\inc\ui-base.ahk
..\scoop\apps\autohotkey\2.0.19\UX\Templates\Minimal for v2.ahk
..\scoop\apps\autohotkey\2.0.19\v2\AutoHotkey.chm
..\scoop\apps\autohotkey\2.0.19\v2\AutoHotkey32.exe
..\scoop\apps\autohotkey\2.0.19\v2\AutoHotkey64.exe
..\scoop\apps\autohotkey\current\2.0.19
..\scoop\apps\autohotkey\current\install.json
..\scoop\apps\autohotkey\current\license.txt
..\scoop\apps\autohotkey\current\manifest.json
..\scoop\apps\autohotkey\current\UX
..\scoop\apps\autohotkey\current\v2
..\scoop\apps\autohotkey\current\WindowSpy.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18
..\scoop\apps\autohotkey\current\2.0.19\install.json
..\scoop\apps\autohotkey\current\2.0.19\manifest.json
..\scoop\apps\autohotkey\current\2.0.19\UX
..\scoop\apps\autohotkey\current\2.0.19\v2
..\scoop\apps\autohotkey\current\2.0.19\WindowSpy.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\install.json
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\manifest.json
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\v2
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\WindowSpy.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\AutoHotkeyUX.exe
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\install-ahk2exe.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\install-version.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\install.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\installed-files.csv
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\launcher.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\reload-v1.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\reset-assoc.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\Templates
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\ui-dash.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\ui-editor.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\ui-launcherconfig.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\ui-newscript.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\ui-setup.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\ui-uninstall.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\WindowSpy.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\bounce-v1.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\CommandLineToArgs.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\common.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\config.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\CreateAppShortcut.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\EnableUIAccess.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\GetGitHubReleaseAssetURL.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\HashFile.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\identify.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\identify_regex.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\launcher-common.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\README.txt
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\ShellRun.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\spy.ico
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\inc\ui-base.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\UX\Templates\Minimal for v2.ahk
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\v2\AutoHotkey.chm
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\v2\AutoHotkey32.exe
..\scoop\apps\autohotkey\current\2.0.19\2.0.18\v2\AutoHotkey64.exe
..\scoop\apps\autohotkey\current\2.0.19\UX\AutoHotkeyUX.exe
..\scoop\apps\autohotkey\current\2.0.19\UX\inc
..\scoop\apps\autohotkey\current\2.0.19\UX\install-ahk2exe.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\install-version.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\install.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\installed-files.csv
..\scoop\apps\autohotkey\current\2.0.19\UX\launcher.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\reload-v1.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\reset-assoc.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\Templates
..\scoop\apps\autohotkey\current\2.0.19\UX\ui-dash.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\ui-editor.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\ui-launcherconfig.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\ui-newscript.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\ui-setup.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\ui-uninstall.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\WindowSpy.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\bounce-v1.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\CommandLineToArgs.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\common.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\config.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\CreateAppShortcut.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\EnableUIAccess.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\GetGitHubReleaseAssetURL.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\HashFile.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\identify.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\identify_regex.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\launcher-common.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\README.txt
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\ShellRun.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\spy.ico
..\scoop\apps\autohotkey\current\2.0.19\UX\inc\ui-base.ahk
..\scoop\apps\autohotkey\current\2.0.19\UX\Templates\Minimal for v2.ahk
..\scoop\apps\autohotkey\current\2.0.19\v2\AutoHotkey.chm
..\scoop\apps\autohotkey\current\2.0.19\v2\AutoHotkey32.exe
..\scoop\apps\autohotkey\current\2.0.19\v2\AutoHotkey64.exe
..\scoop\apps\autohotkey\current\UX\AutoHotkeyUX.exe
..\scoop\apps\autohotkey\current\UX\inc
..\scoop\apps\autohotkey\current\UX\install-ahk2exe.ahk
..\scoop\apps\autohotkey\current\UX\install-version.ahk
..\scoop\apps\autohotkey\current\UX\install.ahk
..\scoop\apps\autohotkey\current\UX\installed-files.csv
..\scoop\apps\autohotkey\current\UX\launcher.ahk
..\scoop\apps\autohotkey\current\UX\reload-v1.ahk
..\scoop\apps\autohotkey\current\UX\reset-assoc.ahk
..\scoop\apps\autohotkey\current\UX\Templates
..\scoop\apps\autohotkey\current\UX\ui-dash.ahk
..\scoop\apps\autohotkey\current\UX\ui-editor.ahk
..\scoop\apps\autohotkey\current\UX\ui-launcherconfig.ahk
..\scoop\apps\autohotkey\current\UX\ui-newscript.ahk
..\scoop\apps\autohotkey\current\UX\ui-setup.ahk
..\scoop\apps\autohotkey\current\UX\ui-uninstall.ahk
..\scoop\apps\autohotkey\current\UX\WindowSpy.ahk
..\scoop\apps\autohotkey\current\UX\inc\bounce-v1.ahk
..\scoop\apps\autohotkey\current\UX\inc\CommandLineToArgs.ahk
..\scoop\apps\autohotkey\current\UX\inc\common.ahk
..\scoop\apps\autohotkey\current\UX\inc\config.ahk
..\scoop\apps\autohotkey\current\UX\inc\CreateAppShortcut.ahk
..\scoop\apps\autohotkey\current\UX\inc\EnableUIAccess.ahk
..\scoop\apps\autohotkey\current\UX\inc\GetGitHubReleaseAssetURL.ahk
..\scoop\apps\autohotkey\current\UX\inc\HashFile.ahk
..\scoop\apps\autohotkey\current\UX\inc\identify.ahk
..\scoop\apps\autohotkey\current\UX\inc\identify_regex.ahk
..\scoop\apps\autohotkey\current\UX\inc\launcher-common.ahk
..\scoop\apps\autohotkey\current\UX\inc\README.txt
..\scoop\apps\autohotkey\current\UX\inc\ShellRun.ahk
..\scoop\apps\autohotkey\current\UX\inc\spy.ico
..\scoop\apps\autohotkey\current\UX\inc\ui-base.ahk
..\scoop\apps\autohotkey\current\UX\Templates\Minimal for v2.ahk
..\scoop\apps\autohotkey\current\v2\AutoHotkey.chm
..\scoop\apps\autohotkey\current\v2\AutoHotkey32.exe
..\scoop\apps\autohotkey\current\v2\AutoHotkey64.exe

@HUMORCE
Copy link
Member
HUMORCE commented Apr 23, 2025

Looks like something went wrong with the install script?

Try a fresh install, ! this will remove persisted data of autohotkey:

scoop uninstall autohotkey -p
scoop install autohotkey

@Gitoffthelawn
Copy link
Contributor Author

@HUMORCE wrote:

Looks like something went wrong with the install script?

Try a fresh install, ! this will remove persisted data of autohotkey:

scoop uninstall autohotkey -p
scoop install autohotkey

That fixed it. Thank you!

Now let's take a quick moment to look to see if there is anything to improve:

  1. I previously tried the above two commands, minus the -p switch, several times. No errors were presented. Should some errors have been presented?
  2. Given that the -p switch for the uninstall command seems to have resolved the issue, there's strong reason to believe that persisted data was causing an issue, as you suspected. What type of persisted data are we talking about, and where is it stored? I don't see a ..\scoop\persist\autohotkey folder, so it must be stored elsewhere.
  3. Anything you can think of to help prevent this from happening to others, as well as during future updates to autohotkey via Scoop?

@HUMORCE
Copy link
Member
HUMORCE commented Apr 23, 2025

I can confirm that it could work well at latest in Jun, 2024. Persistence is primarily keeping installed versions(see notes of the manifest)

Even now, as I install/update between multiple versions, I can't reproduce the problem you report.

and where is it stored? I don't see a ..\scoop\persist\autohotkey folder, so it must be stored elsewhere.

It created while updating/uninstalling:

"pre_uninstall": [
"# Persistence",
"ensure \"$persist_dir\" | Out-Null",
"ensure \"$persist_dir\\installed-files\" | Out-Null",

@Gitoffthelawn
Copy link
Contributor Author
Gitoffthelawn commented Apr 23, 2025

@HUMORCE wrote:

I can confirm that it could work well at latest in Jun, 2024. Persistence is primarily keeping installed versions(see notes of the manifest)

Even now, as I install/update between multiple versions, I can't reproduce the problem you report.

Hmmm... I'll keep an eye on it as future versions of autohotkey are released.

Thank you for checking and performing that testing.

and where is it stored? I don't see a ..\scoop\persist\autohotkey folder, so it must be stored elsewhere.

It created while updating/uninstalling:

Extras/bucket/autohotkey.json

Lines 54 to 57 in 3ecdbe8
"pre_uninstall": [
"# Persistence",
"ensure "$persist_dir" | Out-Null",
"ensure "$persist_dir\installed-files" | Out-Null",

  1. Where is $persist_dir pointing there? Is it somewhere besides ..\scoop\persist\autohotkey?

  2. What specifically took place when I issued scoop uninstall autohotkey -p that differed from scoop uninstall autohotkey? Adding the -p switch did fix it, but I thought adding -p just removed ..\scoop\persist\autohotkey, which didn't exist.

@HUMORCE
Copy link
Member
HUMORCE commented Apr 23, 2025

Where is $persist_dir pointing there? Is it somewhere besides ..\scoop\persist\autohotkey?

https://github.com/ScoopInstaller/Scoop/wiki/Pre-Post-(un)install-scripts

What specifically took place when I issued scoop uninstall autohotkey -p that differed from scoop uninstall autohotkey? Adding the -p switch did fix it, but I thought adding -p just removed ..\scoop\persist\autohotkey, which didn't exist.

-p, --purge Remove all persistent data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0