• Stars
    star
    730
  • Rank 62,081 (Top 2 %)
  • Language
    PowerShell
  • License
    The Unlicense
  • Created almost 6 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

📥 Next-generation Scoop (un)installer

Scoop (un)installer

Installation

Prerequisites

PowerShell execution policy is required to be one of: Unrestricted, RemoteSigned or ByPass to execute the installer. For example:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

Typical Installation

Run this command from a non-admin PowerShell to install scoop with default configuration, scoop will be install to C:\Users\<YOUR USERNAME>\scoop.

irm get.scoop.sh | iex
# You can use proxies if you have network trouble in accessing GitHub, e.g.
irm get.scoop.sh -Proxy 'http://<ip:port>' | iex

Advanced Installation

If you want to have an advanced installation, you can download the installer and manually execute it with parameters.

irm get.scoop.sh -outfile 'install.ps1'

To see all configurable parameters of the installer.

.\install.ps1 -?

For example, you could install scoop to a custom directory, configure scoop to install global programs to a custom directory, and bypass system proxy during installation.

.\install.ps1 -ScoopDir 'D:\Applications\Scoop' -ScoopGlobalDir 'F:\GlobalScoopApps' -NoProxy

Or you can use the legacy method to configure custom directory by setting Environment Variables. (Not Recommended)

$env:SCOOP='D:\Applications\Scoop'
$env:SCOOP_GLOBAL='F:\GlobalScoopApps'
[Environment]::SetEnvironmentVariable('SCOOP_GLOBAL', $env:SCOOP_GLOBAL, 'Machine')
irm get.scoop.sh | iex

For Admin

Installation under the administrator console has been disabled by default for security considerations. If you know what you are doing and want to install Scoop as administrator. Please download the installer and manually execute it with the -RunAsAdmin parameter in an elevated console. Here is the example:

irm get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin [-OtherParameters ...]
# I don't care about other parameters and want a one-line command
iex "& {$(irm get.scoop.sh)} -RunAsAdmin"

Silent Installation

You can redirect all outputs to Out-Null or a log file to silence the installer. And you can use $LASTEXITCODE to check the installation result, it will be 0 when the installation success.

# Omit outputs
.\install.ps1 [-Parameters ...] | Out-Null
# Or collect logs
.\install.ps1 [-Parameters ...] > install.log
# Get result
$LASTEXITCODE

More Repositories

1

Scoop

A command-line installer for Windows.
PowerShell
20,993
star
2

Extras

📦 The Extras bucket for Scoop.
PowerShell
1,788
star
3

Main

📦 The default bucket for Scoop.
PowerShell
1,573
star
4

Java

📦 A bucket for Scoop, for Oracle Java, OpenJDK, Eclipse Temurin, IBM Semeru, Zulu, ojdkbuild, Amazon Corretto, BellSoft Liberica, SapMachine and Microsoft JDK.
PowerShell
257
star
5

Awesome

A curated list of awesome Scoop resources and more.
204
star
6

Versions

📦 A Scoop bucket for alternative versions of apps.
PowerShell
200
star
7

Nirsoft

📦 Bucket of almost all of the 280+ apps from Nirsoft.net. Migrated from MCOfficer/scoop-nirsoft with permission.
Python
99
star
8

BucketTemplate

Template Bucket for Scoop Installer
PowerShell
92
star
9

scoopinstaller.github.io

ScoopInstaller homepage and search engine
TypeScript
77
star
10

Shim

A Scoop helper program for shimming executables
C#
71
star
11

Nonportable

📦 Scoop bucket for non-portable applications.
PowerShell
63
star
12

PHP

📦 PHP Bucket for Scoop
PowerShell
40
star
13

GithubActions

Github Actions for Scoop buckets
PowerShell
24
star
14

Excavator

🕳️ This container runs the updating services for all scoop manifest repos (deprecated)
Dockerfile
24
star
15

Binary

🗄 Scoops mirror for binaries that are no longer available
PowerShell
17
star
16

GitCloner

A small helper script that clones a Git repository
PowerShell
16
star
17

Validator

A Scoop helper program for validating JSON files against a JSON Schema
C#
8
star
18

.github

Org-wide settings
4
star
19

scoopinstaller.github.io-indexer

Indexer to maintain Scoop applications index
C#
2
star
20

scoopinstaller-dev.github.io

Auto-generated development website from ScoopInstaller/scoopinstaller.github.io
HTML
1
star