Skip to content
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

Error while running chocolateyInstall.ps1 #1047

Open
6 tasks done
skapytek opened this issue May 6, 2024 · 1 comment
Open
6 tasks done

Error while running chocolateyInstall.ps1 #1047

skapytek opened this issue May 6, 2024 · 1 comment
Labels
Bug Issues where something has happened which was not expected or intended

Comments

@skapytek
Copy link

skapytek commented May 6, 2024

Checklist

  • I confirm there are no unresolved issues reported on the Chocolatey Status page.
  • I have verified this is the correct repository for opening this issue.
  • I have verified no other issues exist related to my problem.
  • I have verified this is not an issue for a specific package.
  • I have verified this issue is not security related.
  • I confirm I am using official, and not unofficial, or modified, Chocolatey products.

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 /l
v "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

  • Operating System: 10.0.22631.0
  • Windows PowerShell version: Name Value

PSVersion 5.1.22621.2506
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2506
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1

  • Chocolatey CLI Version: 2.2.2
  • Chocolatey Licensed Extension version: Chocolatey v2.2.2
    0 packages installed.
  • Chocolatey License type: free
  • Terminal/Emulator: cmd and powershell

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 skapytek added the Bug Issues where something has happened which was not expected or intended label May 6, 2024
@skapytek
Copy link
Author

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Issues where something has happened which was not expected or intended
Projects
None yet
Development

No branches or pull requests

1 participant