Last active
July 7, 2023 18:45
-
-
Save dominicusin/730ac6432c0e7ef910f4755cf908274f 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') | |
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 | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thenks