Skip to content

Instantly share code, notes, and snippets.

@lesstif
Last active November 3, 2023 02:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lesstif/8213fc78aeb634aece5a23b10aa53e51 to your computer and use it in GitHub Desktop.
Save lesstif/8213fc78aeb634aece5a23b10aa53e51 to your computer and use it in GitHub Desktop.
windows package install using winget package manager
## 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