Created
April 3, 2022 06:40
-
-
Save haridhayal11/d316596851e976198842f32e359fc48f to your computer and use it in GitHub Desktop.
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
#Install New apps | |
$apps = @( | |
@{name = "Telegram.TelegramDesktop" }, | |
@{name = "Waterfox.Waterfox" }, | |
@{name = "PrestonN.FreeTube" }, | |
@{name = "SyncTrayzor.SyncTrayzor" }, | |
@{name = "eloston.ungoogled-chromium" }, | |
@{name = "BraveSoftware.BraveBrowser" }, | |
@{name = "Valve.Steam" }, | |
@{name = "Element.Element" }, | |
@{name = "VideoLAN.VLC" }, | |
@{name = "7zip.7zip" }, | |
@{name = "Greenshot.Greenshot" } | |
); | |
Foreach ($app in $apps) { | |
#check if the app is already installed | |
$listApp = winget list --exact -q $app.name | |
if (![String]::Join("", $listApp).Contains($app.name)) { | |
Write-host "Installing:" $app.name | |
if ($app.source -ne $null) { | |
winget install --exact --silent $app.name --source $app.source | |
} | |
else { | |
winget install --exact --silent $app.name | |
} | |
} | |
else { | |
Write-host "Skipping Install of " $app.name | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment