diff --git a/winutil.ps1 b/winutil.ps1
index a044f253..b6a421dc 100644
--- a/winutil.ps1
+++ b/winutil.ps1
@@ -2632,13 +2632,22 @@ function Test-WinUtilPackageManager {
$status = "not-installed"
if ($winget) {
- # Install Winget if not detected
- $wingetExists = Get-Command -Name winget -ErrorAction SilentlyContinue
-
- if ($wingetExists) {
- # Check Winget Version
- $wingetVersionFull = (winget --version) # Full Version without 'v'.
+ # Check if Winget is available while getting it's Version if it's available
+ $wingetExists = $true
+ try {
+ $wingetVersionFull = winget --version
+ } catch [System.Management.Automation.CommandNotFoundException], [System.Management.Automation.ApplicationFailedException] {
+ Write-Warning "Winget was not found due to un-availablity reasons"
+ $wingetExists = $false
+ } catch {
+ Write-Warning "Winget was not found due to un-known reasons, The Stack Trace is:`n$($psitem.Exception.StackTrace)"
+ $wingetExists = $false
+ }
+ # If Winget is available, Parse it's Version and give proper information to Terminal Output.
+ # If it isn't available, the return of this funtion will be "not-installed", indicating that
+ # Winget isn't installed/available on The System.
+ if ($wingetExists) {
# Check if Preview Version
if ($wingetVersionFull.Contains("-preview")) {
$wingetVersion = $wingetVersionFull.Trim("-preview")
@@ -6194,6 +6203,14 @@ $sync.configs.applications = '{
"link": "https://mremoteng.org/",
"winget": "mRemoteNG.mRemoteNG"
},
+ "WPFInstallmsedgeredirect": {
+ "category": "Utilities",
+ "choco": "msedgeredirect",
+ "content": "MSEdgeRedirect",
+ "description": "A Tool to Redirect News, Search, Widgets, Weather, and More to Your Default Browser.",
+ "link": "https://github.com/rcmaehl/MSEdgeRedirect",
+ "winget": "rcmaehl.MSEdgeRedirect"
+ },
"WPFInstallmsiafterburner": {
"category": "Utilities",
"choco": "msiafterburner",
@@ -7593,6 +7610,14 @@ $sync.configs.applications = '{
"description": "Fast Node Manager (fnm) allows you to switch your Node version by using the Terminal",
"link": "https://github.com/Schniz/fnm",
"winget": "Schniz.fnm"
+ },
+ "WPFInstallWindhawk": {
+ "category": "Utilities",
+ "choco": "windhawk",
+ "content": "Windhawk",
+ "description": "The customization marketplace for Windows programs",
+ "link": "https://windhawk.net",
+ "winget": "RamenSoftware.Windhawk"
}
}' | convertfrom-json
$sync.configs.dns = '{
@@ -12300,6 +12325,9 @@ $inputXML = '
+
+
+
@@ -12435,6 +12463,9 @@ $inputXML = '
+
+
+
diff --git a/xaml/inputApp.xaml b/xaml/inputApp.xaml
index a4479fed..e01a1519 100644
--- a/xaml/inputApp.xaml
+++ b/xaml/inputApp.xaml
@@ -844,6 +844,9 @@
+
+
+
@@ -979,6 +982,9 @@
+
+
+