{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/613","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/613/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/613/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/613/events","html_url":"https://github.com/commercialhaskell/stack/issues/613","id":95532106,"number":613,"title":"Windows installer","user":{"login":"conklech","id":573035,"avatar_url":"https://avatars.githubusercontent.com/u/573035?v=3","gravatar_id":"","url":"https://api.github.com/users/conklech","html_url":"https://github.com/conklech","followers_url":"https://api.github.com/users/conklech/followers","following_url":"https://api.github.com/users/conklech/following{/other_user}","gists_url":"https://api.github.com/users/conklech/gists{/gist_id}","starred_url":"https://api.github.com/users/conklech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conklech/subscriptions","organizations_url":"https://api.github.com/users/conklech/orgs","repos_url":"https://api.github.com/users/conklech/repos","events_url":"https://api.github.com/users/conklech/events{/privacy}","received_events_url":"https://api.github.com/users/conklech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-16T21:18:00Z","updated_at":"2015-07-17T19:27:56Z","closed_at":null,"body":"I've made a simple Windows installer using the `nsis` package. The source is available at [conklech/stack-installer](https://github.com/conklech/stack-installer), and I've made a preliminary [binary release](https://github.com/conklech/stack-installer/releases/tag/0.0.1) packaging 32-bit stack version 0.1.2.0. I've tested it on my Windows 8.1 machine, but that's about it.\r\n\r\nTo make an actual installer from the source code, you need to compile and run the Haskell program, which will generate an NSIS script that must in turn be compiled. I used the unicode NSIS compiler available at http://www.scratchpaper.com/. If using a non-unicode version, be sure to use a \"long strings\" build to avoid corrupting the user's %PATH%. The `.nsi` script expects stack.exe to be in the same directory.\r\n\r\nIf it's useful, I'd prefer that it get merged into the stack or commercialhaskell project. I can't commit to maintaining it or making updated builds. Because stack is self-upgrading, having a cutting-edge installer is helpful but not critical.\r\n\r\nThe main shortcoming at the moment is related to #133: the uninstaller does *not* remove cached build artifacts or compilers installed by stack. (This makes the uninstaller slightly pointless; its main function is to restore the user %PATH%.) I think that functionality should be built into `stack`; perhaps the installer can optionally run `stack rm`."},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/122385137","html_url":"https://github.com/commercialhaskell/stack/issues/613#issuecomment-122385137","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/613","id":122385137,"user":{"login":"conklech","id":573035,"avatar_url":"https://avatars.githubusercontent.com/u/573035?v=3","gravatar_id":"","url":"https://api.github.com/users/conklech","html_url":"https://github.com/conklech","followers_url":"https://api.github.com/users/conklech/followers","following_url":"https://api.github.com/users/conklech/following{/other_user}","gists_url":"https://api.github.com/users/conklech/gists{/gist_id}","starred_url":"https://api.github.com/users/conklech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/conklech/subscriptions","organizations_url":"https://api.github.com/users/conklech/orgs","repos_url":"https://api.github.com/users/conklech/repos","events_url":"https://api.github.com/users/conklech/events{/privacy}","received_events_url":"https://api.github.com/users/conklech/received_events","type":"User","site_admin":false},"created_at":"2015-07-17T19:27:56Z","updated_at":"2015-07-17T19:27:56Z","body":"I've pushed an update to include uninstaller options to delete `%APPDATA%\\stack` and `%LOCALAPPDATA\\Programs\\stack`. I've not tested and I'm not 100% convinced it's safe, so I haven't updated the binary installer."}}