Skip to content

Commit cd3d259

Browse files
committed
Added RecentlyAddedStartApps, MostUsedStartApps. Improved StartRecommendedSection
1 parent 14ab25a commit cd3d259

55 files changed

Lines changed: 3652 additions & 2156 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## 6.0.3 | 7.0.3 — 30.12.2025
99

10-
Fixed XAML markup in `UninstallUWPApps` function. Thanks to Gugenot Murm for bugreport.
10+
Fixed XAML markup in `Uninstall-UWPApps` function. Thanks to Gugenot Murm for bugreport.
1111

1212
## 6.0.2 | 7.0.2 — 29.12.2025
1313

@@ -268,7 +268,7 @@ Thanks to @gtumanyan and homeless
268268

269269
## Wrapper 2.7.8
270270

271-
* Fixed bugs: .NET Runtimes options cutting off.
271+
* Fixed bugs: .NET Desktop Runtimes options cutting off.
272272

273273
## 5.20.0 | 6.8.0 — 29.12.2024
274274

@@ -968,7 +968,7 @@ Diff from v6.1.3
968968
* [CsWinRT](https://github.com/microsoft/CsWinRT).
969969
* Fixed bug in `NetworkAdaptersSavePower` function when script hung if one network adapter was disabled;
970970
* Reported by @poohart.
971-
* Fixed bug in `UninstallUWPApps` function for PowerShell 7 based scripts when a WPF form didn't render at all;
971+
* Fixed bug in `Uninstall-UWPApps` function for PowerShell 7 based scripts when a WPF form didn't render at all;
972972
* Reported by @poohart.
973973
* Improved `UpdateLGPEPolicies` function;
974974
* Now it creates `GPT.ini` file automatically if it doesn't exist.
@@ -1169,7 +1169,7 @@ Diff from v6.1.3
11691169
* Fixed major in `WinPrtScrFolder` (closes #260);
11701170
* It turned out that it has an influence on the OneDrive behavoir. Now the function will be applied only if the preset is configured to remove OneDrive, otherwise the backup functionality for the "Desktop" and "Pictures" folders in OneDrive breaks;
11711171
* Merged #264;
1172-
* Added `Spotify` for removing to `UninstallUWPApps`;
1172+
* Added `Spotify` for removing to `Uninstall-UWPApps`;
11731173
* `ShareContext` now uses another method that doesn't have an influence on `Windows10FileExplorer`
11741174
* To revert changes invoke
11751175
@@ -1661,7 +1661,7 @@ Diff from v5.9
16611661
Sophia -Functions <tab>
16621662
Sophia -Functions temp<tab>
16631663
Sophia -Functions unin<tab>
1664-
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
1664+
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", Uninstall-UWPApps
16651665
```
16661666
16671667
* The code isn't perfect but it works. Anyway it's better than recalling the functions' names. Hopefully I'll improve it in the next releases.
@@ -1675,7 +1675,7 @@ Diff from v5.9
16751675
* David updated his wrapper;
16761676
* Now you need to import Sophia.ps1 to configure it.
16771677
* Fixed bug in the `PinToStart` function when it was unable to pin the "Devices and Printers" shortcut;
1678-
* Fixed bug in the `UninstallUWPApps` function when packages names displayed in the center instead of the top;
1678+
* Fixed bug in the `Uninstall-UWPApps` function when packages names displayed in the center instead of the top;
16791679
* Now the `TempTask` task removes only files and folders older than a day;
16801680
* After script applying a pop-up will apper
16811681
@@ -1693,7 +1693,7 @@ Diff from v5.9
16931693
16941694
* Для граждан СНГ добавил перевод пожертвований с помощью [ЮMoney](https://yoomoney.ru/to/4100116615568835), используя прямой перевод с карты;
16951695
* Updated the `UnpinTaskbarEdgeStore` function again;
1696-
* Fixed bug when calling this function before `UninstallUWPApps` breaks the retrieval of the localized UWP apps packages names;
1696+
* Fixed bug when calling this function before `Uninstall-UWPApps` breaks the retrieval of the localized UWP apps packages names;
16971697
* Refixed #145;
16981698
* Thanks to [iNNOKENTIY21](https://forum.ru-board.com/profile.cgi?action=show&member=iNNOKENTIY21)
16991699
* The `TempFolders` and the `OneDrive` functions update
@@ -1731,7 +1731,7 @@ public static bool MarkFileDelete (string sourcefile)
17311731
Diff from v5.7
17321732
[5.7...5.8](https://github.com/farag2/Windows-10-Sophia-Script/compare/5.7...5.7)
17331733

1734-
* The `UninstallUWPApps` function huge update
1734+
* The `Uninstall-UWPApps` function huge update
17351735
* The `PowerShell 7.x` version now shares the same codebase as PowerShell 5.1;
17361736
* By loading the `WinRT.Runtime.dll` (289 KB) and `Microsoft.Windows.SDK.NET.dll` (25,4 MB) assemblies (both are being downloaded and archived by GitHub Actions) it becomes possible to get localized UWP apps packages names too;
17371737
* <https://github.com/microsoft/CsWinRT>;
@@ -1867,10 +1867,10 @@ Diff from v5.3.3
18671867
* Updated the ```CreateRestorePoint``` function
18681868
* Closed #124
18691869
* Updated the ```EnableWSL2``` function
1870-
* Code refactoring for the ```ScheduledTasks```, ```WindowsFeatures```, ```WindowsCapabilities``` & ```UninstallUWPApps```
1870+
* Code refactoring for the ```ScheduledTasks```, ```WindowsFeatures```, ```WindowsCapabilities``` & ```Uninstall-UWPApps```
18711871
* The ```WindowsFeatures``` function generates **friendly** Windows features names instead of packages names :rocket:
18721872
* The ```WindowsCapabilities``` function generates **friendly** Windows capabilities names instead of packages names :rocket:
1873-
* The ```UninstallUWPApps``` function generates **friendly** UWP apps names instead of packages names :rocket:
1873+
* The ```Uninstall-UWPApps``` function generates **friendly** UWP apps names instead of packages names :rocket:
18741874
* Clicking on "Uninstall for all users" dynamically generates UWP apps list for all users and vice versa. Currently works only on PowerShell 5.1 :thinking:
18751875
* Thanks to [iNNOKENTIY21](https://forum.ru-board.com/profile.cgi?action=show&member=iNNOKENTIY21) & @oz-zo
18761876
* Closed #56

‎README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,9 @@ Sophia -Functions<TAB>
253253
Sophia -Functions temp<TAB>
254254
Sophia -Functions unin<TAB>
255255
Sophia -Functions uwp<TAB>
256-
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", UninstallUWPApps
256+
Sophia -Functions "DiagTrackService -Disable", "DiagnosticDataLevel -Minimal", Uninstall-UWPApps
257257
258-
UninstallUWPApps, "PinToStart -UnpinAll"
258+
Uninstall-UWPApps, "PinToStart -UnpinAll"
259259
```
260260

261261
<https://github.com/user-attachments/assets/ea90122a-bdb3-4687-bf8b-9b6e7af46826>
@@ -289,7 +289,7 @@ Read more [here](./Wrapper/README.md)
289289
* Call functions from `Sophia.ps1` you want to revert like this.
290290

291291
```powershell
292-
Sophia -Functions "DiagTrackService -Enable", UninstallUWPApps
292+
Sophia -Functions "DiagTrackService -Enable", Uninstall-UWPApps
293293
```
294294

295295
## Donations

‎Scripts/chocolatey.ps1‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ $Sophia_Script_Windows_11_Arm_PowerShell_5_1 = ($assets | Where-Object -FilterSc
2222
$Sophia_Script_Windows_11_Arm_PowerShell_7 = ($assets | Where-Object -FilterScript {$_.name -eq "Sophia.Script.for.Windows.11.v$($Latest_Release.Sophia_Script_Windows_11_Arm_PowerShell_7).zip"}).digest.Replace("sha256:", "")
2323
$Sophia_Script_Windows_11_PowerShell_7 = ($assets | Where-Object -FilterScript {$_.name -eq "Sophia.Script.for.Windows.11.PowerShell.7.v$($Latest_Release.Sophia_Script_Windows_11_PowerShell_7).zip"}).digest.Replace("sha256:", "")
2424
$Sophia_Script_Windows_11_LTSC2024 = ($assets | Where-Object -FilterScript {$_.name -eq "Sophia.Script.for.Windows.11.LTSC.2024.v$($Latest_Release.Sophia_Script_Windows_11_LTSC2024).zip"}).digest.Replace("sha256:", "")
25-
$Sophia_Script_Wrapper = ($assets | Where-Object -FilterScript {$_.name -eq "Sophia.Script.Wrapper.v$($Latest_Release.Sophia_Script_Wrapper).zip"}).digest.Replace("sha256:", "")
2625

2726
# Replace variables with script latest versions
2827
(Get-Content -Path "chocolatey\tools\chocolateyinstall.ps1" -Encoding utf8 -Raw) | Foreach-Object -Process {
@@ -34,8 +33,7 @@ $Sophia_Script_Wrapper = ($assets | Where-Object -FilterSc
3433
-replace "Hash_Sophia_Script_Windows_11_Arm_PowerShell_5_1", $Sophia_Script_Windows_11_Arm_PowerShell_5_1 `
3534
-replace "Hash_Sophia_Script_Windows_11_Arm_PowerShell_7", $Sophia_Script_Windows_11_Arm_PowerShell_7 `
3635
-replace "Hash_Sophia_Script_Windows_11_PowerShell_7", $Sophia_Script_Windows_11_PowerShell_7 `
37-
-replace "Hash_Sophia_Script_Windows_11_LTSC2024", $Sophia_Script_Windows_11_LTSC2024 `
38-
-replace "Hash_Sophia_Script_Wrapper", $Sophia_Script_Wrapper
36+
-replace "Hash_Sophia_Script_Windows_11_LTSC2024", $Sophia_Script_Windows_11_LTSC2024
3937
} | Set-Content -Path "chocolatey\tools\chocolateyinstall.ps1" -Encoding utf8 -Force
4038

4139
# Save latest release tag for sophia.nuspec

‎Wrapper/Config/config_Windows_10.json‎

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,13 +1784,29 @@
17841784
"Preset": "",
17851785
"WindowsDefault": ""
17861786
},
1787+
{
1788+
"Region": "Start menu",
1789+
"Control": "cmb",
1790+
"Required": "false",
1791+
"Function": "StartAccountNotifications",
1792+
"Arg": {
1793+
"Zero": {
1794+
"Tag": "Hide"
1795+
},
1796+
"One": {
1797+
"Tag": "Show"
1798+
}
1799+
},
1800+
"Preset": "Zero",
1801+
"WindowsDefault": "One"
1802+
},
17871803
{
17881804
"Region": "UWP apps",
17891805
"Control": "chkchkalter",
17901806
"Required": "false",
17911807
"Separate": "true",
1792-
"Function": "UninstallUWPApps",
1793-
"Function2": "UninstallUWPApps -ForAllUsers",
1808+
"Function": "Uninstall-UWPApps",
1809+
"Function2": "Uninstall-UWPApps -ForAllUsers",
17941810
"Arg": {
17951811
"Zero": {
17961812
"Tag": ""

‎Wrapper/Config/config_Windows_11.json‎

Lines changed: 88 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -282,38 +282,6 @@
282282
"Preset": "Zero",
283283
"WindowsDefault": "One"
284284
},
285-
{
286-
"Region": "Privacy & Telemetry",
287-
"Control": "cmb",
288-
"Required": "false",
289-
"Function": "StartRecommendationsTips",
290-
"Arg": {
291-
"Zero": {
292-
"Tag": "Hide"
293-
},
294-
"One": {
295-
"Tag": "Show"
296-
}
297-
},
298-
"Preset": "Zero",
299-
"WindowsDefault": "One"
300-
},
301-
{
302-
"Region": "Privacy & Telemetry",
303-
"Control": "cmb",
304-
"Required": "false",
305-
"Function": "StartAccountNotifications",
306-
"Arg": {
307-
"Zero": {
308-
"Tag": "Hide"
309-
},
310-
"One": {
311-
"Tag": "Show"
312-
}
313-
},
314-
"Preset": "Zero",
315-
"WindowsDefault": "One"
316-
},
317285
{
318286
"Region": "UI & Personalization",
319287
"Control": "cmb",
@@ -902,6 +870,38 @@
902870
"Preset": "Zero",
903871
"WindowsDefault": "Zero"
904872
},
873+
{
874+
"Region": "UI & Personalization",
875+
"Control": "cmb",
876+
"Required": "false",
877+
"Function": "RecentlyAddedStartApps",
878+
"Arg": {
879+
"Zero": {
880+
"Tag": "Hide"
881+
},
882+
"One": {
883+
"Tag": "Show"
884+
}
885+
},
886+
"Preset": "Zero",
887+
"WindowsDefault": "Zero"
888+
},
889+
{
890+
"Region": "UI & Personalization",
891+
"Control": "cmb",
892+
"Required": "false",
893+
"Function": "MostUsedStartApps",
894+
"Arg": {
895+
"Zero": {
896+
"Tag": "Hide"
897+
},
898+
"One": {
899+
"Tag": "Show"
900+
}
901+
},
902+
"Preset": "Zero",
903+
"WindowsDefault": "Zero"
904+
},
905905
{
906906
"Region": "UI & Personalization",
907907
"Control": "cmb",
@@ -918,6 +918,60 @@
918918
"Preset": "Zero",
919919
"WindowsDefault": "Zero"
920920
},
921+
{
922+
"Region": "UI & Personalization",
923+
"Control": "cmb",
924+
"Required": "false",
925+
"Function": "StartRecommendationsTips",
926+
"Arg": {
927+
"Zero": {
928+
"Tag": "Hide"
929+
},
930+
"One": {
931+
"Tag": "Show"
932+
}
933+
},
934+
"Preset": "Zero",
935+
"WindowsDefault": "Zero"
936+
},
937+
{
938+
"Region": "UI & Personalization",
939+
"Control": "cmb",
940+
"Required": "false",
941+
"Function": "StartAccountNotifications",
942+
"Arg": {
943+
"Zero": {
944+
"Tag": "Hide"
945+
},
946+
"One": {
947+
"Tag": "Show"
948+
}
949+
},
950+
"Preset": "Zero",
951+
"WindowsDefault": "Zero"
952+
},
953+
{
954+
"Region": "Start menu",
955+
"Control": "cmb",
956+
"Required": "false",
957+
"Function": "StartLayout",
958+
"Arg": {
959+
"Zero": {
960+
"Tag": "Default",
961+
"Opposite": "Two"
962+
},
963+
"One": {
964+
"Tag": "ShowMorePins",
965+
"Opposite": "Zero"
966+
},
967+
"Two": {
968+
"Tag": "ShowMoreRecommendations",
969+
"Opposite": "Zero"
970+
}
971+
},
972+
"Preset": "One",
973+
"WindowsDefault": "Zero"
974+
},
921975
{
922976
"Region": "OneDrive",
923977
"Control": "cmbchkalter",
@@ -1627,35 +1681,13 @@
16271681
"Preset": "",
16281682
"WindowsDefault": ""
16291683
},
1630-
{
1631-
"Region": "Start menu",
1632-
"Control": "cmb",
1633-
"Required": "false",
1634-
"Function": "StartLayout",
1635-
"Arg": {
1636-
"Zero": {
1637-
"Tag": "Default",
1638-
"Opposite": "Two"
1639-
},
1640-
"One": {
1641-
"Tag": "ShowMorePins",
1642-
"Opposite": "Zero"
1643-
},
1644-
"Two": {
1645-
"Tag": "ShowMoreRecommendations",
1646-
"Opposite": "Zero"
1647-
}
1648-
},
1649-
"Preset": "One",
1650-
"WindowsDefault": "Zero"
1651-
},
16521684
{
16531685
"Region": "UWP apps",
16541686
"Control": "chkchkalter",
16551687
"Required": "false",
16561688
"Separate": "true",
1657-
"Function": "UninstallUWPApps",
1658-
"Function2": "UninstallUWPApps -ForAllUsers",
1689+
"Function": "Uninstall-UWPApps",
1690+
"Function2": "Uninstall-UWPApps -ForAllUsers",
16591691
"Arg": {
16601692
"Zero": {
16611693
"Tag": ""

0 commit comments

Comments
 (0)