Provide installation examples that work from command prompt as well as PowerShell
When installing ChocolateyGui and passing package parameters on install as per the example on the package page, the parameters are not actually set for the package.
CLI used: cmd / run as admin
Choco: 0.10.15
ChocolateyGUI: 0.17.20
Command passed:
choco install chocolateygui --package-parameters="'/ShowConsoleOutput=$true /ShowAdditionalPackageInformation=$true'"
When opening the GUI once the command has finished and going to settings, the settings which were passed on the command-line on install have not been set.
Output log: https://gist.github.com/jrfnl/454a553a667b8510c2ee677e07f5f195
Line 776-777 show that the parameters are picked up correctly.
The actual problem is most likely related to the logs on lines 782-783:
2021-01-09 11:41:19,555 2308 [DEBUG] - Elevating permissions and running ["chocolateyguicli" feature disable --name=ShowConsoleOutput]. This may take a while, depending on the statements.
2021-01-09 11:41:19,555 2308 [WARN ] - WARNING: May not be able to find 'chocolateyguicli'. Please use full path for executables.
Since you are installing through cmd, you can not use $true (this is used in PowerShell to expand to True).
The lines you link to shows that the parameters are incorrect.
Try installing with:
choco install chocolateygui --package-parameters="'/ShowConsoleOutput=True /ShowAdditionalPackageInformation=True'"
@jrfnl we haven't heard back from you about this, so I am going to assume that the suggestion here worked for you. Let us know if you are still having problems.
@gep13 They did indeed and yes, I meant to still get back with a response, but never ending to-do lists etc etc.
Having said that, that doesn't take away from the fact that this issue highlights an underlying documentation issue.
The command as shown on the documentation page of the package does not work in all cases, so I'd like to suggest that an update to the documentation may be in order ?
@jrfnl sounds like a good idea.
@gep13 due to the change of not including the package parameters anymore in the description of the package, but instead of linking to the Chocolatey GUI page for them, this issue may perhaps be better served to update the documentation site example instead?
As the example has been removed from the Package description, I'll move this issue over to the Documentation repository as there is where we need to update the examples going forward.