Commit 39eae61
committed
Fix Get Installed toggle detection for issue ChrisTitusTech#3762
This commit addresses the issue where "Get Installed" in the Tweaks tab
was not correctly pulling all toggle states, as reported in issue ChrisTitusTech#3762.
Changes:
1. Invoke-WinUtilCurrentSystem now uses Get-WinUtilToggleStatus for
Toggle-type tweaks to ensure consistent state detection
2. Added DefaultState-aware registry checking for non-Toggle tweaks
3. Fixed null check bug: Changed from `if(!$regstate)` to
`if($null -eq $regstate)` to prevent registry values of 0 from being
treated as missing (applies to both files)
4. Added debug logging for tweaks that only have InvokeScript or appx
entries (not detectable by system state)
The fix ensures "Get Installed" results match the initial toggle states
shown in the UI, resolving the inconsistency reported in the issue.
Fixes ChrisTitusTech#37621 parent b94e8c4 commit 39eae61
2 files changed
Lines changed: 47 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
60 | 71 | | |
61 | | - | |
62 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
63 | 76 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
69 | 97 | | |
70 | | - | |
71 | | - | |
72 | 98 | | |
73 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
74 | 104 | | |
75 | 105 | | |
76 | 106 | | |
| |||
104 | 134 | | |
105 | 135 | | |
106 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
107 | 141 | | |
108 | 142 | | |
109 | 143 | | |
| |||
0 commit comments