chocolatey-community/chocolatey-packages

(autohotkey.install) install failing in verifier and in test environment

Closed this issue · 5 comments

Checklist

  • I have verified that this is the correct repository, and the package is maintained by the chocolatey-community user.
  • I have verified that this is happening in the latest available version of the package.

Chocolatey Version

2.2.2

Chocolatey License

None

Package Version

2.0.15-2.0.17

Current Behaviour

The verifier is failing via the sofware installer hanging. When I try it in the test environment, it hangs also with an error of Error: This value of type "Installation" has no property named "Hashes". This error happens on line 51 of the installation script, at the Start-ChocolateyProcessAsAdmin call.

image

Expected Behaviour

That the package works in the verifier and in the test environment.

Steps To Reproduce

  1. Add autohotkey.install version 2.0.15 to the test env vagrantfile
  2. Run vagrant up --provision

Environment

- Operating System: Server 2019
- PowerShell Version: 5.1.17763.5576
- Shell: Powershell

Chocolatey Log

2024-05-17 16:13:41,481 6420 [DEBUG] - ---------------------------Script Execution---------------------------
2024-05-17 16:13:41,481 6420 [DEBUG] - Running 'ChocolateyScriptRunner' for autohotkey.install v2.0.15 with packageScript 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\autohotkey.install', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2024-05-17 16:13:41,496 6420 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\chocolateyInstall.ps1'
2024-05-17 16:13:41,559 6420 [DEBUG] - Running Get-PackageParameters 
2024-05-17 16:13:41,574 6420 [DEBUG] - Parsing $env:ChocolateyPackageParameters and $env:ChocolateyPackageParametersSensitive for parameters
2024-05-17 16:13:41,590 6420 [DEBUG] - Running Get-OSArchitectureWidth -compare '64' 
2024-05-17 16:13:41,637 6420 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/silent' -file 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_2.0.15_setup.exe' -fileType 'exe' -validExitCodes '0 1223' -packageName 'autohotkey.install' 
2024-05-17 16:13:41,637 6420 [DEBUG] - Running Get-OSArchitectureWidth -compare '32' 
2024-05-17 16:13:41,652 6420 [INFO ] - Installing autohotkey.install...
2024-05-17 16:13:41,856 6420 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 1223' -workingDirectory 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools' -statements '/silent ' -exeToRun 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_2.0.15_setup.exe' 
2024-05-17 16:13:41,902 6420 [DEBUG] - Test-ProcessAdminRights: returning True
2024-05-17 16:13:41,918 6420 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_2.0.15_setup.exe" /silent ]. This may take a while, depending on the statements.
2024-05-17 16:13:43,965 6420 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_2.0.15_setup.exe" /silent ] exited with '0'.
2024-05-17 16:13:43,981 6420 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2024-05-17 16:13:43,981 6420 [INFO ] - autohotkey.install has been installed.
2024-05-17 16:13:44,012 6420 [INFO ] - VERBOSE: Trying local and machine (x32 & x64) Uninstall keys
2024-05-17 16:13:44,043 6420 [DEBUG] - Running Get-UninstallRegistryKey -softwareName 'AutoHotkey*' 
2024-05-17 16:13:44,043 6420 [INFO ] - VERBOSE: Retrieving all uninstall registry keys
2024-05-17 16:13:44,106 6420 [DEBUG] - Registry uninstall keys on system: 28
2024-05-17 16:13:44,106 6420 [DEBUG] - Error handling check: 'Get-ItemProperty' fails if a registry key is encoded incorrectly.
2024-05-17 16:13:44,152 6420 [DEBUG] - Found 1 uninstall registry key(s) with SoftwareName:'AutoHotkey*'
2024-05-17 16:13:44,152 6420 [INFO ] - VERBOSE: Trying Uninstall key property 'InstallLocation'
2024-05-17 16:13:44,168 6420 [INFO ] - AutoHotkey* installed to 'C:\Program Files\AutoHotkey'
2024-05-17 16:13:44,293 6420 [INFO ] - AutoHotkey* registered as AutoHotkey
2024-05-17 16:13:44,293 6420 [DEBUG] - Running Install-ChocolateyInstallPackage -silentArgs '/S /U64 /install' -file 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_1.1.36.02_setup.exe' -fileType 'exe' -validExitCodes '0 1223' -packageName 'autohotkey.install' 
2024-05-17 16:13:44,293 6420 [DEBUG] - Running Get-OSArchitectureWidth -compare '32' 
2024-05-17 16:13:44,293 6420 [INFO ] - Installing autohotkey.install...
2024-05-17 16:13:44,309 6420 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 1223' -workingDirectory 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools' -statements '/S /U64 /install ' -exeToRun 'C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_1.1.36.02_setup.exe' 
2024-05-17 16:13:44,309 6420 [DEBUG] - Test-ProcessAdminRights: returning True
2024-05-17 16:13:44,309 6420 [DEBUG] - Elevating permissions and running ["C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_1.1.36.02_setup.exe" /S /U64 /install ]. This may take a while, depending on the statements.
2024-05-17 16:13:45,012 6420 [DEBUG] - Command ["C:\ProgramData\chocolatey\lib\autohotkey.install\tools\AutoHotkey_1.1.36.02_setup.exe" /S /U64 /install ] exited with '0'.
2024-05-17 16:13:45,012 6420 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin'
2024-05-17 16:13:45,027 6420 [INFO ] - autohotkey.install has been installed.
2024-05-17 16:13:45,027 6420 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -exeToRun 'C:\Program Files\AutoHotkey\v2\AutoHotkey.exe' -statements '"C:\Program Files\AutoHotkey\ux\install.ahk" /silent' 
2024-05-17 16:13:45,027 6420 [DEBUG] - Test-ProcessAdminRights: returning True
2024-05-17 16:13:45,027 6420 [DEBUG] - Elevating permissions and running ["C:\Program Files\AutoHotkey\v2\AutoHotkey.exe" "C:\Program Files\AutoHotkey\ux\install.ahk" /silent]. This may take a while, depending on the statements.

Anything else?

No response

There is some commentary around this here, though I'm unsure that applies to our verifier environment. I'll try and find out.

That said, it fails with the error error on what (I think) is a clean environment that doesn't have a hint of v1, so I'm unsure they've quite got it sorted there.

pauby commented

Also failing with version 2.0.16 and 2.0.17. I've updated the description. Version 2.0.14 has now been rejected.

nykBM commented

From autohotkey and autohotkey (install) #2503 :
image

image

Just as an update - I forced both upgrades (V2.0.18) on my computer and they worked with no other intervention on my part.

The .install package has a high virustotal count, so the description needs to be updated with a similar note to the .portable package so it can be exempted from the scanner.

This bug does appear to be fixed upstream, closing issue.