Перейти к основному содержимому
Категории ai career dao links media notes philosophy security systems web
  1. Гисты/

install scoop & choco

·152 слов·1 минута· ·
Оглавление

install scoop & choco

chocoscoop.ps1
#


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')
irm get.scoop.sh -outfile 'install.ps1'
.\install.ps1 -RunAsAdmin
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'
git config --global credential.helper manager-core
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
 

Get-Content "E:\Work\allscoop.txt" | ForEach-Object {
    scoop install  $_.split(" ")[0]  -g -a 64bit  -u -s
}