Skip to content

Windows installer #613

@conklech

Description

@conklech

I've made a simple Windows installer using the nsis package. The source is available at conklech/stack-installer, and I've made a preliminary binary release packaging 32-bit stack version 0.1.2.0. I've tested it on my Windows 8.1 machine, but that's about it.

To 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.

If 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.

The 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions