From e243bed18f4bdb2d60eac6e7b35ea3e6fa886f38 Mon Sep 17 00:00:00 2001 From: tao <2471314@gmail.com> Date: Wed, 15 Apr 2026 00:22:03 +0800 Subject: [PATCH] docs: Windows nightly installation script #39053 Problem: On Windows, when installing nightly build via winget, often encounter "Installer hash does not match". Solution: use `Invoke-WebRequest` to download the msi package, then install it via `msiexec`. --- INSTALL.md | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index e213e98978..b55c8fbf9b 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -53,8 +53,27 @@ Several Neovim GUIs are available from scoop (extras): [scoop.sh/#/apps?q=neovim ### Pre-built archives -0. If you are missing `VCRUNTIME170.dll`, install the [Visual Studio C++ redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) (choose x86_64 or x86 depending on your system). +If you are missing `VCRUNTIME170.dll`, install the [Visual Studio C++ redistributable](https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist) (choose x86_64 or x86 depending on your system). - Hint: if you have scoop, try: `scoop install vcredist` + +**MSI** + +For x86_64: +```pwsh +iwr -Uri "https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.msi" -OutFile nvim-win64.msi +msiexec /i nvim-win64.msi /passive +rm nvim-win64.msi +``` + +For arm64: +```pwsh +iwr -Uri "https://github.com/neovim/neovim/releases/download/nightly/nvim-win-arm64.msi" -OutFile nvim-win-arm64.msi +msiexec /i nvim-win-arm64.msi /passive +rm nvim-win-arm64.msi +``` + +**Zip** + 1. Choose a package (**nvim-winXX.zip**) from the [releases page](https://github.com/neovim/neovim/releases). 2. Unzip the package. Any location is fine, administrator privileges are _not_ required. - `$VIMRUNTIME` will be set to that location automatically. @@ -62,7 +81,7 @@ Several Neovim GUIs are available from scoop (extras): [scoop.sh/#/apps?q=neovim **Optional** steps: -- Add the `bin` folder (e.g. `C:\Program Files\nvim\bin`) to your PATH. +- If Installing from a zip package, add the `bin` folder (e.g. `C:\Program Files\nvim\bin`) to your PATH. - This makes it easy to run `nvim` from anywhere. - If `:set spell` does not work, create the `%LOCALAPPDATA%/nvim-data/site/spell` folder. You can then copy your spell files over (for English, located