Windows: MSI installer only adds neovim to PATH for the current user (regression in 0.9.0+) #27551
Labels
bug
issues reporting wrong behavior
distribution
packaging and distributing Nvim to users
platform:windows
Milestone
Problem
When installing neovim on Windows using t he MSI setup, versions 0.9.0 and newer only ever add the neovim program directory to the
PATH
environment variable of the current user who is running the installer, not everyone.This leads to neovim (
nvim
command) not being available to any user on the computer except one.This appears to be a regression from the following PR: #22856
which was soon after partially, but not fully, reverted in 95fe166
The problem is that the "System" attribute in the WiX "Environment" block remains changed to "no":
WiX Docs v3: https://wixtoolset.org/docs/v3/xsd/wix/environment/
WiX Docs v4: https://wixtoolset.org/docs/schema/wxs/environment/#attributes
Installing neovim 0.8.3 using the MSI installer, everything works as expected
Steps to reproduce
curl.exe -L "https://github.com/neovim/neovim/releases/download/v0.9.5/nvim-win64.msi" -o "nvim095-win64.msi"
cmd.exe /D /C start "" /WAIT /B msiexec.exe /i "nvim095-win64.msi" /qn ALLUSERS=1
powershell.exe -noprofile -c "[environment]::GetEnvironmentVariable('PATH', 'machine') -split ';'"
powershell.exe -noprofile -c "[environment]::GetEnvironmentVariable('PATH', 'user') -split ';'"
Expected behavior
Neovim / the
nvim
command should be available to all users after Neovim has been installed, like it was before v0.9.0.Neovim version (nvim -v)
NVIM v0.9.5
Vim (not Nvim) behaves the same?
Operating system/version
Windows Server 2022 Build 10.0.20348.2322
Terminal name/version
Microsoft Conhost 10.0.20348.2322
$TERM environment variable
Installation
MSI
The text was updated successfully, but these errors were encountered: