-
-
Save pnsinha/76b65a6d87c7070c7e945988b70262b0 to your computer and use it in GitHub Desktop.
install scoop & choco
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ExecutionPolicy RemoteSigned -scope CurrentUser | |
$env:SCOOP='D:\prg\scoop' | |
[environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User') | |
$env:SCOOP_GLOBAL='D:\prg\sapps' | |
[environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine') | |
iwr -useb get.scoop.sh | iex | |
Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 | |
scoop install 7zip innounp dark wixtoolset sudo curl git | |
#sudo | |
Add-MpPreference -ExclusionPath 'D:\prg\sapps' | |
#sudo | |
Add-MpPreference -ExclusionPath 'D:\prg\scoop' | |
scoop update | |
scoop checkup | |
#scoop bucket add main | |
scoop bucket add extras | |
scoop bucket add versions | |
scoop bucket add nightlies | |
scoop bucket add nirsoft | |
scoop bucket add php | |
scoop bucket add nerd-fonts | |
scoop bucket add nonportable | |
scoop bucket add java | |
scoop bucket add games | |
scoop bucket add jetbrains | |
scoop update * | |
$env:ChocolateyInstall='D:\prg\Choco' | |
[Environment]::SetEnvironmentVariable("ChocolateyInstall", $ChocolateyInstall, "User") | |
[environment]::setEnvironmentVariable('ChocolateyInstall',$env:ChocolateyInstall,'Machine') | |
Set-ExecutionPolicy Bypass -Scope Process -Force; | |
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; | |
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) | |
choco feature enable -n allowGlobalConfirmation | |
choco upgrade chocolatey | |
choco install ruby.portable git.commandline visualstudiocode.portable notepadplusplus.commandline nano far 7zip conemu --force --pre | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment