Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This script requires winget to be installed. install it from the Microsoft Store if it doesn't work. https://www.microsoft.com/en-us/p/app-installer/9nblggh4nns1
- # It's best to run this script as an administrator
- # Edit the app list to fit your needs before running the script.
- Write-Output "The script will now install all your apps. Feel free to grab a coffee or keep working on something else!"
- $apps = @(
- @{name = "Vivaldi.Vivaldi" },
- @{name = "Microsoft.PowerToys" },
- @{name = "Beeper.Beeper" },
- @{name = "Tailscale.Tailscale" },
- @{name = "Nextcloud.NextcloudDesktop" },
- @{name = "Flow-Launcher.Flow-Launcher" },
- @{name = "Balena.Etcher" },
- @{name = "Adobe.CreativeCloud" },
- @{name = "Kingsoft.WPSOffice" }
- );
- Foreach ($app in $apps) {
- $listApp = winget list --exact -q $app.name
- if (![String]::Join("", $listApp).Contains($app.name)) {
- Write-host "Installing" $app.name
- winget install -e -h --accept-source-agreements --accept-package-agreements --id $app.name
- }
- else {
- Write-host "Skipping" $app.name "(already installed)"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment