Fix Get Installed toggle detection (#3762)#3959
Merged
ChrisTitusTech merged 1 commit intoChrisTitusTech:mainfrom Feb 10, 2026
Merged
Conversation
Contributor
|
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
3 tasks
Contributor
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 |
Owner
ChrisTitusTech
left a comment
There was a problem hiding this comment.
Great job, cleaned up a few changes and its good to merge
ChrisTitusTech
approved these changes
Feb 10, 2026
ChrisTitusTech
added a commit
that referenced
this pull request
Feb 10, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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