{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/651","labels_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/651/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/651/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/651/events","html_url":"https://github.com/chocolatey/chocolatey/pull/651","id":53336077,"number":651,"title":"Initial support for .run packages. ","user":{"login":"andulv","id":5376458,"avatar_url":"https://avatars.githubusercontent.com/u/5376458?v=3","gravatar_id":"","url":"https://api.github.com/users/andulv","html_url":"https://github.com/andulv","followers_url":"https://api.github.com/users/andulv/followers","following_url":"https://api.github.com/users/andulv/following{/other_user}","gists_url":"https://api.github.com/users/andulv/gists{/gist_id}","starred_url":"https://api.github.com/users/andulv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andulv/subscriptions","organizations_url":"https://api.github.com/users/andulv/orgs","repos_url":"https://api.github.com/users/andulv/repos","events_url":"https://api.github.com/users/andulv/events{/privacy}","received_events_url":"https://api.github.com/users/andulv/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chocolatey/chocolatey/labels/Not+Implementing","name":"Not Implementing","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2015-01-04T13:15:32Z","updated_at":"2015-01-04T21:54:51Z","closed_at":"2015-01-04T15:58:35Z","pull_request":{"url":"https://api.github.com/repos/chocolatey/chocolatey/pulls/651","html_url":"https://github.com/chocolatey/chocolatey/pull/651","diff_url":"https://github.com/chocolatey/chocolatey/pull/651.diff","patch_url":"https://github.com/chocolatey/chocolatey/pull/651.patch"},"body":".run Packages ara packages that are not \"installed\", effectively turning them into script-packages. The packages are not installed to lib\\ folder, but in every other aspects they are identical to ordinary packages.\r\n\r\n**When a package has the extension '.run' this happens upon install:**\r\n  1. The package is downloaded to lib-run\r\n  2. tools\\chocolateyinstall.ps1 script is executed\r\n  3. Package is removed from lib-run\r\n\r\nOne of the main advantages of .run packages as part of Chocolatey is dependencies. .run packages can depend on ordinary packages (or other .run packages). Ordinary packages can depend on .run packages.\r\n\r\nScenario 1 - *AdvancedScriptPackage.run*\r\n* Depends on *scriptcs*. \r\n* Includes AdvancedScript.cs in tools folder. \r\n* chocolateyinstall.ps1 does nothing but invoke 'scriptcs AdvancedScript.cs'.\r\n\r\nScenario 2 - *CustomBusinessApplication* (ordinary package) \r\n* Depends on *EnsureComputerMeetsCorporateStandards.run*\r\n* Depends on *CleanUpOldLegacyApplication.run*\r\n\r\nI have done basic testing, and the changes seems to be working as intended.\r\n\r\nIf necessary I can do more testing and try to write some unit tests."},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/comments/68651008","html_url":"https://github.com/chocolatey/chocolatey/pull/651#issuecomment-68651008","issue_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/651","id":68651008,"user":{"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},"created_at":"2015-01-04T21:54:51Z","updated_at":"2015-01-04T21:54:51Z","body":"Also, I wouldn't necessarily look at the community feed (chocolatey.org) as the end all be all of how most businesses use choco. The simple fact is that many, many of them NEVER hit the community feed. They are doing things somewhat differently with the packages they create, including binaries much more often and setting up configurations (so they can replace GPO). Sometimes folks couple those configurations with a configuration management tool like Puppet (config management means any change to the configuration of a computer, including settings and software). "}}