|
1 | 1 | # Scoop (un)installer
|
2 | 2 |
|
3 |
| -Installation |
4 |
| ------------- |
| 3 | +## Installation |
5 | 4 |
|
6 |
| -**Prerequisites:** |
| 5 | +### Prerequisites |
7 | 6 |
|
8 | 7 | - Windows 7 SP1+ / Windows Server 2008+, Windows 10 recommended
|
9 | 8 | - [PowerShell 5](https://aka.ms/wmf5download) or later, [PowerShell Core](https://github.com/PowerShell/PowerShell) included
|
10 | 9 | - [.NET Framework 4.5](https://microsoft.com/net/download) or later
|
11 | 10 | - PowerShell execution policy must be enabled, e.g. `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`
|
12 | 11 |
|
13 |
| -**Typical Installation** |
| 12 | +### Typical Installation |
14 | 13 |
|
15 |
| -Run this command from your PowerShell to install scoop with default configuration, |
16 |
| -scoop will be install to `C:\Users\<user>\scoop`. |
| 14 | +Run this command from a **non-admin** PowerShell to install scoop with default configuration, |
| 15 | +scoop will be install to `C:\Users\<YOUR USERNAME>\scoop`. |
17 | 16 |
|
18 | 17 | ```powershell
|
19 | 18 | iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | iex
|
20 | 19 | ```
|
21 | 20 |
|
22 |
| -**Advanced Installation** |
| 21 | +### Advanced Installation |
23 | 22 |
|
24 |
| -If you want to have an advanced installation, You can download the installer and manually execute it with parameters. |
| 23 | +If you want to have an advanced installation. You can download the installer and manually execute it with parameters. |
25 | 24 |
|
26 | 25 | ```powershell
|
27 | 26 | iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' -outfile 'install.ps1'
|
@@ -49,7 +48,14 @@ $env:SCOOP_GLOBAL='F:\GlobalScoopApps'
|
49 | 48 | iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | iex
|
50 | 49 | ```
|
51 | 50 |
|
52 |
| -**Silent Installation** |
| 51 | +**For Admin:** Installation under the administrator console has been disabled by default for security reason. 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: |
| 52 | + |
| 53 | +```powershell |
| 54 | +iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' -outfile 'install.ps1' |
| 55 | +.\install.ps1 -RunAsAdmin [-OtherParameters ...] |
| 56 | +``` |
| 57 | + |
| 58 | +### Silent Installation |
53 | 59 |
|
54 | 60 | 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.
|
55 | 61 |
|
|
0 commit comments