I’m quit new to Clojure and curious about the question, what would be the ‘right’ or preferred way to install clojure-tools (aka clojure and clj commands) on Windows?
Kindly awaiting pointers, suggestions etc.
Btw. I did already some research with the following outcome:
it looks like, there at at least 2 options to install clojure-tools in Windows PowerShell
I use Windows with WSL2 (and Ubuntu) for all my Clojure development on two machines. A big benefit is that pretty much all the books and tutorials assume macOS and/or Linux so everything you read will just work as written. Powershell/cmd have weird quoting issues so command-lines from books and tutorials often don’t work as written – you have to learn to adjust quotes manually: see the caveats at Clojure - Clojure CLI Reference.
I use VS Code on Windows with the WSL remote extension. That makes your Linux WSL2 system “seem” local, even tho’ all your files are on Linux and all your Clojure processes, REPLs etc, run on Linux.
FWIW, I also have clojure installed on PS/cmd via the MSI installer but pretty much never use it, because so many of my projects assume Linux shell environments, so I nearly always work on Linux, and interact via VS Code from Windows.
For installing Clojure on Windows, both methods you’ve mentioned are valid, but the recommended approach would typically be the MSI installer (option 2) since it’s officially pointed out in the Clojure install guide. The MSI simplifies the process by automatically setting up the necessary environment variables.
That said, if you’re more comfortable with PowerShell, and Power BI Architecture, the win-install.ps1 script (option 1) works fine too. Neil and WSL are also great options, especially if you’re integrating with a Linux-like environment.
Go with what fits your workflow best, but the MSI installer seems to be the preferred route!