Install Windows Software with Chocolatey
# // choco install software
# turn off UAC. Check if we are on Win10 first for correct registry path
if ((Get-CimInstance Win32_OperatingSystem).Version.split(".")[0] -eq 10) {
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value "0"
}
# Enable WSL
# https://stackoverflow.com/questions/40033608/enable-windows-10-developer-mode-programmatically
$feature = Get-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online
if ($feature -and ($feature.State -eq "Disabled"))
{
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -All -LimitAccess -NoRestart
}
# -- download and install Ubuntu
# -- https://ridicurious.com/2019/07/08/download-install-all-wsl-distros-with-powershell/
$url = "https://aka.ms/wsl-ubuntu-1804"
$ProgressPreference = 'SilentlyContinue'
$ErrorActionPreference = 'Stop'
$filename = "$(Split-Path $url -Leaf).appx"
Write-Host "Downloading: $filename" -Foreground Yellow -NoNewline
try{
Invoke-WebRequest -Uri $url -OutFile $filename -UseBasicParsing
Add-AppxPackage -Path $filename
if($?){
Write-Host " Done" -Foreground Green
}
}
catch{
Write-Host " Failed" -Foreground Red
}
choco install -vy wget
choco install -vy git gitextensions
choco install -vy meld
choco install -vy gimp
choco install -vy azure-data-studio
# text editors
choco install -vy vim
choco install -vy programmersnotepad notepadplusplus
choco install -vy vscode vscode-insiders
# -- install extensions for visual studio code
code --install-extension auchenberg.vscode-browser-preview
code --install-extension DotJoshJohnson.xml
code --install-extension eamodio.gitlens
code --install-extension eprincev-egor.toggle-upper-case
code --install-extension formulahendry.auto-close-tag
code --install-extension formulahendry.code-runner
code --install-extension jakeboone02.mediawiki
code --install-extension mdickin.markdown-shortcuts
code --install-extension mhutchie.git-graph
code --install-extension ms-azuretools.vscode-docker
code --install-extension ms-mssql.mssql
code --install-extension ms-vscode.csharp
code --install-extension ms-vscode.powershell
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension msjsdiag.debugger-for-chrome
code --install-extension negokaz.live-server-preview
code --install-extension nikitaKunevich.snippet-creator
code --install-extension oleg-shilo.codemap
code --install-extension pranaygp.vscode-css-peek
code --install-extension ritwickdey.LiveServer
code --install-extension seunghwan.smartsemicolon
code --install-extension Shan.code-settings-sync
code --install-extension shd101wyy.markdown-preview-enhanced
code --install-extension SvenAGN.xslt-transform
code --install-extension yzhang.markdown-all-in-one
code --install-extension ZainChen.omi
code --install-extension Zignd.html-css-class-completion
code --install-extension akamud.vscode-theme-onedark
code --install-extension AndrewFridley.Breeze-Dark-Theme
code --install-extension Ho-Wan.setting-toggle
code --install-extension ionutvmi.reg
code --install-extension jakeboone02.mediawiki
code --install-extension mdickin.markdown-shortcuts
# download wget
Invoke-WebRequest "https://netcologne.dl.sourceforge.net/project/diffuse/diffuse/0.4.8/diffuse-0.4.8-1.win32.exe" -OutFile ~/Downloads/diffuse-0.4.8-1.win32.exe
Software for home pc
# // choco install software
# turn off UAC. Check if we are on Win10 first for correct registry path
if ((Get-CimInstance Win32_OperatingSystem).Version.split(".")[0] -eq 10) {
Set-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "ConsentPromptBehaviorAdmin" -Value "0"
}
# Enable WSL
# https://stackoverflow.com/questions/40033608/enable-windows-10-developer-mode-programmatically
$feature = Get-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online
if ($feature -and ($feature.State -eq "Disabled"))
{
Enable-WindowsOptionalFeature -FeatureName Microsoft-Windows-Subsystem-Linux -Online -All -LimitAccess -NoRestart
}
# -- download and install Ubuntu
# -- https://ridicurious.com/2019/07/08/download-install-all-wsl-distros-with-powershell/
$url = "https://aka.ms/wsl-ubuntu-1804"
$ProgressPreference = 'SilentlyContinue'
$ErrorActionPreference = 'Stop'
$filename = "$(Split-Path $url -Leaf).appx"
Write-Host "Downloading: $filename" -Foreground Yellow -NoNewline
try{
Invoke-WebRequest -Uri $url -OutFile $filename -UseBasicParsing
Add-AppxPackage -Path $filename
if($?){
Write-Host " Done" -Foreground Green
}
}
catch{
Write-Host " Failed" -Foreground Red
}
# text editors
choco install -vy firefox thunderbird googlechrome
choco install -vy vim vscode programmersnotepad
# tools and utilities
choco install -vy git gitextensions meld
choco install -vy gimp inkscape
choco install -vy sysinternals altap-salamander
choco install -vy keepass.install
choco install -vy libreoffice
choco install -vy openshot # -- video editor
choco install -vy audacity audacity-lame
choco install -vy pidgin