'How to install Solana on Windows?

I ran:

curl https://release.solana.com/v1.8.3/solana-install-init-x86_64-pc-windows-msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs

In my Windows command prompt and it showed up like this: Command Prompt

It seemed like it installed - so then I did solana --version and this is what happened:

'solana' is not recognized as an internal or external command, operable program or batch file.

I ran solana --version in Powershell, Git Bash, VS Code Terminal, and Command Prompt and it gives the same output.

How do I install Solana?

Thank you!



Solution 1:[1]

you can try :

More details on:https://docs.solana.com/cli/install-solana-cli-tools

step1:

curl https://release.solana.com/v1.8.3/solana-install-init-x86_64-pc-windows- 
msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs

step2:

C:\solana-install-tmp\solana-install-init.exe v1.8.3

Note: you have to open a command prompt as administrator

Solution 2:[2]

I had the same problem.

I tried a lot of things, git bash, cmd, everything were in administrator, however I couldn't.

But I got it, I tried with another versions (v1.8.5 , v1.9.5, v1.10.5)

curl https://release.solana.com/v1.9.5/solana-install-init-x86_64-pc-windows- msvc.exe --output C:\solana-install-tmp\solana-install-init.exe --create-dirs

My problem was solve when I tried with (v1.9.5)

Solution 3:[3]

C:\solana-install-tmp\solana-install-init.exe v1.8.6

Install is up to date. 1.8.6 is the latest compatible release

The HKEY_CURRENT_USER/Environment/PATH registry key has been modified to include:
  C:\Users\Krogf\.local\share\solana\install\active_release\bin

Future applications will automatically have the correct environment, but you may need to restart your current shell.

Press the Enter key to continue.

Solution 4:[4]

you need to make sure you are running as admin I ran into the same issue

Solution 5:[5]

You did step 1 of 2 to install Solana - right now you have the directory of files copied,

Run C:\solana-install-tmp\solana-install-init.exe v1.8.3 to actually install. Then make sure that either PATH is auto-updated or copy the generated PATH and update it manually.

CLOSE the CMD right after and relaunch. THEN try Solana --version.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 edson98lg
Solution 3 Geet Kalani
Solution 4 Rigoberto Felix
Solution 5 ouflak