{"action":"created","issue":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/647","labels_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/647/comments","events_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/647/events","html_url":"https://github.com/chocolatey/chocolatey/issues/647","id":52609582,"number":647,"title":"chocolatey install.ps1 assumes that %USERPROFILE% and $env:TEMP are predefined","user":{"login":"lonniev","id":2193384,"avatar_url":"https://avatars.githubusercontent.com/u/2193384?v=3","gravatar_id":"","url":"https://api.github.com/users/lonniev","html_url":"https://github.com/lonniev","followers_url":"https://api.github.com/users/lonniev/followers","following_url":"https://api.github.com/users/lonniev/following{/other_user}","gists_url":"https://api.github.com/users/lonniev/gists{/gist_id}","starred_url":"https://api.github.com/users/lonniev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lonniev/subscriptions","organizations_url":"https://api.github.com/users/lonniev/orgs","repos_url":"https://api.github.com/users/lonniev/repos","events_url":"https://api.github.com/users/lonniev/events{/privacy}","received_events_url":"https://api.github.com/users/lonniev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chocolatey/chocolatey/labels/2+-+Working","name":"2 - Working","color":"CCCCCC"},{"url":"https://api.github.com/repos/chocolatey/chocolatey/labels/v0.9.8.29","name":"v0.9.8.29","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-12-21T23:22:47Z","updated_at":"2015-01-02T20:22:29Z","closed_at":"2015-01-02T18:39:27Z","body":"The install.ps1 at chocolatey.org assumes that it can safely create a temporary temp folder using Join-Path and $env:TEMP. However, that environment variable may be unset and the directory may not exist until the current user has logged into the system. (Packer uses a VM with a bash shell and the current working user when chocolatey install.ps1 is executed has yet to perform a Windows login.)\r\n\r\nBetter: either test for the existence of any chosen base directory (e.g. C:\\Windows\\temp) or simply create one at the root of the filesystem and delete it when finished."},"comment":{"url":"https://api.github.com/repos/chocolatey/chocolatey/issues/comments/68558857","html_url":"https://github.com/chocolatey/chocolatey/issues/647#issuecomment-68558857","issue_url":"https://api.github.com/repos/chocolatey/chocolatey/issues/647","id":68558857,"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-02T20:22:29Z","updated_at":"2015-01-02T20:22:29Z","body":"Some of this may need to carry over to chocolatey.org where the download and install script are located."}}