From 8df9a7c590a9839e4edf6fb4c8f624582cbe017f Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Mon, 15 Jul 2024 01:08:08 +0000 Subject: [PATCH] Compile Winutil --- winutil.ps1 | 61 ++++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 51 insertions(+), 10 deletions(-) diff --git a/winutil.ps1 b/winutil.ps1 index 379e80ee..2674f111 100644 --- a/winutil.ps1 +++ b/winutil.ps1 @@ -4580,6 +4580,19 @@ public class PowerManagement { reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "Pinned" /f >$null 2>&1 reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Taskband" /v "LayoutCycle" /f >$null 2>&1 Write-Host "Edge icon removed from taskbar" + if (Test-Path "HKLM:\zSOFTWARE\WOW6432Node") + { + # Remove leftovers of 64-bit installations + # --- + # Remove registry values first... + reg delete "HKLM\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /va /f > $null 2>&1 + reg delete "HKLM\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /va /f > $null 2>&1 + reg delete "HKLM\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" /va /f > $null 2>&1 + # ...then the registry keys + reg delete "HKLM\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" /f > $null 2>&1 + reg delete "HKLM\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge Update" /f > $null 2>&1 + reg delete "HKLM\zSOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft EdgeWebView" /f > $null 2>&1 + } } reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f @@ -8556,6 +8569,14 @@ $sync.configs.applications = '{ "link": "https://shotcut.org/", "winget": "Meltytech.Shotcut" }, + "WPFInstallLenovoLegionToolkit": { + "category": "Utilities", + "choco": "na", + "content": "Lenovo Legion Toolkit", + "description": "Lenovo Legion Toolkit (LLT) is a open-source utility created for Lenovo Legion (and similar) series laptops, that allows changing a couple of features that are only available in Lenovo Vantage or Legion Zone. It runs no background services, uses less memory, uses virtually no CPU, and contains no telemetry. Just like Lenovo Vantage, this application is Windows only.", + "link": "https://github.com/BartoszCichecki/LenovoLegionToolkit", + "winget": "BartoszCichecki.LenovoLegionToolkit" + }, "WPFInstallPulsar-Edit": { "category": "Development", "choco": "pulsar", @@ -11418,14 +11439,30 @@ $sync.configs.tweaks = '{ "panel": "1", "Order": "a006_", "InvokeScript": [ - " - Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" -Name \"TaskbarEndTask\" -Type \"DWord\" -Value \"1\" - " + "$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" + $name = \"TaskbarEndTask\" + $value = 1 + + # Ensure the registry key exists + if (-not (Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + + # Set the property, creating it if it doesn''t exist + New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" ], "UndoScript": [ - " - Set-ItemProperty -Path \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" -Name \"TaskbarEndTask\" -Type \"DWord\" -Value \"0\" - " + "$path = \"HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\TaskbarDeveloperSettings\" + $name = \"TaskbarEndTask\" + $value = 0 + + # Ensure the registry key exists + if (-not (Test-Path $path)) { + New-Item -Path $path -Force | Out-Null + } + + # Set the property, creating it if it doesn''t exist + New-ItemProperty -Path $path -Name $name -PropertyType DWord -Value $value -Force | Out-Null" ] }, "WPFTweaksPowershell7": { @@ -14225,6 +14262,10 @@ $inputXML = ' + + + + @@ -14241,14 +14282,14 @@ $inputXML = ' - - - - + + + +