GithubHelp home page GithubHelp logo

Comments (10)

chawyehsu avatar chawyehsu commented on July 29, 2024

Please try #13

from install.

linsui avatar linsui commented on July 29, 2024

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.

chawyehsu avatar chawyehsu commented on July 29, 2024

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.

linsui avatar linsui commented on July 29, 2024

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.

chawyehsu avatar chawyehsu commented on July 29, 2024

How about entering A when it asks for the answer.

from install.

linsui avatar linsui commented on July 29, 2024

Still not work and got the same error...

from install.

chawyehsu avatar chawyehsu commented on July 29, 2024

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.

linsui avatar linsui commented on July 29, 2024

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.

chawyehsu avatar chawyehsu commented on July 29, 2024

So does the fix work for you?

from install.

linsui avatar linsui commented on July 29, 2024

Yeah, it works for me, thanks!

from install.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.