ScoopInstaller / Scoop

A command-line installer for Windows.
https://scoop.sh
Other
20.95k stars 1.4k forks source link

Pointing system variable SCOOP to "C:\ProgramData\scoop" treats all installed apps as both local and global #4424

Open cgassmann opened 3 years ago

cgassmann commented 3 years ago

In order to use scoop truly system-wide, I've pointed system variable SCOOP to C:\ProgramData\scoop. It now treats all installed apps as both local and global:

> scoop list
Installed apps:

  7zip 19.00 [main]
  7zip 19.00 *global* [main]
  aria2 1.35.0-1 *global* [main]
  aria2 1.35.0-1 [main]
...
> sudo scoop update * -g
Updating Scoop...
...
Scoop was updated successfully!
sumo: 5.13.0.497 -> 5.13.1.498
sumo: 5.13.0.497 -> 5.13.1.498 (global)
Updating 2 outdated apps:
Updating 'sumo' (5.13.0.497 -> 5.13.1.498)
...
'sumo' (5.13.1.498) was installed successfully!
WARN  The latest version of 'sumo' (5.13.1.498) is already installed.

I'm not detecting major negative impact so far - it seems mostly cosmetic.

eggbean commented 8 months ago

I've been doing this for a while and it works fine, apart from the double listing annoyance.

I've made this PowerShell script to automate installation for all users. Working fine for me, but please tell me if anyone finds any problems:

https://gist.github.com/eggbean/c6074011d92b79090dfb40381265080f