{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/choco/issues/344","labels_url":"https://api.github.com/repos/chocolatey/choco/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/choco/issues/344/comments","events_url":"https://api.github.com/repos/chocolatey/choco/issues/344/events","html_url":"https://github.com/chocolatey/choco/issues/344","id":91504601,"number":344,"title":"Disable desktop shortcuts and explorer context menu with package preferences","user":{"login":"christianrondeau","id":251037,"avatar_url":"https://avatars.githubusercontent.com/u/251037?v=3","gravatar_id":"","url":"https://api.github.com/users/christianrondeau","html_url":"https://github.com/christianrondeau","followers_url":"https://api.github.com/users/christianrondeau/followers","following_url":"https://api.github.com/users/christianrondeau/following{/other_user}","gists_url":"https://api.github.com/users/christianrondeau/gists{/gist_id}","starred_url":"https://api.github.com/users/christianrondeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianrondeau/subscriptions","organizations_url":"https://api.github.com/users/christianrondeau/orgs","repos_url":"https://api.github.com/users/christianrondeau/repos","events_url":"https://api.github.com/users/christianrondeau/events{/privacy}","received_events_url":"https://api.github.com/users/christianrondeau/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chocolatey/choco/labels/0%20-%20Backlog","name":"0 - Backlog","color":"CCCCCC"},{"url":"https://api.github.com/repos/chocolatey/choco/labels/Enhancement","name":"Enhancement","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/chocolatey/choco/milestones/15","html_url":"https://github.com/chocolatey/choco/milestones/0.9.10.x","labels_url":"https://api.github.com/repos/chocolatey/choco/milestones/15/labels","id":1121599,"number":15,"title":"0.9.10.x","description":"","creator":{"login":"ferventcoder","id":63502,"avatar_url":"https://avatars.githubusercontent.com/u/63502?v=3","gravatar_id":"","url":"https://api.github.com/users/ferventcoder","html_url":"https://github.com/ferventcoder","followers_url":"https://api.github.com/users/ferventcoder/followers","following_url":"https://api.github.com/users/ferventcoder/following{/other_user}","gists_url":"https://api.github.com/users/ferventcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/ferventcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ferventcoder/subscriptions","organizations_url":"https://api.github.com/users/ferventcoder/orgs","repos_url":"https://api.github.com/users/ferventcoder/repos","events_url":"https://api.github.com/users/ferventcoder/events{/privacy}","received_events_url":"https://api.github.com/users/ferventcoder/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":0,"state":"open","created_at":"2015-05-20T17:09:50Z","updated_at":"2015-06-30T03:39:39Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-06-27T19:24:23Z","updated_at":"2015-07-03T01:17:51Z","closed_at":null,"body":"Use cases:\r\n\r\n* When I install GitExtensions and Git. I *want* context menu for GitExtensions, but I *don't want* context menu for Git (a.k.a. \"cheetah\")\r\n* I don't want VLC's context menu\r\n* I want 7zip context menu\r\n* I never want desktop shortcuts, but I do want Start Menu shortcuts\r\n\r\nHere's the implementation I suggest:\r\n\r\n* The name of this feature is \"Preferences\"\r\n* The name of each \"Preference\" is always positive (e.g. `explorercontextmenu`)\r\n* A global preference can be set \"by default\" for all packages: `choco preferences disable desktopshortcuts explorercontextmenu`\r\n  *. The settings would be saved in \"C:\\ProgramData\\chocolatey\\config\\chocolatey.config\" under a `<preferences>` section\r\n* Preferences can be set by package by prefixing `-no`: `choco install mypackage -no-desktopshortcuts -no-contextmenu`\r\n  * When running choco upgrade, the last preferences will be used (unless preferences are provided again)\r\n  * A per-package preference always takes precedence over the global preferences\r\n  * When providing preferences to `upgrade`, they overwrite the previous package preference\r\n  * The setting would be saved in \"C:\\ProgramData\\chocolatey\\lib-cfg\\package-name\\lib.config\"; it would only contain a `<preferences>` section for now\r\n* When a preference is specified, the package maintainers should:\r\n  * Provide the corresponding argument to the installer command line, or;\r\n  * Provide a PowerShell script that undoes whatever the installer did, or;\r\n  * Ignore the preference, and chocolatey would report that this package does not support that preference\r\n* Each package would be responsible for documenting what preferences they support\r\n  * The Chocolatey guide would strongly suggest using only preferences from a global and standardized list to avoid variations on preferences naming\r\n  * I suggest starting with `explorercontextmenu` and `desktopshortcuts`, as those are the two obvious and most visible contenders\r\n\r\nRead about the whole discussion here: https://groups.google.com/forum/#!topic/chocolatey/wQmapfXr-rs"},"comment":{"url":"https://api.github.com/repos/chocolatey/choco/issues/comments/118206603","html_url":"https://github.com/chocolatey/choco/issues/344#issuecomment-118206603","issue_url":"https://api.github.com/repos/chocolatey/choco/issues/344","id":118206603,"user":{"login":"christianrondeau","id":251037,"avatar_url":"https://avatars.githubusercontent.com/u/251037?v=3","gravatar_id":"","url":"https://api.github.com/users/christianrondeau","html_url":"https://github.com/christianrondeau","followers_url":"https://api.github.com/users/christianrondeau/followers","following_url":"https://api.github.com/users/christianrondeau/following{/other_user}","gists_url":"https://api.github.com/users/christianrondeau/gists{/gist_id}","starred_url":"https://api.github.com/users/christianrondeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianrondeau/subscriptions","organizations_url":"https://api.github.com/users/christianrondeau/orgs","repos_url":"https://api.github.com/users/christianrondeau/repos","events_url":"https://api.github.com/users/christianrondeau/events{/privacy}","received_events_url":"https://api.github.com/users/christianrondeau/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T01:17:51Z","updated_at":"2015-07-03T01:17:51Z","body":"Thanks @pyhedgehog - that's exactly what I'd like to see. I'll bring that back in the discussion at https://groups.google.com/forum/#!topic/chocolatey/wQmapfXr-rs and potentially update that issue"}}