-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Fix Get Installed toggle detection (#3762) #3959
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Get Installed toggle detection (#3762) #3959
Conversation
|
it would look alot better if you put spaces after the if statment example if($registryTotal -gt 0 -and $registryMatchCount -ne $registryTotal) {
$values += $False
}after if ($registryTotal -gt 0 -and $registryMatchCount -ne $registryTotal) {
$values += $False
} |
fa24c22 to
031b810
Compare
Fixes the issue where "Get Installed" in the Tweaks tab was not correctly pulling all toggle states, plus several additional config bugs discovered during investigation. Changes: - Unified toggle detection logic using Get-WinUtilToggleStatus - Fixed registry value detection (0 values were incorrectly treated as missing) - Added DefaultState support for missing registry keys - Fixed WPFTweaksUTC registry type (QWord → DWord) - Fixed WPFTweaksServices startup types (TermService, VaultSvc: Automatic → Manual) - Fixed duplicate order collisions in tweaks - Fixed FFmpeg display name - Improved OneDrive removal script reliability - Improved Copilot removal script with wildcard pattern and null check - Fixed code formatting (added spaces after if/Foreach statements) Files changed: - functions/private/Invoke-WinUtilCurrentSystem.ps1 - functions/private/Get-WinUtilToggleStatus.ps1 - config/tweaks.json - config/applications.json Fixes ChrisTitusTech#3762 Fixes ChrisTitusTech#3189 Fixes ChrisTitusTech#3876 Potentially fixes ChrisTitusTech#3008 Potentially fixes ChrisTitusTech#3815
07d748e to
ca492e6
Compare
no reason to do this its useless might as well make it we need to stop explorer to delete those files no need for /reset we dont need it and we dont need |
ChrisTitusTech
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job, cleaned up a few changes and its good to merge
Summary
Fixes the issue where "Get Installed" in the Tweaks tab was not correctly pulling all toggle states (#3762), plus several additional config bugs discovered during investigation.
Changes
1. Unified Toggle Detection Logic (Issue #3762)
Invoke-WinUtilCurrentSystemnow usesGet-WinUtilToggleStatusforType: "Toggle"tweaks2. Fixed Registry Value Detection
if(!$regstate)toif($null -eq $regstate)in both:functions/private/Invoke-WinUtilCurrentSystem.ps1functions/private/Get-WinUtilToggleStatus.ps10were incorrectly treated as missing because0is falsy in PowerShell0values3. Added DefaultState Support
DefaultStatefor tweaks with missing registry keysGet-WinUtilToggleStatus4. Non-Detectable Tweaks Handling
InvokeScriptorappxentries5. Fixed WPFTweaksUTC Registry Type
RealTimeIsUniversalregistry type fromQWordtoDWord6. Fixed Duplicate Order Collision (First Instance)
WPFTweaksRemoveGalleryorder from"a029_"back to"a030_"7. Fixed FFmpeg Display Name
"eibol.FFmpegBatchAVConverter"(package ID) to"FFmpeg Batch AV Converter"(user-friendly name)8. Fixed WPFTweaksServices Service Startup Types
TermService(Remote Desktop) from Automatic to ManualVaultSvc(Credential Manager) from Automatic to Manual9. Fixed OneDrive Removal Script
Stop-Process -Name Explorerwhich killed Explorer before cleanup operationsStop-Process -Name FileCoAuthonly, with-ErrorAction SilentlyContinueStart-Process explorer.exeto restart Explorer after cleanup/grant "Administrators:(D,DC)"with proper/resetand/grant "Administrators:(F)"-ErrorAction SilentlyContinueto file removal operations for robustness10. Fixed Duplicate Order Collision (Second Instance)
WPFTweaksRemoveHomeorder from"a029_"to"a029a_"WPFTweaksRemoveOneDrive11. Fixed Copilot Removal Script
Get-AppxPackage *MicrosoftWindows.Client.CoreAI*instead of exact matchif ($Appx)blockFiles Changed
functions/private/Invoke-WinUtilCurrentSystem.ps1- Toggle detection logicfunctions/private/Get-WinUtilToggleStatus.ps1- Null check fixconfig/tweaks.json- Registry types, order fixes, service types, script fixesconfig/applications.json- FFmpeg display name fixTesting
Manual Verification Steps:
DefaultState)0(e.g., dark mode toggles)Impact
0values being treated as missingCloses #3762