Skip to content

Instantly share code, notes, and snippets.

@haridhayal11
Created April 3, 2022 06:40
Show Gist options
  • Save haridhayal11/d316596851e976198842f32e359fc48f to your computer and use it in GitHub Desktop.
Save haridhayal11/d316596851e976198842f32e359fc48f to your computer and use it in GitHub Desktop.
#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