Last active
November 3, 2023 02:32
-
-
Save lesstif/8213fc78aeb634aece5a23b10aa53e51 to your computer and use it in GitHub Desktop.
windows package install using winget package manager
This file contains 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
## copy from https://gist.github.com/cdekkerpossibilit/d023602c29fdf039c7eabadf64f708e9 | |
function Confirm-Choice { | |
param ( | |
[string]$Message | |
) | |
$yes = new-Object System.Management.Automation.Host.ChoiceDescription "&Yes","Yes"; | |
$no = new-Object System.Management.Automation.Host.ChoiceDescription "&No","No"; | |
$choices = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no); | |
$answer = $host.ui.PromptForChoice("", $message, $choices, 1) | |
switch ($answer){ | |
0 {return $true; break} | |
1 {return $false; break} | |
} | |
} | |
## utility | |
if (Confirm-Choice -Message "Install connectivity tools (Edge Chromium, 7-Zip, Windows Terminal)>") { | |
Write-Host "install utilities" | |
$tools="putty", "snaketail", "GnuWin32.Zip", "GnuWin32.Wget", "GnuWin32.Grep" | |
$tools = $tools + "OpenSSL Light" | |
foreach($item in $tools) | |
{ | |
winget install $item | |
} | |
} | |
## dev tools | |
Write-Host "install devel tools" | |
$devs="JetBrains.Toolbox", "JetBrains.WebStorm", "JetBrains.PHPStorm", "JetBrains.IntelliJIDEA.Ultimate","JetBrains.IntelliJIDEA.Community", "JetBrains.DataGrip" | |
$devs = $devs + "vim.vim", "Microsoft.VisualStudioCode-User-x64", "Notepad++.Notepad++" | |
$devs = $devs + "Notion" | |
foreach($item in $devs) | |
{ | |
winget install $item | |
} | |
## Messanger | |
Write-Host "install messanger tools" | |
$devs="slack", "TelegramDesktop" | |
foreach($item in $devs) | |
{ | |
winget install $item | |
} | |
## DB | |
Write-Host "install dbms & tools" | |
$devs="MariaDB.Server", "heidisql" | |
foreach($item in $devs) | |
{ | |
winget install $item | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment