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

Allow setting of Chocolatey GUI settings via Chocolatey package parameter #592

Closed
gep13 opened this issue May 25, 2018 · 10 comments
Closed
Assignees
Labels
Feature Issues that introduce new functionality to the project, instead of updating existing functionality
Milestone

Comments

@gep13
Copy link
Member

gep13 commented May 25, 2018

At the minute, it is possible to set a preference for whether Tile View is used or not via the Settings screen within Chocolatey GUI.

However, it should be possible to set this at installation time.

This will be done via a package parameter.

@gep13 gep13 added the Feature Issues that introduce new functionality to the project, instead of updating existing functionality label May 25, 2018
@ferventcoder ferventcoder added this to the 0.17.0 milestone May 25, 2018
@gep13 gep13 changed the title Allow setting of tile preference via Chocolatey package parameter Allow setting of Chocolatey GUI settings via Chocolatey package parameter Jun 18, 2018
@gep13
Copy link
Member Author

gep13 commented Jun 18, 2018

This will include all settings, i.e:

  • Show Console Output
  • Default to Tile View for Local Source
  • Default to Tile View for Remote Source
  • Use Delayed Search
  • Allow non-admin access to Settings (C4B)

@exportgoldman
Copy link

Awesume. I vote for this feature! Currently we are coping a blank db with the settings we want to each PC. Ugly!

@gep13
Copy link
Member Author

gep13 commented Jul 2, 2018

@exportgoldman agreed, the workaround that is suggested is far from ideal, we will update this issue once this is ready.

@gep13 gep13 self-assigned this Jul 11, 2018
gep13 added a commit to gep13/ChocolateyGUI that referenced this issue Jul 12, 2018
…tures from command line

- Added parsing of command line arguments using same mechanism as Chocolatey itself
- Created new custom attribute for adding description to Property value
- Extended AppConfiguration class using new attribute
- Changed project type to be Console Application rather than WPF Application
- The ability to have both console application and WPF came from here:
  https://blog.rsuter.com/write-application-can-act-console-application-wpf-gui-application/
- The following was consulted for accessing custom attribute:
  https://stackoverflow.com/a/695737/671491
- This was used for creating localized attribute:
  https://stackoverflow.com/questions/7398653/how-to-localize-a-property-description-in-c
@gep13
Copy link
Member Author

gep13 commented Jul 12, 2018

@exportgoldman I have just pushed a PR that starts to implement this functionality. Would you be in a position to take this for a spin to get some feedback on it?

gep13 added a commit that referenced this issue Jul 13, 2018
(GH-592) Ability to enable/disable Chocolatey GUI features from command line
@gep13
Copy link
Member Author

gep13 commented Jul 13, 2018

@exportgoldman The PR has now been merged, and it should now be possible to install the latest version from the MyGet feed in order to take this for a spin. There is still a small amount of work to be done to add Package Parameters to the Chocolatey GUI package so that they can be passed in at installation time, however, for now, once installed, you should be able to run the following commands:

chocolateygui feature -h - to get the help documentation for the command
chocolateygui feature list - to get the current status of all the Chocolatey GUI features
chocolateygui feature enable -n=<featureName> - to enable a given feature
chocolateygui feature disable -n=<featureName> to disable a given feature

Let me know if you have any questions.

@exportgoldman
Copy link

exportgoldman commented Jul 15, 2018 via email

@exportgoldman
Copy link

exportgoldman commented Jul 15, 2018 via email

@gep13
Copy link
Member Author

gep13 commented Jul 16, 2018

@exportgoldman sweet! Let me know if you have any questions.

gep13 added a commit that referenced this issue May 6, 2019
So that during installation, end user can make a decision about what
features are enabled/disabled in Chocolatey GUI, as well as set any
configuration of Chocolatey GUI.

Chocolatey dependency was changed to ensure Chocolatey version of
Get-PackageParameters is used.
@gep13
Copy link
Member Author

gep13 commented May 6, 2019

The ability to run an installation command similar to the following:

choco install chocolateygui --params="'/ShowConsoleOutput=$true /UseDelayedSearch=$false /OutputPackagesCacheDurationInMinutes=120'

has just been added to the Chocolatey GUI preview, and it will be shipped in the next release of Chocolatey GUI (0.17.0).

@gep13 gep13 closed this as completed May 6, 2019
@choco-bot
Copy link

🎉 This issue has been resolved in version 0.17.0 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Issues that introduce new functionality to the project, instead of updating existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants