Created
January 22, 2025 17:24
-
-
Save erseco/d3727c9baf39114018d798ca3123caa3 to your computer and use it in GitHub Desktop.
Instalacion de utilidades para Windows
This file contains hidden or 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
# Lista de software a instalar | |
$softwareList = @( | |
@{ Name = "BleachBit"; Command = "BleachBit.BleachBit" }, | |
@{ Name = "Bulk Crap Uninstaller"; Command = "Klocman.Bulk-Crap-Uninstaller" }, | |
@{ Name = "UniGetUI"; Command = "uniget.uniget" }, | |
@{ Name = "Microsoft PowerToys"; Command = "Microsoft.PowerToys" }, | |
@{ Name = "WinMerge"; Command = "WinMerge.WinMerge" }, | |
@{ Name = "CrystalDiskInfo"; Command = "CrystalDewWorld.CrystalDiskInfo" }, | |
@{ Name = "SpaceSniffer"; Command = "Uderzo.SpaceSniffer" }, | |
@{ Name = "NirLauncher"; Command = "NirSoft.NirLauncher" }, | |
@{ Name = "SysInternals Suite"; Command = "Microsoft.Sysinternals" }, | |
@{ Name = "QuickLook"; Command = "QuickLook.QuickLook" }, | |
@{ Name = "IrfanView"; Command = "IrfanSkiljan.IrfanView" }, | |
@{ Name = "7-Zip"; Command = "7zip.7zip" } | |
) | |
# Iterar sobre cada programa y ejecuta la instalación | |
foreach ($software in $softwareList) { | |
Write-Host "Checking installation for $($software.Name)..." -ForegroundColor Cyan | |
# Verificar si el paquete existe en winget | |
$result = winget show $software.Command 2>&1 | |
if ($result -notmatch "No package found matching input criteria") { | |
Write-Host "Installing $($software.Name)..." -ForegroundColor Green | |
winget install --id=$($software.Command) --accept-source-agreements --accept-package-agreements -e | |
} else { | |
Write-Host "$($software.Name) is not available in winget." -ForegroundColor Yellow | |
} | |
} | |
Write-Host "Installation process completed." -ForegroundColor Green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment