-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into microwin-2025-preparation
- Loading branch information
Showing
38 changed files
with
818 additions
and
1,782 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Import the function (adjust the path according to your setup) | ||
. "./functions/private/Get-WinUtilWingetLatest.ps1" | ||
|
||
# Set up Information stream to be visible | ||
$InformationPreference = "Continue" | ||
|
||
Write-Host "Starting Winget installation test..." -ForegroundColor Cyan | ||
|
||
try { | ||
# Test the function with verbose output | ||
Write-Host "Attempting to run Get-WinUtilWingetLatest..." -ForegroundColor Cyan | ||
Get-WinUtilWingetLatest -Verbose | ||
|
||
# Verify Winget is working | ||
if (Get-Command winget -ErrorAction SilentlyContinue) { | ||
Write-Host "Success! Winget is installed and accessible." -ForegroundColor Green | ||
|
||
# Display Winget version | ||
Write-Host "`nWinget version:" -ForegroundColor Cyan | ||
winget --version | ||
} else { | ||
Write-Host "Warning: Winget is installed but not accessible in the current session. You may need to restart your terminal." -ForegroundColor Yellow | ||
} | ||
} catch { | ||
Write-Host "Error occurred during testing: $($_.Exception.Message)" -ForegroundColor Red | ||
Write-Host "Stack Trace:" -ForegroundColor Red | ||
$_.ScriptStackTrace | ||
} |
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
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
Oops, something went wrong.