Where to install Stack on Windows? (C:\stack_root or APPDATA?)

440 views
Skip to first unread message

Béla Juhász

unread,
Nov 9, 2015, 7:17:25 AM11/9/15
to haskell-stack
Hi!

After reading the Installation guide[1], I wasn't really sure where to install Stack.

According to one part of the guide[2], I should install it into "%APPDATA%\local\bin", but another part[3] says that I should put it into "C:\stack_root\" (and then set the STACK_ROOT environment variable accordingly).

Could you please tell me, what destination folder should I choose for the install location when running the stack-*-windows-i386-installer.exe?


Thank you in advance,
Bela



Emanuel Borsboom

unread,
Nov 9, 2015, 7:10:21 PM11/9/15
to Béla Juhász, haskell-stack
The `STACK_ROOT` location is where Stack puts its data, not where the `stack` executable itself should be installed. The executable is best installed in `%APPDATA%\local\bin`, since that's the default location where `stack install` puts executables it builds, and means `stack upgrade` will work.

--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stac...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/0db5a304-1557-4a2d-90f6-0d0d767942ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Béla Juhász

unread,
Nov 10, 2015, 9:21:43 AM11/10/15
to haskell-stack
Hi Emanuel,

thank you for your answer!


The `STACK_ROOT` location is where Stack puts its data, not where the `stack` executable itself should be installed. The executable is best installed in `%APPDATA%\local\bin`, since that's the default location where `stack install` puts executables it builds, and means `stack upgrade` will work.

Great! I just moved the stack.exe and uninstall-stack.exe into %APPDATA%\local\bin.

Thanks again,
Bela
 
Reply all
Reply to author
Forward
0 new messages