Comments (10)
Please try #13
from install.
Could you tell me how to test it? 😂 I downloaded the new script and tried to run it but failed because it is not signed. I changed policy to bypass and get "ps requires remotesigned to install scoop".
from install.
You need to change the policy to remotesigned (not bypass): Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
. https://github.com/ScoopInstaller/Install#prerequisites
https://github.com/ScoopInstaller/Install/blob/master/install.ps1#L140
from install.
Failed because it is not signed...
PS D:\Downloads> Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
执行策略更改
执行策略可帮助你防止执行不信任的脚本。更改执行策略可能会产生安全风险,如 https:/go.microsoft.com/fwlink/?LinkID=135170
中的 about_Execution_Policies 帮助主题所述。是否要更改执行策略?
[Y] 是(Y) [A] 全是(A) [N] 否(N) [L] 全否(L) [S] 暂停(S) [?] 帮助 (默认值为“N”): y
PS D:\Downloads> .\install.ps1 -ScoopDir 'D:\test'
.\install.ps1 : 无法加载文件 D:\Downloads\install.ps1。未对文件 D:\Downloads\install.ps1 进行数字签名。无法在当前系统上
运行该脚本。有关运行脚本和设置执行策略的详细信息,请参阅 https:/go.microsoft.com/fwlink/?LinkID=135170 中的 about_Execu
tion_Policies。
所在位置 行:1 字符: 1
+ .\install.ps1 -ScoopDir 'D:\test'
+ ~~~~~~~~~~~~~
+ CategoryInfo : SecurityError: (:) [],PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
from install.
How about entering A
when it asks for the answer.
from install.
Still not work and got the same error...
from install.
I have no idea about the policy issue you're encountering...
Desktop Install (master *)
$ Get-ExecutionPolicy
RemoteSigned
Desktop Install (master *)
$ .\install.ps1 -ScoopDir "D:\test"
Initializing...
Scoop is already installed. Run 'scoop update' to get the latest version.
Abort.
from install.
It works well 😂 I found if I download it from browser it can't work but if I download it in powershell it works well.
from install.
So does the fix work for you?
from install.
Yeah, it works for me, thanks!
from install.
Related Issues (20)
- Check target path before installation HOT 5
- sei358
- [Bug] Cannot install Scoop HOT 2
- Check $env:PATH before installation
- Error installing git HOT 2
- Help
- Option for no side effects like updating the system path HOT 1
- Don't abort if already installed
- Abort when failing installation on CI
- Create `.gitignore` file in `scoop` directory
- Add support for other sources of Scoop app and main bucket HOT 2
- https://get.scoop.sh/ is down HOT 1
- Show single quotes in instructions while passing path arguments HOT 3
- [Bug] Installation Failure HOT 2
- [Bug] install.ps1 fails via ssh/headless, windows server 2022, ansible HOT 3
- installation *seems* to be ok, but many things don't work
- Install fail: Operation did not complete successfully because the file contains a virus or potentially unwanted software. HOT 2
- Failed on installing Scoop HOT 1
- Migrating from Shovel to Scoop HOT 1
- Error when trying to verify hash, when installing an older version on a non-ARM device HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from install.