chocolatey / ChocolateyGUI

A delicious GUI for Chocolatey
https://docs.chocolatey.org/en-us/chocolatey-gui/
Apache License 2.0
1.66k stars 253 forks source link

Error while running chocolateyInstall.ps1 #1047

Closed skapytek closed 3 months ago

skapytek commented 6 months ago

Checklist

What You Are Seeing?

2024-05-07 00:32:00,947 32124 [INFO ] - Installing ChocolateyGUI... 2024-05-07 00:32:00,984 32124 [DEBUG] - Ensuring 'C:\Users\mmueh\AppData\Local\Temp\chocolatey' exists 2024-05-07 00:32:01,013 32124 [DEBUG] - Running Start-ChocolateyProcessAsAdmin -validExitCodes '0 1641 3010' -workingDirectory 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools' -statements '/i "C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\ChocolateyGUI.msi" /qn /norestart /lv "C:\Users\mmueh\AppData\Local\Temp\chocolatey\ChocolateyGUI.2.1.1.log" ' -exeToRun 'C:\WINDOWS\System32\msiexec.exe' 2024-05-07 00:32:01,031 32124 [DEBUG] - Test-ProcessAdminRights: returning True 2024-05-07 00:32:01,039 32124 [DEBUG] - Elevating permissions and running ["C:\WINDOWS\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\ChocolateyGUI.msi" /qn /norestart /lv "C:\Users\mmueh\AppData\Local\Temp\chocolatey\ChocolateyGUI.2.1.1.log" ]. This may take a while, depending on the statements. 2024-05-07 00:32:01,406 32124 [DEBUG] - Command ["C:\WINDOWS\System32\msiexec.exe" /i "C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\ChocolateyGUI.msi" /qn /norestart /l*v "C:\Users\mmueh\AppData\Local\Temp\chocolatey\ChocolateyGUI.2.1.1.log" ] exited with '0'. 2024-05-07 00:32:01,413 32124 [DEBUG] - Finishing 'Start-ChocolateyProcessAsAdmin' 2024-05-07 00:32:01,414 32124 [INFO ] - ChocolateyGUI has been installed. 2024-05-07 00:32:01,458 32124 [ERROR] - ERROR: The term 'Get-AppInstallLocation' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. 2024-05-07 00:32:01,462 32124 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'. 2024-05-07 00:32:01,464 32124 [DEBUG] - Calling command ['"C:\WINDOWS\System32\shutdown.exe" /a'] 2024-05-07 00:32:01,496 32124 [DEBUG] - Command ['"C:\WINDOWS\System32\shutdown.exe" /a'] exited with '1116' 2024-05-07 00:32:01,644 32124 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\ChocolateyGUI' 2024-05-07 00:32:01,678 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\chocolateygui.nupkg' with checksum 'CBAF14CE6C6BD7A4DE8A3F51DDB87DD1' 2024-05-07 00:32:01,680 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\chocolateygui.nuspec' with checksum 'EC1D44C095BD160F3CBDB95211552AD9' 2024-05-07 00:32:01,680 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\legal\CREDITS.md' with checksum '5233C54D7D06C228EE122FC178E597CD' 2024-05-07 00:32:01,682 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\legal\LICENSE.txt' with checksum '02D8EF21C666949C5B31E75D4B278F47' 2024-05-07 00:32:01,683 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\ChocolateyGUI.msi.ignore' with checksum 'BEA07E6D2B8DCE396FE21BAA61B34956' 2024-05-07 00:32:01,684 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\chocolateyInstall.ps1' with checksum '2689B790F7CA671097FCDEA4BEDFBAC1' 2024-05-07 00:32:01,684 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\chocolateyUninstall.ps1' with checksum '85760F36BD890C4707B68AC801520ECB' 2024-05-07 00:32:01,685 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\helper.ps1' with checksum '94D4C0BF1F63669557AADC9D881D2C4D' 2024-05-07 00:32:01,686 32124 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\VERIFICATION.txt' with checksum '24DDB8F3EF886B91E79ECBC776621FAC' 2024-05-07 00:32:01,701 32124 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\chocolateygui.2.1.1.arguments". 2024-05-07 00:32:01,701 32124 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\chocolateygui.2.1.1.extra". 2024-05-07 00:32:01,702 32124 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\chocolateygui.2.1.1.version". 2024-05-07 00:32:01,703 32124 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\chocolateygui.2.1.1.sxs". 2024-05-07 00:32:01,703 32124 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey.chocolatey\chocolateygui.2.1.1.pin". 2024-05-07 00:32:01,707 32124 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\ChocolateyGUI". 2024-05-07 00:32:01,712 32124 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers... 2024-05-07 00:32:01,714 32124 [ERROR] - The install of chocolateygui was NOT successful. 2024-05-07 00:32:01,717 32124 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\chocolateyInstall.ps1'. See log for details. 2024-05-07 00:32:01,721 32124 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad\chocolateygui". 2024-05-07 00:32:01,722 32124 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\ChocolateyGUI to C:\ProgramData\chocolatey\lib-bad\chocolateygui\2.1.1 2024-05-07 00:32:01,724 32124 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\ChocolateyGUI' to 'C:\ProgramData\chocolatey\lib-bad\chocolateygui\2.1.1' 2024-05-07 00:32:03,749 32124 [WARN ] - Chocolatey installed 0/1 packages. 1 packages failed. See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log). 2024-05-07 00:32:03,756 32124 [INFO ] - 2024-05-07 00:32:03,757 32124 [ERROR] - Failures 2024-05-07 00:32:03,763 32124 [ERROR] - - chocolateygui (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\ChocolateyGUI\tools\chocolateyInstall.ps1'. See log for details. 2024-05-07 00:32:03,770 32124 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers... 2024-05-07 00:32:03,772 32124 [DEBUG] - Exiting with -1

What is Expected?

installing chocolateygui without errors

How Did You Get This To Happen?

choco install chocolateygui -y

as admin in cmd

System Details

Installed Packages

Chocolatey v2.2.2
7zip.install 23.1.0
amd-ryzen-chipset 2024.3.13
autohotkey.portable 2.0.11
autoruns 14.11.0
chocolatey 2.2.2
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-dotnetfx.extension 1.0.1
chocolatey-windowsupdate.extension 1.0.5
cpu-z 2.9.0.20240123
crystaldiskinfo.portable 9.3.0
ditto 3.24.246
DotNet4.5.2 4.5.2.20140902
dotnet-6.0-desktopruntime 6.0.29
dotnet-6.0-runtime 6.0.29
dotnetfx 4.8.0.20220524
Everything 1.4.11024
fah 7.6.21
ffmpeg 7.0.0
geany-plugins 2.0.0
gsmartcontrol 1.1.4
ipfilter-updater 3.0.5-beta
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
KB3063858 1.0.0
kitty 0.76.1.13
libdvdcss-2 1.4.3
lite-xl 2.1.3
microsoft-windows-terminal 1.19.10821
openhardwaremonitor 0.9.6.20210201
pingmonitorfree 9.0.9
processhacker.install 2.39.0
procexp 17.5.0.20231021
procmon 3.96.0.20231021
putty 0.81.0
putty.portable 0.81.0
rclone 1.66.0
rclone.portable 1.66.0
rclonebrowser 1.2.0
sabnzbd 4.2.3
shadowsocks 4.4.1
stunnel 5.72.0
sysinternals 2024.2.13
systeminformer-nightlybuilds 3.0.5727
Temurinjre 21.0.2
vcredist140 14.38.33135
vcredist2015 14.0.24215.20170201
ventoy 1.0.97.20240415
warp 24.2.187
windirstat 1.1.2.20161210
winlogbeat 7.15.1
winscp 6.3.3
wireguard 0.5.3
wireshark 4.2.4
yubico-authenticator 6.4.0
yubikey-manager 1.2.6
yubikey-personalization-tool 3.1.25
yubikey-piv-manager 1.4.2.103

Output Log

https://gist.github.com/skapytek/fc1b563cc3b63129a106f6eb53628103

Additional Context

No response

skapytek commented 5 months ago

Any updates?

TheCakeIsNaOH commented 5 months ago

It looks like the chocolatey-core.extension may not be installed correctly, or something went wrong with loading it, because Get-AppInstallLocation is a part of that extension.

github-actions[bot] commented 3 months ago

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue will be closed in 14 days if it continues to be inactive.

github-actions[bot] commented 3 months ago

Dear contributor,

As this issue seems to have been inactive for quite some time now, it has been automatically closed. If you feel this is a valid issue, please feel free to re-open the issue if / when a pull request has been added. Thank you for your contribution.