ChocolateyGUI
ChocolateyGUI copied to clipboard
unable to pass package parameters - 'May not be able to find 'chocolateyguicli'
trafficstars
What You Are Seeing?
Package installation fails when passing package parameters to chocolateygui.
- it looks as if the shims to
ChocolateyGuiCliandChocolateyGuiare not found, even thoughUpdate-SessionEnvironmentis invoked.
What is Expected?
It should be possible to pass package parameters :smile:
How Did You Get This To Happen? (Steps to Reproduce)
> choco upgrade chocolateygui -y -f --params "'/Global /ShowConsoleOutput /ShowAggregatedSourceView /UseDelayedSearch'"
System Details
- OS Build: 10.0.17763.0
- Windows PowerShell version: 5.1.17763.2268
- Chocolatey version: 1.0.1
Output Log
> choco upgrade chocolateygui -y -f --params "'/Global /ShowConsoleOutput /ShowAggregatedSourceView /UseDelayedSearch'"
Chocolatey v1.0.1 Business
Upgrading the following packages:
chocolateygui
By upgrading, you accept licenses for the packages.
chocolateygui v1.0.0 is the latest version available based on your source(s).
chocolateygui v1.0.0 (forced)
chocolateygui package files upgrade completed. Performing other installation steps.
Installing ChocolateyGUI.msi...
ChocolateyGUI.msi has been installed.
Added C:\ProgramData\chocolatey\bin\chocolateygui.exe shim pointed to 'c:\program files (x86)\chocolatey gui\chocolateygui.exe'.
Added C:\ProgramData\chocolatey\bin\chocolateyguicli.exe shim pointed to 'c:\program files (x86)\chocolatey gui\chocolateyguicli.exe'.
Enabling ShowConsoleOutput globally...
May not be able to find 'chocolateyguicli'. Please use full path for executables.
ERROR:
Running ['C:\ProgramData\chocolatey\bin\chocolateyguicli.exe' feature enable --name=ShowConsoleOutput --global] was not successful.
Exit code was '-1' See log for possible error messages.
The upgrade of chocolateygui was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\chocolateygui\tools\chocolateyInstall.ps1'.
See log for details.
Update: cannot reproduce this issue anymore :shrug:
@mwallner I am happy to leave this issue open for a bit to see if anyone else runs into it. If you find a set of reproducible steps for replicating the problem, I am happy to look at this again, but for now, I can't replicate this, and I have tried various combinations of Chocolatey CLI and Chocolatey GUI versions.