winutil/Test-WingetInstall.ps1

17 lines
534 B
PowerShell
Raw Normal View History

# Import the function (adjust the path according to your setup)
2024-12-10 00:25:11 -06:00
. "./functions/private/Install-WinUtilWinget.ps1"
. "./functions/private/Test-WinUtilPackageManager.ps1"
# Set up Information stream to be visible
$InformationPreference = "Continue"
Write-Host "Starting Winget installation test..." -ForegroundColor Cyan
try {
2024-12-10 00:25:11 -06:00
Install-WinUtilWinget
} catch {
Write-Host "Error occurred during testing: $($_.Exception.Message)" -ForegroundColor Red
Write-Host "Stack Trace:" -ForegroundColor Red
$_.ScriptStackTrace
}