Skip to content

Commit 5cb6485

Browse files
author
Chawye Hsu
authored
docs: Update installation instruction (ScoopInstaller#11)
1 parent b6705be commit 5cb6485

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
# Scoop (un)installer
22

3-
Installation
4-
------------
3+
## Installation
54

6-
**Prerequisites:**
5+
### Prerequisites
76

87
- Windows 7 SP1+ / Windows Server 2008+, Windows 10 recommended
98
- [PowerShell 5](https://aka.ms/wmf5download) or later, [PowerShell Core](https://github.com/PowerShell/PowerShell) included
109
- [.NET Framework 4.5](https://microsoft.com/net/download) or later
1110
- PowerShell execution policy must be enabled, e.g. `Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser`
1211

13-
**Typical Installation**
12+
### Typical Installation
1413

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`.
1716

1817
```powershell
1918
iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | iex
2019
```
2120

22-
**Advanced Installation**
21+
### Advanced Installation
2322

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.
2524

2625
```powershell
2726
iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' -outfile 'install.ps1'
@@ -49,7 +48,14 @@ $env:SCOOP_GLOBAL='F:\GlobalScoopApps'
4948
iwr -useb 'https://raw.githubusercontent.com/scoopinstaller/install/master/install.ps1' | iex
5049
```
5150

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
5359

5460
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.
5561

0 commit comments

Comments
 (0)