mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2025-08-24 04:46:23 -05:00
Compare commits
25 Commits
Author | SHA1 | Date | |
---|---|---|---|
8622892827 | |||
af09bcbf0b | |||
e2732da2db | |||
3bd6003171 | |||
a921d0c6fa | |||
01c8739a8b | |||
9ce598fbeb | |||
965d9e0394 | |||
2b9e277b10 | |||
5144551b52 | |||
91ab12dd7f | |||
fdee2ea898 | |||
5ebd27da7e | |||
f6030eec0b | |||
9403b95067 | |||
cdd43f5e36 | |||
cae497b2fe | |||
c740186232 | |||
e6263afb59 | |||
122a07d71b | |||
a669c455eb | |||
c983ec2253 | |||
aec16d84ab | |||
ba951244d9 | |||
9d3c7736b8 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -54,3 +54,5 @@ winutil.ps1
|
|||||||
.github/site/
|
.github/site/
|
||||||
|
|
||||||
binary/
|
binary/
|
||||||
|
|
||||||
|
.preprocessor_hashes.json
|
@ -51,7 +51,7 @@ If you have Issues, refer to [Known Issues](https://winutil.christitus.com/known
|
|||||||
## 🛠️ Build & Develop
|
## 🛠️ Build & Develop
|
||||||
|
|
||||||
> [!NOTE]
|
> [!NOTE]
|
||||||
> Winutil is a relatively large script, so it's split into multiple files which're combined into a single `.ps1` file using a custom compiler. This makes maintaining the project a lot easiler.
|
> Winutil is a relatively large script, so it's split into multiple files which're combined into a single `.ps1` file using a custom compiler. This makes maintaining the project a lot easier.
|
||||||
|
|
||||||
Get a copy of the source code, this can be done using GitHub UI (`Code -> Download ZIP`), or by cloning (downloading) the repo using git.
|
Get a copy of the source code, this can be done using GitHub UI (`Code -> Download ZIP`), or by cloning (downloading) the repo using git.
|
||||||
|
|
||||||
@ -79,7 +79,7 @@ You'll see a new file named `winutil.ps1`, which's created by `Compile.ps1` scri
|
|||||||
|
|
||||||
These are the sponsors that help keep this project alive with monthly contributions.
|
These are the sponsors that help keep this project alive with monthly contributions.
|
||||||
|
|
||||||
<!-- sponsors --><a href="https://github.com/TriHydera"><img src="https://github.com/TriHydera.png" width="60px" alt="User avatar: TriHydera" /></a><a href="https://github.com/DelDongo"><img src="https://github.com/DelDongo.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/markamos"><img src="https://github.com/markamos.png" width="60px" alt="User avatar: Mark Amos" /></a><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="User avatar: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="User avatar: Jason A. Diegmueller" /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="User avatar: RMS" /></a><a href="https://github.com/KenichiQaz"><img src="https://github.com/KenichiQaz.png" width="60px" alt="User avatar: Stefan" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="User avatar: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="User avatar: Dave J. - WhamGeek" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="User avatar: Anthony Mendez" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="User avatar: DursleyGuy" /></a><a href="https://github.com/realmuddy"><img src="https://github.com/realmuddy.png" width="60px" alt="User avatar: Phillip Waters" /></a><a href="https://github.com/quaszi"><img src="https://github.com/quaszi.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="User avatar: Kiera Meredith" /></a><a href="https://github.com/RoelCrabbe"><img src="https://github.com/RoelCrabbe.png" width="60px" alt="User avatar: Roel Crabbé" /></a><a href="https://github.com/Data-Syd"><img src="https://github.com/Data-Syd.png" width="60px" alt="User avatar: Data Syd" /></a><!-- sponsors -->
|
<!-- sponsors --><a href="https://github.com/TriHydera"><img src="https://github.com/TriHydera.png" width="60px" alt="User avatar: TriHydera" /></a><a href="https://github.com/DelDongo"><img src="https://github.com/DelDongo.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/markamos"><img src="https://github.com/markamos.png" width="60px" alt="User avatar: Mark Amos" /></a><a href="https://github.com/dwelfusius"><img src="https://github.com/dwelfusius.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/mews-se"><img src="https://github.com/mews-se.png" width="60px" alt="User avatar: Martin Stockzell" /></a><a href="https://github.com/jdiegmueller"><img src="https://github.com/jdiegmueller.png" width="60px" alt="User avatar: Jason A. Diegmueller" /></a><a href="https://github.com/robertsandrock"><img src="https://github.com/robertsandrock.png" width="60px" alt="User avatar: RMS" /></a><a href="https://github.com/KenichiQaz"><img src="https://github.com/KenichiQaz.png" width="60px" alt="User avatar: Stefan" /></a><a href="https://github.com/paulsheets"><img src="https://github.com/paulsheets.png" width="60px" alt="User avatar: Paul" /></a><a href="https://github.com/djones369"><img src="https://github.com/djones369.png" width="60px" alt="User avatar: Dave J. - WhamGeek" /></a><a href="https://github.com/anthonymendez"><img src="https://github.com/anthonymendez.png" width="60px" alt="User avatar: Anthony Mendez" /></a><a href="https://github.com/FatBastard0"><img src="https://github.com/FatBastard0.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DursleyGuy"><img src="https://github.com/DursleyGuy.png" width="60px" alt="User avatar: DursleyGuy" /></a><a href="https://github.com/realmuddy"><img src="https://github.com/realmuddy.png" width="60px" alt="User avatar: Phillip Waters" /></a><a href="https://github.com/quaszi"><img src="https://github.com/quaszi.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/DwayneTheRockLobster1"><img src="https://github.com/DwayneTheRockLobster1.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/KieraKujisawa"><img src="https://github.com/KieraKujisawa.png" width="60px" alt="User avatar: Kiera Meredith" /></a><a href="https://github.com/felicabrera"><img src="https://github.com/felicabrera.png" width="60px" alt="User avatar: Felipe Cabrera" /></a><a href="https://github.com/singhchandan27"><img src="https://github.com/singhchandan27.png" width="60px" alt="User avatar: " /></a><a href="https://github.com/danhively"><img src="https://github.com/danhively.png" width="60px" alt="User avatar: Dan Hively" /></a><a href="https://github.com/Yamil-Serrano"><img src="https://github.com/Yamil-Serrano.png" width="60px" alt="User avatar: Neowizen" /></a><!-- sponsors -->
|
||||||
|
|
||||||
## 🏅 Thanks to all Contributors
|
## 🏅 Thanks to all Contributors
|
||||||
Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻.
|
Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻.
|
||||||
|
@ -375,6 +375,14 @@
|
|||||||
"link": "https://discord.com/",
|
"link": "https://discord.com/",
|
||||||
"winget": "Discord.Discord"
|
"winget": "Discord.Discord"
|
||||||
},
|
},
|
||||||
|
"dismtools": {
|
||||||
|
"category": "Microsoft Tools",
|
||||||
|
"choco": "na",
|
||||||
|
"content": "DISMTools",
|
||||||
|
"description": "DISMTools is a front-end for DISM that lets you manage your Windows Imaging (WIM) files and a whole lot more.",
|
||||||
|
"link": "https://github.com/CodingWonders/DISMTools",
|
||||||
|
"winget": "CodingWondersSoftware.DISMTools.Stable"
|
||||||
|
},
|
||||||
"ditto": {
|
"ditto": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"choco": "ditto",
|
"choco": "ditto",
|
||||||
@ -1741,7 +1749,7 @@
|
|||||||
"content": "Python3",
|
"content": "Python3",
|
||||||
"description": "Python is a versatile programming language used for web development, data analysis, artificial intelligence, and more.",
|
"description": "Python is a versatile programming language used for web development, data analysis, artificial intelligence, and more.",
|
||||||
"link": "https://www.python.org/",
|
"link": "https://www.python.org/",
|
||||||
"winget": "Python.Python.3.12"
|
"winget": "Python.Python.3.13"
|
||||||
},
|
},
|
||||||
"qbittorrent": {
|
"qbittorrent": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
@ -2210,8 +2218,8 @@
|
|||||||
"ttaskbar": {
|
"ttaskbar": {
|
||||||
"category": "Utilities",
|
"category": "Utilities",
|
||||||
"choco": "translucenttb",
|
"choco": "translucenttb",
|
||||||
"content": "Translucent Taskbar",
|
"content": "TranslucentTB",
|
||||||
"description": "Translucent Taskbar is a tool that allows you to customize the transparency of the Windows taskbar.",
|
"description": "TranslucentTB is a tool that allows you to customize the transparency of the Windows taskbar.",
|
||||||
"link": "https://github.com/TranslucentTB/TranslucentTB",
|
"link": "https://github.com/TranslucentTB/TranslucentTB",
|
||||||
"winget": "9PF4KZ2VN4W9"
|
"winget": "9PF4KZ2VN4W9"
|
||||||
},
|
},
|
||||||
|
@ -242,15 +242,7 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/fixes/runadobecccleanertool"
|
"link": "https://winutil.christitus.com/dev/features/fixes/runadobecccleanertool"
|
||||||
},
|
},
|
||||||
"WPFPanelnetwork": {
|
"WPFPanelControl": {
|
||||||
"Content": "Network Connections",
|
|
||||||
"category": "Legacy Windows Panels",
|
|
||||||
"panel": "2",
|
|
||||||
"Type": "Button",
|
|
||||||
"ButtonWidth": "300",
|
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/network"
|
|
||||||
},
|
|
||||||
"WPFPanelcontrol": {
|
|
||||||
"Content": "Control Panel",
|
"Content": "Control Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
@ -258,7 +250,7 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/control"
|
||||||
},
|
},
|
||||||
"WPFPanelcomputer": {
|
"WPFPanelComputer": {
|
||||||
"Content": "Computer Management",
|
"Content": "Computer Management",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
@ -266,7 +258,15 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/computer"
|
||||||
},
|
},
|
||||||
"WPFPanelpower": {
|
"WPFPanelNetwork": {
|
||||||
|
"Content": "Network Connections",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/network"
|
||||||
|
},
|
||||||
|
"WPFPanelPower": {
|
||||||
"Content": "Power Panel",
|
"Content": "Power Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
@ -274,23 +274,7 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/power"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/power"
|
||||||
},
|
},
|
||||||
"WPFPanelregion": {
|
"WPFPanelPrinter": {
|
||||||
"Content": "Region",
|
|
||||||
"category": "Legacy Windows Panels",
|
|
||||||
"panel": "2",
|
|
||||||
"Type": "Button",
|
|
||||||
"ButtonWidth": "300",
|
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region"
|
|
||||||
},
|
|
||||||
"WPFPanelsound": {
|
|
||||||
"Content": "Sound Settings",
|
|
||||||
"category": "Legacy Windows Panels",
|
|
||||||
"panel": "2",
|
|
||||||
"Type": "Button",
|
|
||||||
"ButtonWidth": "300",
|
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/sound"
|
|
||||||
},
|
|
||||||
"WPFPanelprinter": {
|
|
||||||
"Content": "Printer Panel",
|
"Content": "Printer Panel",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
@ -298,7 +282,24 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/printer"
|
||||||
},
|
},
|
||||||
"WPFPanelsystem": {
|
"WPFPanelRegion": {
|
||||||
|
"Content": "Region",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/region"
|
||||||
|
},
|
||||||
|
"WPFPanelSound": {
|
||||||
|
"Content": "Sound Settings",
|
||||||
|
"category": "Legacy Windows Panels",
|
||||||
|
"panel": "2",
|
||||||
|
"Type": "Button",
|
||||||
|
"ButtonWidth": "300",
|
||||||
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/user"
|
||||||
|
},
|
||||||
|
|
||||||
|
"WPFPanelSystem": {
|
||||||
"Content": "System Properties",
|
"Content": "System Properties",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
@ -306,20 +307,13 @@
|
|||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/system"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/system"
|
||||||
},
|
},
|
||||||
"WPFPaneluser": {
|
"WPFPanelTimedate": {
|
||||||
"Content": "User Accounts",
|
"Content": "Time and Date",
|
||||||
"category": "Legacy Windows Panels",
|
"category": "Legacy Windows Panels",
|
||||||
"panel": "2",
|
"panel": "2",
|
||||||
"Type": "Button",
|
"Type": "Button",
|
||||||
"ButtonWidth": "300",
|
"ButtonWidth": "300",
|
||||||
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/user"
|
"link": "https://winutil.christitus.com/dev/features/legacy-windows-panels/timedate"
|
||||||
},
|
|
||||||
"WPFPanelGodMode": {
|
|
||||||
"Content": "God Mode",
|
|
||||||
"category": "Legacy Windows Panels",
|
|
||||||
"panel": "2",
|
|
||||||
"Type": "Button",
|
|
||||||
"ButtonWidth": "300"
|
|
||||||
},
|
},
|
||||||
"WPFWinUtilInstallPSProfile": {
|
"WPFWinUtilInstallPSProfile": {
|
||||||
"Content": "Install CTT PowerShell Profile",
|
"Content": "Install CTT PowerShell Profile",
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
"ButtonFontFamily": "Arial",
|
"ButtonFontFamily": "Arial",
|
||||||
"ButtonWidth": "200",
|
"ButtonWidth": "200",
|
||||||
"ButtonHeight": "25",
|
"ButtonHeight": "25",
|
||||||
|
"ConfigTabButtonFontSize": "14",
|
||||||
"ConfigUpdateButtonFontSize": "14",
|
"ConfigUpdateButtonFontSize": "14",
|
||||||
"SearchBarWidth": "200",
|
"SearchBarWidth": "200",
|
||||||
"SearchBarHeight": "26",
|
"SearchBarHeight": "26",
|
||||||
|
@ -1585,13 +1585,6 @@
|
|||||||
"Type": "DWord",
|
"Type": "DWord",
|
||||||
"Value": "0",
|
"Value": "0",
|
||||||
"OriginalValue": "<RemoveEntry>"
|
"OriginalValue": "<RemoveEntry>"
|
||||||
},
|
|
||||||
{
|
|
||||||
"Path": "HKLM:\\SOFTWARE\\Policies\\BraveSoftware\\Brave",
|
|
||||||
"Name": "SyncDisabled",
|
|
||||||
"Type": "DWord",
|
|
||||||
"Value": "1",
|
|
||||||
"OriginalValue": "<RemoveEntry>"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@ -1824,10 +1817,10 @@
|
|||||||
"registry": [
|
"registry": [
|
||||||
{
|
{
|
||||||
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection",
|
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Policies\\DataCollection",
|
||||||
"Type": "DWord",
|
"OriginalValue": "<RemoveEntry>",
|
||||||
"Value": "0",
|
|
||||||
"Name": "AllowTelemetry",
|
"Name": "AllowTelemetry",
|
||||||
"OriginalValue": "<RemoveEntry>"
|
"Value": "0",
|
||||||
|
"Type": "DWord"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection",
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection",
|
||||||
@ -1913,6 +1906,13 @@
|
|||||||
"Value": "0",
|
"Value": "0",
|
||||||
"Type": "DWord"
|
"Type": "DWord"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\SOFTWARE\\Microsoft\\Siuf\\Rules",
|
||||||
|
"OriginalValue": "<RemoveEntry>",
|
||||||
|
"Name": "PeriodInNanoSeconds",
|
||||||
|
"Value": "<RemoveEntry>",
|
||||||
|
"Type": "QWord"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection",
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DataCollection",
|
||||||
"OriginalValue": "<RemoveEntry>",
|
"OriginalValue": "<RemoveEntry>",
|
||||||
@ -1945,7 +1945,14 @@
|
|||||||
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization\\Config",
|
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DeliveryOptimization\\Config",
|
||||||
"OriginalValue": "1",
|
"OriginalValue": "1",
|
||||||
"Name": "DODownloadMode",
|
"Name": "DODownloadMode",
|
||||||
"Value": "1",
|
"Value": "0",
|
||||||
|
"Type": "DWord"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SOFTWARE\\Policies\\Microsoft\\Windows\\DeliveryOptimization",
|
||||||
|
"OriginalValue": "<RemoveEntry>",
|
||||||
|
"Name": "DODownloadMode",
|
||||||
|
"Value": "0",
|
||||||
"Type": "DWord"
|
"Type": "DWord"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -1990,14 +1997,6 @@
|
|||||||
"Value": "1",
|
"Value": "1",
|
||||||
"Type": "DWord"
|
"Type": "DWord"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"_Comment": "Driver searching is a function that should be left in",
|
|
||||||
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\DriverSearching",
|
|
||||||
"OriginalValue": "1",
|
|
||||||
"Name": "SearchOrderConfig",
|
|
||||||
"Value": "1",
|
|
||||||
"Type": "DWord"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile",
|
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Multimedia\\SystemProfile",
|
||||||
"OriginalValue": "1",
|
"OriginalValue": "1",
|
||||||
@ -2107,8 +2106,8 @@
|
|||||||
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/tele"
|
"link": "https://winutil.christitus.com/dev/tweaks/essential-tweaks/tele"
|
||||||
},
|
},
|
||||||
"WPFTweaksWifi": {
|
"WPFTweaksWifi": {
|
||||||
"Content": "Disable Wifi-Sense",
|
"Content": "Disable Wi-Fi Sense",
|
||||||
"Description": "Wifi Sense is a spying service that phones home all nearby scanned wifi networks and your current geo location.",
|
"Description": "Wi-Fi Sense is a spying service that phones home all nearby scanned Wi-Fi networks and your current geographic location.",
|
||||||
"category": "Essential Tweaks",
|
"category": "Essential Tweaks",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a005_",
|
"Order": "a005_",
|
||||||
@ -2148,8 +2147,8 @@
|
|||||||
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/utc"
|
"link": "https://winutil.christitus.com/dev/tweaks/z--advanced-tweaks---caution/utc"
|
||||||
},
|
},
|
||||||
"WPFTweaksRemoveHome": {
|
"WPFTweaksRemoveHome": {
|
||||||
"Content": "Remove Home from explorer",
|
"Content": "Remove Home from Explorer",
|
||||||
"Description": "Removes the Home from explorer and sets This PC as default",
|
"Description": "Removes the Home from Explorer and sets This PC as default",
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a029_",
|
"Order": "a029_",
|
||||||
@ -2169,7 +2168,7 @@
|
|||||||
},
|
},
|
||||||
"WPFTweaksRemoveGallery": {
|
"WPFTweaksRemoveGallery": {
|
||||||
"Content": "Remove Gallery from explorer",
|
"Content": "Remove Gallery from explorer",
|
||||||
"Description": "Removes the Gallery from explorer and sets This PC as default",
|
"Description": "Removes the Gallery from Explorer and sets This PC as default",
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a030_",
|
"Order": "a030_",
|
||||||
@ -2777,7 +2776,7 @@
|
|||||||
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$OneDrivePath\"
|
Remove-Item -Recurse -Force -ErrorAction SilentlyContinue \"$OneDrivePath\"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host \"Remove Onedrive from explorer sidebar\"
|
Write-Host \"Remove Onedrive from Explorer sidebar\"
|
||||||
Set-ItemProperty -Path \"HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0
|
Set-ItemProperty -Path \"HKCR:\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0
|
||||||
Set-ItemProperty -Path \"HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0
|
Set-ItemProperty -Path \"HKCR:\\Wow6432Node\\CLSID\\{018D5C66-4533-4307-9B53-224DE2ED1FE6}\" -Name \"System.IsPinnedToNameSpaceTree\" -Value 0
|
||||||
|
|
||||||
@ -2823,7 +2822,7 @@
|
|||||||
taskkill.exe /F /IM \"explorer.exe\"
|
taskkill.exe /F /IM \"explorer.exe\"
|
||||||
Start-Process \"explorer.exe\"
|
Start-Process \"explorer.exe\"
|
||||||
|
|
||||||
Write-Host \"Waiting for explorer to complete loading\"
|
Write-Host \"Waiting for Explorer to complete loading\"
|
||||||
Write-Host \"Please Note - The OneDrive folder at $OneDrivePath may still have items in it. You must manually delete it, but all the files should already be copied to the base user folder.\"
|
Write-Host \"Please Note - The OneDrive folder at $OneDrivePath may still have items in it. You must manually delete it, but all the files should already be copied to the base user folder.\"
|
||||||
Write-Host \"If there are Files missing afterwards, please Login to Onedrive.com and Download them manually\" -ForegroundColor Yellow
|
Write-Host \"If there are Files missing afterwards, please Login to Onedrive.com and Download them manually\" -ForegroundColor Yellow
|
||||||
Start-Sleep 5
|
Start-Sleep 5
|
||||||
@ -2842,7 +2841,7 @@
|
|||||||
},
|
},
|
||||||
"WPFTweaksRazerBlock": {
|
"WPFTweaksRazerBlock": {
|
||||||
"Content": "Block Razer Software Installs",
|
"Content": "Block Razer Software Installs",
|
||||||
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software.",
|
"Description": "Blocks ALL Razer Software installations. The hardware works fine without any software. WARNING: this will also block all Windows third-party driver installations.",
|
||||||
"category": "z__Advanced Tweaks - CAUTION",
|
"category": "z__Advanced Tweaks - CAUTION",
|
||||||
"panel": "1",
|
"panel": "1",
|
||||||
"Order": "a032_",
|
"Order": "a032_",
|
||||||
@ -3646,6 +3645,69 @@
|
|||||||
],
|
],
|
||||||
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/stickykeys"
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/stickykeys"
|
||||||
},
|
},
|
||||||
|
"WPFToggleNewOutlook": {
|
||||||
|
"Content": "New Outlook",
|
||||||
|
"Description": "If disabled it removes the toggle for new Outlook, disables the new Outlook migration and makes sure the Outlook Application actually uses the old Outlook.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a112_",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\SOFTWARE\\Microsoft\\Office\\16.0\\Outlook\\Preferences",
|
||||||
|
"Name": "UseNewOutlook",
|
||||||
|
"Value": "1",
|
||||||
|
"OriginalValue": "0",
|
||||||
|
"DefaultState": "true",
|
||||||
|
"Type": "DWord"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Software\\Microsoft\\Office\\16.0\\Outlook\\Options\\General",
|
||||||
|
"Name": "HideNewOutlookToggle",
|
||||||
|
"Value": "0",
|
||||||
|
"OriginalValue": "1",
|
||||||
|
"DefaultState": "true",
|
||||||
|
"Type": "DWord"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Software\\Policies\\Microsoft\\Office\\16.0\\Outlook\\Options\\General",
|
||||||
|
"Name": "DoNewOutlookAutoMigration",
|
||||||
|
"Value": "0",
|
||||||
|
"OriginalValue": "0",
|
||||||
|
"DefaultState": "false",
|
||||||
|
"Type": "DWord"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Software\\Policies\\Microsoft\\Office\\16.0\\Outlook\\Preferences",
|
||||||
|
"Name": "NewOutlookMigrationUserSetting",
|
||||||
|
"Value": "0",
|
||||||
|
"OriginalValue": "<RemoveEntry>",
|
||||||
|
"DefaultState": "true",
|
||||||
|
"Type": "DWord"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/newoutlook"
|
||||||
|
},
|
||||||
|
|
||||||
|
"WPFToggleMultiplaneOverlay": {
|
||||||
|
"Content": "Multiplane Overlay",
|
||||||
|
"Description": "Disable the Multiplane Overlay which can sometimes cause issues with Graphics Cards.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a111_",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKLM:\\SOFTWARE\\Microsoft\\Windows\\Dwm",
|
||||||
|
"Name": "OverlayTestMode",
|
||||||
|
"Value": "5",
|
||||||
|
"OriginalValue": "<RemoveEntry>",
|
||||||
|
"DefaultState": "true",
|
||||||
|
"Type": "DWord"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"link": "https://winutil.christitus.com/dev/tweaks/customize-preferences/multplaneoverlay"
|
||||||
|
},
|
||||||
"WPFToggleHiddenFiles": {
|
"WPFToggleHiddenFiles": {
|
||||||
"Content": "Show Hidden Files",
|
"Content": "Show Hidden Files",
|
||||||
"Description": "If Enabled then Hidden Files will be shown.",
|
"Description": "If Enabled then Hidden Files will be shown.",
|
||||||
@ -3874,7 +3936,7 @@
|
|||||||
# Folder types lookup table
|
# Folder types lookup table
|
||||||
$bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\"
|
$bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\"
|
||||||
|
|
||||||
# Flush explorer view database
|
# Flush Explorer view database
|
||||||
Remove-Item -Path $bags -Recurse -Force
|
Remove-Item -Path $bags -Recurse -Force
|
||||||
Write-Host \"Removed $bags\"
|
Write-Host \"Removed $bags\"
|
||||||
|
|
||||||
@ -3904,7 +3966,7 @@
|
|||||||
# Folder types lookup table
|
# Folder types lookup table
|
||||||
$bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\"
|
$bagMRU = \"HKCU:\\Software\\Classes\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\BagMRU\"
|
||||||
|
|
||||||
# Flush explorer view database
|
# Flush Explorer view database
|
||||||
Remove-Item -Path $bags -Recurse -Force
|
Remove-Item -Path $bags -Recurse -Force
|
||||||
Write-Host \"Removed $bags\"
|
Write-Host \"Removed $bags\"
|
||||||
|
|
||||||
@ -3914,5 +3976,23 @@
|
|||||||
Write-Host Please sign out and back in, or restart your computer to apply the changes!
|
Write-Host Please sign out and back in, or restart your computer to apply the changes!
|
||||||
"
|
"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"WPFTweaksDisableCrossDeviceResume": {
|
||||||
|
"Content": "Cross-Device Resume",
|
||||||
|
"Description": "This tweak controls the Resume function in Windows 11 24H2 and later, which allows you to resume an activity from a mobile device and vice-versa.",
|
||||||
|
"category": "Customize Preferences",
|
||||||
|
"panel": "2",
|
||||||
|
"Order": "a207_",
|
||||||
|
"Type": "Toggle",
|
||||||
|
"registry": [
|
||||||
|
{
|
||||||
|
"Path": "HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\CrossDeviceResume\\Configuration",
|
||||||
|
"Name": "IsResumeAllowed",
|
||||||
|
"Value": "1",
|
||||||
|
"OriginalValue": "0",
|
||||||
|
"DefaultState": "true",
|
||||||
|
"Type": "DWord"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -58,6 +58,9 @@ public class PowerManagement {
|
|||||||
$injectDrivers = $sync.MicrowinInjectDrivers.IsChecked
|
$injectDrivers = $sync.MicrowinInjectDrivers.IsChecked
|
||||||
$importDrivers = $sync.MicrowinImportDrivers.IsChecked
|
$importDrivers = $sync.MicrowinImportDrivers.IsChecked
|
||||||
|
|
||||||
|
$WPBT = $sync.MicroWinWPBT.IsChecked
|
||||||
|
$unsupported = $sync.MicroWinUnsupported.IsChecked
|
||||||
|
|
||||||
$importVirtIO = $sync.MicrowinCopyVirtIO.IsChecked
|
$importVirtIO = $sync.MicrowinCopyVirtIO.IsChecked
|
||||||
|
|
||||||
$mountDir = $sync.MicrowinMountDir.Text
|
$mountDir = $sync.MicrowinMountDir.Text
|
||||||
@ -66,7 +69,12 @@ public class PowerManagement {
|
|||||||
# Detect if the Windows image is an ESD file and convert it to WIM
|
# Detect if the Windows image is an ESD file and convert it to WIM
|
||||||
if (-not (Test-Path -Path "$mountDir\sources\install.wim" -PathType Leaf) -and (Test-Path -Path "$mountDir\sources\install.esd" -PathType Leaf)) {
|
if (-not (Test-Path -Path "$mountDir\sources\install.wim" -PathType Leaf) -and (Test-Path -Path "$mountDir\sources\install.esd" -PathType Leaf)) {
|
||||||
Write-Host "Exporting Windows image to a WIM file, keeping the index we want to work on. This can take several minutes, depending on the performance of your computer..."
|
Write-Host "Exporting Windows image to a WIM file, keeping the index we want to work on. This can take several minutes, depending on the performance of your computer..."
|
||||||
Export-WindowsImage -SourceImagePath $mountDir\sources\install.esd -SourceIndex $index -DestinationImagePath $mountDir\sources\install.wim -CompressionType "Max"
|
try {
|
||||||
|
Export-WindowsImage -SourceImagePath "$mountDir\sources\install.esd" -SourceIndex $index -DestinationImagePath "$mountDir\sources\install.wim" -CompressionType "Max"
|
||||||
|
} catch {
|
||||||
|
# Usually the case if it can't find unattend.dll on the host system. Guys, fix your corrupt messes that are your installations!
|
||||||
|
dism /english /export-image /sourceimagefile="$mountDir\sources\install.esd" /sourceindex=$index /destinationimagefile="$mountDir\sources\install.wim" /compress:max
|
||||||
|
}
|
||||||
if ($?) {
|
if ($?) {
|
||||||
Remove-Item -Path "$mountDir\sources\install.esd" -Force
|
Remove-Item -Path "$mountDir\sources\install.esd" -Force
|
||||||
# Since we've already exported the image index we wanted, switch to the first one
|
# Since we've already exported the image index we wanted, switch to the first one
|
||||||
@ -166,6 +174,25 @@ public class PowerManagement {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($WPBT) {
|
||||||
|
Write-Host "Disabling WPBT Execution"
|
||||||
|
reg load HKLM\zSYSTEM "$($scratchDir)\Windows\System32\config\SYSTEM"
|
||||||
|
reg add "HKLM\zSYSTEM\ControlSet001\Control\Session Manager" /v DisableWpbtExecution /t REG_DWORD /d 1 /f
|
||||||
|
reg unload HKLM\zSYSTEM
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($unsupported) {
|
||||||
|
Write-Host "Bypassing system requirements (locally)"
|
||||||
|
reg add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v "SV1" /t REG_DWORD /d 0 /f
|
||||||
|
reg add "HKCU\Control Panel\UnsupportedHardwareNotificationCache" /v "SV2" /t REG_DWORD /d 0 /f
|
||||||
|
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassCPUCheck" /t REG_DWORD /d 1 /f
|
||||||
|
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassRAMCheck" /t REG_DWORD /d 1 /f
|
||||||
|
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassSecureBootCheck" /t REG_DWORD /d 1 /f
|
||||||
|
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassStorageCheck" /t REG_DWORD /d 1 /f
|
||||||
|
reg add "HKLM\SYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
|
||||||
|
reg add "HKLM\SYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f
|
||||||
|
}
|
||||||
|
|
||||||
if ($importVirtIO) {
|
if ($importVirtIO) {
|
||||||
Write-Host "Copying VirtIO drivers..."
|
Write-Host "Copying VirtIO drivers..."
|
||||||
Microwin-CopyVirtIO
|
Microwin-CopyVirtIO
|
||||||
@ -221,6 +248,20 @@ public class PowerManagement {
|
|||||||
|
|
||||||
Write-Host "Create unattend.xml"
|
Write-Host "Create unattend.xml"
|
||||||
|
|
||||||
|
if (($sync.MicrowinAutoConfigBox.Text -ne "") -and (Test-Path "$($sync.MicrowinAutoConfigBox.Text)"))
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
Write-Host "A configuration file has been specified. Copying to WIM file..."
|
||||||
|
Copy-Item "$($sync.MicrowinAutoConfigBox.Text)" "$($scratchDir)\winutil-config.json"
|
||||||
|
}
|
||||||
|
catch
|
||||||
|
{
|
||||||
|
Write-Host "The config file could not be copied. Continuing without it..."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Create unattended answer file with user information - Check condition to learn more about this functionality
|
||||||
if ($sync.MicrowinUserName.Text -eq "")
|
if ($sync.MicrowinUserName.Text -eq "")
|
||||||
{
|
{
|
||||||
Microwin-NewUnattend -userName "User"
|
Microwin-NewUnattend -userName "User"
|
||||||
@ -242,7 +283,6 @@ public class PowerManagement {
|
|||||||
Copy-Item "$env:temp\unattend.xml" "$($scratchDir)\Windows\Panther\unattend.xml" -force
|
Copy-Item "$env:temp\unattend.xml" "$($scratchDir)\Windows\Panther\unattend.xml" -force
|
||||||
New-Item -ItemType Directory -Force -Path "$($scratchDir)\Windows\System32\Sysprep"
|
New-Item -ItemType Directory -Force -Path "$($scratchDir)\Windows\System32\Sysprep"
|
||||||
Copy-Item "$env:temp\unattend.xml" "$($scratchDir)\Windows\System32\Sysprep\unattend.xml" -force
|
Copy-Item "$env:temp\unattend.xml" "$($scratchDir)\Windows\System32\Sysprep\unattend.xml" -force
|
||||||
Copy-Item "$env:temp\unattend.xml" "$($scratchDir)\unattend.xml" -force
|
|
||||||
Write-Host "Done Copy unattend.xml"
|
Write-Host "Done Copy unattend.xml"
|
||||||
|
|
||||||
Write-Host "Create FirstRun"
|
Write-Host "Create FirstRun"
|
||||||
@ -277,7 +317,6 @@ public class PowerManagement {
|
|||||||
reg add "HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat" /v ChatIcon /t REG_DWORD /d 2 /f >$null 2>&1
|
reg add "HKLM\zSOFTWARE\Policies\Microsoft\Windows\Windows Chat" /v ChatIcon /t REG_DWORD /d 2 /f >$null 2>&1
|
||||||
reg add "HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f >$null 2>&1
|
reg add "HKLM\zNTUSER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "TaskbarMn" /t REG_DWORD /d 0 /f >$null 2>&1
|
||||||
reg query "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Communications" /v "ConfigureChatAutoInstall" >$null 2>&1
|
reg query "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Communications" /v "ConfigureChatAutoInstall" >$null 2>&1
|
||||||
# Write-Host Error code $LASTEXITCODE
|
|
||||||
Write-Host "Done disabling Teams"
|
Write-Host "Done disabling Teams"
|
||||||
|
|
||||||
Write-Host "Fix Windows Volume Mixer Issue"
|
Write-Host "Fix Windows Volume Mixer Issue"
|
||||||
@ -304,11 +343,6 @@ public class PowerManagement {
|
|||||||
'CrossDeviceUpdate'
|
'CrossDeviceUpdate'
|
||||||
) | ForEach-Object {
|
) | ForEach-Object {
|
||||||
Write-Host "Removing Windows Expedited App: $_"
|
Write-Host "Removing Windows Expedited App: $_"
|
||||||
|
|
||||||
# Copied here After Installation (Online)
|
|
||||||
# reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null
|
|
||||||
|
|
||||||
# When in Offline Image
|
|
||||||
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
|
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -316,7 +350,6 @@ public class PowerManagement {
|
|||||||
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
|
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
|
||||||
Write-Host "Setting all services to start manually"
|
Write-Host "Setting all services to start manually"
|
||||||
reg add "HKLM\zSOFTWARE\CurrentControlSet\Services" /v Start /t REG_DWORD /d 3 /f
|
reg add "HKLM\zSOFTWARE\CurrentControlSet\Services" /v Start /t REG_DWORD /d 3 /f
|
||||||
# Write-Host $LASTEXITCODE
|
|
||||||
|
|
||||||
Write-Host "Enabling Local Accounts on OOBE"
|
Write-Host "Enabling Local Accounts on OOBE"
|
||||||
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v "BypassNRO" /t REG_DWORD /d "1" /f
|
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\OOBE" /v "BypassNRO" /t REG_DWORD /d "1" /f
|
||||||
@ -371,7 +404,12 @@ public class PowerManagement {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
Write-Host "Exporting image into $mountDir\sources\install2.wim"
|
Write-Host "Exporting image into $mountDir\sources\install2.wim"
|
||||||
|
try {
|
||||||
Export-WindowsImage -SourceImagePath "$mountDir\sources\install.wim" -SourceIndex $index -DestinationImagePath "$mountDir\sources\install2.wim" -CompressionType "Max"
|
Export-WindowsImage -SourceImagePath "$mountDir\sources\install.wim" -SourceIndex $index -DestinationImagePath "$mountDir\sources\install2.wim" -CompressionType "Max"
|
||||||
|
} catch {
|
||||||
|
# Usually the case if it can't find unattend.dll on the host system. Guys, fix your corrupt messes that are your installations!
|
||||||
|
dism /english /export-image /sourceimagefile="$mountDir\sources\install.wim" /sourceindex=$index /destinationimagefile="$mountDir\sources\install2.wim" /compress:max
|
||||||
|
}
|
||||||
Write-Host "Remove old '$mountDir\sources\install.wim' and rename $mountDir\sources\install2.wim"
|
Write-Host "Remove old '$mountDir\sources\install.wim' and rename $mountDir\sources\install2.wim"
|
||||||
Remove-Item "$mountDir\sources\install.wim"
|
Remove-Item "$mountDir\sources\install.wim"
|
||||||
Rename-Item "$mountDir\sources\install2.wim" "$mountDir\sources\install.wim"
|
Rename-Item "$mountDir\sources\install2.wim" "$mountDir\sources\install.wim"
|
||||||
@ -385,6 +423,20 @@ public class PowerManagement {
|
|||||||
}
|
}
|
||||||
Write-Host "Windows image completed. Continuing with boot.wim."
|
Write-Host "Windows image completed. Continuing with boot.wim."
|
||||||
|
|
||||||
|
$esd = $sync.MicroWinESD.IsChecked
|
||||||
|
if ($esd) {
|
||||||
|
Write-Host "Converting install image to ESD."
|
||||||
|
try {
|
||||||
|
Export-WindowsImage -SourceImagePath "$mountDir\sources\install.wim" -SourceIndex $index -DestinationImagePath "$mountDir\sources\install.esd" -CompressionType "Recovery"
|
||||||
|
Remove-Item "$mountDir\sources\install.wim"
|
||||||
|
Write-Host "Converted install image to ESD."
|
||||||
|
} catch {
|
||||||
|
Start-Process -FilePath "$env:SystemRoot\System32\dism.exe" -ArgumentList "/export-image /sourceimagefile:`"$mountDir\sources\install.wim`" /sourceindex:1 /destinationimagefile:`"$mountDir\sources\install.esd`" /compress:recovery" -Wait -NoNewWindow
|
||||||
|
Remove-Item "$mountDir\sources\install.wim"
|
||||||
|
Write-Host "Converted install image to ESD."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# Next step boot image
|
# Next step boot image
|
||||||
Write-Host "Mounting boot image $mountDir\sources\boot.wim into $scratchDir"
|
Write-Host "Mounting boot image $mountDir\sources\boot.wim into $scratchDir"
|
||||||
Mount-WindowsImage -ImagePath "$mountDir\sources\boot.wim" -Index 2 -Path "$scratchDir"
|
Mount-WindowsImage -ImagePath "$mountDir\sources\boot.wim" -Index 2 -Path "$scratchDir"
|
||||||
@ -481,6 +533,7 @@ public class PowerManagement {
|
|||||||
Write-Host "Reason: $($exitCode.Message)"
|
Write-Host "Reason: $($exitCode.Message)"
|
||||||
Invoke-MicrowinBusyInfo -action "warning" -message $exitCode.Message
|
Invoke-MicrowinBusyInfo -action "warning" -message $exitCode.Message
|
||||||
Set-WinUtilTaskbaritem -state "Error" -value 1 -overlay "warning"
|
Set-WinUtilTaskbaritem -state "Error" -value 1 -overlay "warning"
|
||||||
|
[System.Windows.MessageBox]::Show("MicroWin failed to make the ISO.", "Winutil", [System.Windows.MessageBoxButton]::OK, [System.Windows.MessageBoxImage]::Error)
|
||||||
} catch {
|
} catch {
|
||||||
# Could not get error description from Windows APIs
|
# Could not get error description from Windows APIs
|
||||||
}
|
}
|
||||||
@ -488,7 +541,6 @@ public class PowerManagement {
|
|||||||
|
|
||||||
Toggle-MicrowinPanel 1
|
Toggle-MicrowinPanel 1
|
||||||
|
|
||||||
#$sync.MicrowinFinalIsoLocation.Text = "$env:temp\microwin.iso"
|
|
||||||
$sync.MicrowinFinalIsoLocation.Text = "$($SaveDialog.FileName)"
|
$sync.MicrowinFinalIsoLocation.Text = "$($SaveDialog.FileName)"
|
||||||
# Allow the machine to sleep again (optional)
|
# Allow the machine to sleep again (optional)
|
||||||
[PowerManagement]::SetThreadExecutionState(0)
|
[PowerManagement]::SetThreadExecutionState(0)
|
||||||
|
@ -85,6 +85,14 @@ function Microwin-NewFirstRun {
|
|||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp" /v Enabled /t REG_DWORD /d 0 /f
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.StartupApp" /v Enabled /t REG_DWORD /d 0 /f
|
||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /f
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /f
|
||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /v Enabled /t REG_DWORD /d 0 /f
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Microsoft.SkyDrive.Desktop" /v Enabled /t REG_DWORD /d 0 /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AccountHealth" /f
|
||||||
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.AccountHealth" /v Enabled /t REG_DWORD /d 0 /f
|
||||||
|
|
||||||
|
if (Test-Path -Path "$env:HOMEDRIVE\winutil-config.json")
|
||||||
|
{
|
||||||
|
Write-Host "Configuration file detected. Applying..."
|
||||||
|
iex "& { $(irm christitus.com/win) } -Config `"$env:HOMEDRIVE\winutil-config.json`" -Run"
|
||||||
|
}
|
||||||
|
|
||||||
'@
|
'@
|
||||||
$firstRun | Out-File -FilePath "$env:temp\FirstStartup.ps1" -Force
|
$firstRun | Out-File -FilePath "$env:temp\FirstStartup.ps1" -Force
|
||||||
|
@ -97,9 +97,9 @@ Function Install-WinUtilProgramWinget {
|
|||||||
return $true
|
return $true
|
||||||
}
|
}
|
||||||
|
|
||||||
$userChoice = [System.Windows.MessageBox]::Show("Do you want to attempt $($Program) installation with specific user credentials? Select 'Yes' to proceed or 'No' to skip.", "User credential Prompt", [System.Windows.MessageBoxButton]::YesNo)
|
$userAcknowledgment = [System.Windows.MessageBox]::Show("You need to input your password to install $($Program) with specific user credentials.", "User credential Prompt", [System.Windows.MessageBoxButton]::Ok)
|
||||||
if ($userChoice -eq 'Yes') {
|
if ($userAcknowledgment -eq 'Ok') {
|
||||||
$getcreds = Get-Credential
|
$getcreds = Get-Credential $env:USERNAME
|
||||||
$status = Invoke-Winget -wingetId $Program -credential $getcreds
|
$status = Invoke-Winget -wingetId $Program -credential $getcreds
|
||||||
if ($status -eq 0) {
|
if ($status -eq 0) {
|
||||||
Write-Host "$($Program) installed successfully with User prompt."
|
Write-Host "$($Program) installed successfully with User prompt."
|
||||||
|
88
functions/private/Invoke-WinUtilFontScaling.ps1
Normal file
88
functions/private/Invoke-WinUtilFontScaling.ps1
Normal file
@ -0,0 +1,88 @@
|
|||||||
|
function Invoke-WinUtilFontScaling {
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Applies UI and font scaling for accessibility
|
||||||
|
|
||||||
|
.PARAMETER ScaleFactor
|
||||||
|
Sets the scaling from 0.75 and 2.0.
|
||||||
|
Default is 1.0 (100% - no scaling)
|
||||||
|
|
||||||
|
.EXAMPLE
|
||||||
|
Invoke-WinUtilFontScaling -ScaleFactor 1.25
|
||||||
|
# Applies 125% scaling
|
||||||
|
#>
|
||||||
|
|
||||||
|
param (
|
||||||
|
[double]$ScaleFactor = 1.0
|
||||||
|
)
|
||||||
|
|
||||||
|
# Validate if scale factor is within the range
|
||||||
|
if ($ScaleFactor -lt 0.75 -or $ScaleFactor -gt 2.0) {
|
||||||
|
Write-Warning "Scale factor must be between 0.75 and 2.0. Using 1.0 instead."
|
||||||
|
$ScaleFactor = 1.0
|
||||||
|
}
|
||||||
|
|
||||||
|
# Define an array for resources to be scaled
|
||||||
|
$fontResources = @(
|
||||||
|
# Fonts
|
||||||
|
"FontSize",
|
||||||
|
"ButtonFontSize",
|
||||||
|
"HeaderFontSize",
|
||||||
|
"TabButtonFontSize",
|
||||||
|
"ConfigTabButtonFontSize",
|
||||||
|
"IconFontSize",
|
||||||
|
"SettingsIconFontSize",
|
||||||
|
"CloseIconFontSize",
|
||||||
|
"AppEntryFontSize",
|
||||||
|
"SearchBarTextBoxFontSize",
|
||||||
|
"SearchBarClearButtonFontSize",
|
||||||
|
"CustomDialogFontSize",
|
||||||
|
"CustomDialogFontSizeHeader",
|
||||||
|
"ConfigUpdateButtonFontSize",
|
||||||
|
# Buttons and UI
|
||||||
|
"CheckBoxBulletDecoratorSize",
|
||||||
|
"ButtonWidth",
|
||||||
|
"ButtonHeight",
|
||||||
|
"TabButtonWidth",
|
||||||
|
"TabButtonHeight",
|
||||||
|
"IconButtonSize",
|
||||||
|
"AppEntryWidth",
|
||||||
|
"SearchBarWidth",
|
||||||
|
"SearchBarHeight",
|
||||||
|
"CustomDialogWidth",
|
||||||
|
"CustomDialogHeight",
|
||||||
|
"CustomDialogLogoSize",
|
||||||
|
"MicroWinLogoSize",
|
||||||
|
"ToolTipWidth"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Apply scaling to each resource
|
||||||
|
foreach ($resourceName in $fontResources) {
|
||||||
|
try {
|
||||||
|
# Get the default font size from the theme configuration
|
||||||
|
$originalValue = $sync.configs.themes.shared.$resourceName
|
||||||
|
if ($originalValue) {
|
||||||
|
# Convert string to double since values are stored as strings
|
||||||
|
$originalValue = [double]$originalValue
|
||||||
|
# Calculates and applies the new font size
|
||||||
|
$newValue = [math]::Round($originalValue * $ScaleFactor, 1)
|
||||||
|
$sync.Form.Resources[$resourceName] = $newValue
|
||||||
|
Write-Debug "Scaled $resourceName from original $originalValue to $newValue (factor: $ScaleFactor)"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch {
|
||||||
|
Write-Warning "Failed to scale resource $resourceName : $_"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
# Update the font scaling percentage displayed on the UI
|
||||||
|
if ($sync.FontScalingValue) {
|
||||||
|
$percentage = [math]::Round($ScaleFactor * 100)
|
||||||
|
$sync.FontScalingValue.Text = "$percentage%"
|
||||||
|
}
|
||||||
|
|
||||||
|
Write-Debug "Font scaling applied with factor: $ScaleFactor"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
24
functions/public/Invoke-AutoConfigDialog.ps1
Normal file
24
functions/public/Invoke-AutoConfigDialog.ps1
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
function Invoke-AutoConfigDialog {
|
||||||
|
|
||||||
|
<#
|
||||||
|
|
||||||
|
.SYNOPSIS
|
||||||
|
Sets the automatic configuration file based on a specified JSON file
|
||||||
|
|
||||||
|
#>
|
||||||
|
|
||||||
|
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null
|
||||||
|
$OFD = New-Object System.Windows.Forms.OpenFileDialog
|
||||||
|
$OFD.Filter = "JSON Files (*.json)|*.json"
|
||||||
|
$OFD.ShowDialog()
|
||||||
|
|
||||||
|
if (($OFD.FileName -eq "") -and ($sync.MicrowinAutoConfigBox.Text -eq ""))
|
||||||
|
{
|
||||||
|
Write-Host "No automatic config file has been selected. Continuing without one..."
|
||||||
|
return
|
||||||
|
}
|
||||||
|
elseif ($OFD.FileName -ne "")
|
||||||
|
{
|
||||||
|
$sync.MicrowinAutoConfigBox.Text = "$($OFD.FileName)"
|
||||||
|
}
|
||||||
|
}
|
@ -35,16 +35,16 @@ function Invoke-WPFButton {
|
|||||||
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
"WPFFeatureInstall" {Invoke-WPFFeatureInstall}
|
||||||
"WPFPanelDISM" {Invoke-WPFSystemRepair}
|
"WPFPanelDISM" {Invoke-WPFSystemRepair}
|
||||||
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
"WPFPanelAutologin" {Invoke-WPFPanelAutologin}
|
||||||
"WPFPanelcomputer" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelComputer" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelcontrol" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelControl" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelnetwork" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelNetwork" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelpower" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelPower" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelregion" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelPrinter" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelsound" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelRegion" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelprinter" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelSound" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelsystem" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelSystem" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPaneluser" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelTimedate" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFPanelGodMode" {Invoke-WPFControlPanel -Panel $button}
|
"WPFPanelUser" {Invoke-WPFControlPanel -Panel $button}
|
||||||
"WPFUpdatesdefault" {Invoke-WPFFixesUpdate}
|
"WPFUpdatesdefault" {Invoke-WPFFixesUpdate}
|
||||||
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
|
"WPFFixesUpdate" {Invoke-WPFFixesUpdate}
|
||||||
"WPFFixesWinget" {Invoke-WPFFixesWinget}
|
"WPFFixesWinget" {Invoke-WPFFixesWinget}
|
||||||
@ -64,5 +64,6 @@ function Invoke-WPFButton {
|
|||||||
"WPFWinUtilSSHServer" {Invoke-WPFSSHServer}
|
"WPFWinUtilSSHServer" {Invoke-WPFSSHServer}
|
||||||
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
|
"WPFselectedAppsButton" {$sync.selectedAppsPopup.IsOpen = -not $sync.selectedAppsPopup.IsOpen}
|
||||||
"WPFMicrowinPanelBack" {Toggle-MicrowinPanel 1}
|
"WPFMicrowinPanelBack" {Toggle-MicrowinPanel 1}
|
||||||
|
"MicrowinAutoConfigBtn" {Invoke-AutoConfigDialog}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,15 +11,15 @@ function Invoke-WPFControlPanel {
|
|||||||
param($Panel)
|
param($Panel)
|
||||||
|
|
||||||
switch ($Panel) {
|
switch ($Panel) {
|
||||||
"WPFPanelcontrol" {control}
|
"WPFPanelControl" {control}
|
||||||
"WPFPanelcomputer" {compmgmt.msc}
|
"WPFPanelComputer" {compmgmt.msc}
|
||||||
"WPFPanelnetwork" {ncpa.cpl}
|
"WPFPanelNetwork" {ncpa.cpl}
|
||||||
"WPFPanelpower" {powercfg.cpl}
|
"WPFPanelPower" {powercfg.cpl}
|
||||||
"WPFPanelregion" {intl.cpl}
|
"WPFPanelPrinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
||||||
"WPFPanelsound" {mmsys.cpl}
|
"WPFPanelRegion" {intl.cpl}
|
||||||
"WPFPanelprinter" {Start-Process "shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"}
|
"WPFPanelSound" {mmsys.cpl}
|
||||||
"WPFPanelsystem" {sysdm.cpl}
|
"WPFPanelSystem" {sysdm.cpl}
|
||||||
"WPFPaneluser" {control userpasswords2}
|
"WPFPanelTimedate" {timedate.cpl}
|
||||||
"WPFPanelGodMode" {Start-Process "shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"}
|
"WPFPanelUser" {control userpasswords2}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,10 +4,8 @@ function Invoke-WPFInstall {
|
|||||||
[PSObject[]]$PackagesToInstall = $($sync.selectedApps | Foreach-Object { $sync.configs.applicationsHashtable.$_ })
|
[PSObject[]]$PackagesToInstall = $($sync.selectedApps | Foreach-Object { $sync.configs.applicationsHashtable.$_ })
|
||||||
)
|
)
|
||||||
<#
|
<#
|
||||||
|
|
||||||
.SYNOPSIS
|
.SYNOPSIS
|
||||||
Installs the selected programs using winget, if one or more of the selected programs are already installed on the system, winget will try and perform an upgrade if there's a newer version to install.
|
Installs the selected programs using winget, if one or more of the selected programs are already installed on the system, winget will try and perform an upgrade if there's a newer version to install.
|
||||||
|
|
||||||
#>
|
#>
|
||||||
|
|
||||||
if($sync.ProcessRunning) {
|
if($sync.ProcessRunning) {
|
||||||
@ -34,12 +32,54 @@ function Invoke-WPFInstall {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$sync.ProcessRunning = $true
|
$sync.ProcessRunning = $true
|
||||||
Show-WPFInstallAppBusy -text "Installing apps..."
|
if($packagesWinget.Count -gt 0 -and $packagesWinget -ne "0") {
|
||||||
|
Add-Type -AssemblyName System.DirectoryServices.AccountManagement
|
||||||
|
Add-Type -assembly System.Windows.Forms
|
||||||
|
$PrincipalContext = New-Object System.DirectoryServices.AccountManagement.PrincipalContext('Machine')
|
||||||
|
$user = $env:USERNAME
|
||||||
|
|
||||||
if($packagesWinget.Count -gt 0) {
|
Get-LocalUser | Where-Object Enabled -eq $true | ForEach-Object {
|
||||||
|
try {
|
||||||
|
$myPasswordIsBlank = $PrincipalContext.ValidateCredentials($user, $null)
|
||||||
|
} catch {
|
||||||
|
$form = New-Object System.Windows.Forms.Form
|
||||||
|
$form.Text = "Set password for $user"
|
||||||
|
$form.Size = New-Object System.Drawing.Size(500, 200)
|
||||||
|
|
||||||
|
$label = New-Object System.Windows.Forms.Label
|
||||||
|
$label.Text = 'Maybe a program needs to be installed in "usermode" and you have no password set, you need to set it here. After putting a password into the text box a page asking for your password might open (not right after). If you keep the text box empty, nothing will happen.
|
||||||
|
REMEMBER THE PASSWORD FOR THE FUTURE. YOU WILL NEED FOR STUFF AND TO LOGIN IF AUTOLOGIN ISN`T SET'
|
||||||
|
$label.Size = New-Object System.Drawing.Size(480, 60)
|
||||||
|
$label.Location = New-Object System.Drawing.Point(10, 10)
|
||||||
|
$form.Controls.Add($label)
|
||||||
|
|
||||||
|
$passwordBox = New-Object System.Windows.Forms.TextBox
|
||||||
|
$passwordBox.Size = New-Object System.Drawing.Size(380, 20)
|
||||||
|
$passwordBox.UseSystemPasswordChar = $true
|
||||||
|
$passwordBox.Location = New-Object System.Drawing.Point(10, 125)
|
||||||
|
$form.Controls.Add($passwordBox)
|
||||||
|
|
||||||
|
$button = New-Object System.Windows.Forms.Button
|
||||||
|
$button.Text = 'Submit'
|
||||||
|
$button.Size = New-Object System.Drawing.Size(75, 23)
|
||||||
|
$button.Location = New-Object System.Drawing.Point(400, 125)
|
||||||
|
$button.Add_Click({
|
||||||
|
$password = $passwordBox.Text | ConvertTo-SecureString -AsPlainText -Force
|
||||||
|
if ($password) {
|
||||||
|
Set-LocalUser -Name $user -Password $password
|
||||||
|
$Form.Close()
|
||||||
|
} else {
|
||||||
|
[System.Windows.Forms.MessageBox]::Show('No password entered!')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
$form.Controls.Add($button)
|
||||||
|
$form.ShowDialog() | Out-Null
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Show-WPFInstallAppBusy -text "Installing apps..."
|
||||||
Install-WinUtilWinget
|
Install-WinUtilWinget
|
||||||
Install-WinUtilProgramWinget -Action Install -Programs $packagesWinget
|
Install-WinUtilProgramWinget -Action Install -Programs $packagesWinget
|
||||||
|
|
||||||
}
|
}
|
||||||
if($packagesChoco.Count -gt 0) {
|
if($packagesChoco.Count -gt 0) {
|
||||||
Install-WinUtilChoco
|
Install-WinUtilChoco
|
||||||
|
@ -261,7 +261,7 @@ $commonKeyEvents = {
|
|||||||
$sync["Form"].Add_PreViewKeyDown($commonKeyEvents)
|
$sync["Form"].Add_PreViewKeyDown($commonKeyEvents)
|
||||||
|
|
||||||
$sync["Form"].Add_MouseLeftButtonDown({
|
$sync["Form"].Add_MouseLeftButtonDown({
|
||||||
Invoke-WPFPopup -Action "Hide" -Popups @("Settings", "Theme")
|
Invoke-WPFPopup -Action "Hide" -Popups @("Settings", "Theme", "FontScaling")
|
||||||
$sync["Form"].DragMove()
|
$sync["Form"].DragMove()
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -279,7 +279,7 @@ $sync["Form"].Add_MouseDoubleClick({
|
|||||||
|
|
||||||
$sync["Form"].Add_Deactivated({
|
$sync["Form"].Add_Deactivated({
|
||||||
Write-Debug "WinUtil lost focus"
|
Write-Debug "WinUtil lost focus"
|
||||||
Invoke-WPFPopup -Action "Hide" -Popups @("Settings", "Theme")
|
Invoke-WPFPopup -Action "Hide" -Popups @("Settings", "Theme", "FontScaling")
|
||||||
})
|
})
|
||||||
|
|
||||||
$sync["Form"].Add_ContentRendered({
|
$sync["Form"].Add_ContentRendered({
|
||||||
@ -315,33 +315,40 @@ $sync["Form"].Add_ContentRendered({
|
|||||||
|
|
||||||
# maybe this is not the best place to load and execute config file?
|
# maybe this is not the best place to load and execute config file?
|
||||||
# maybe community can help?
|
# maybe community can help?
|
||||||
if ($PARAM_CONFIG) {
|
if ($PARAM_CONFIG -and -not [string]::IsNullOrWhiteSpace($PARAM_CONFIG)) {
|
||||||
Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG
|
Invoke-WPFImpex -type "import" -Config $PARAM_CONFIG
|
||||||
if ($PARAM_RUN) {
|
if ($PARAM_RUN) {
|
||||||
|
# Wait for any existing process to complete before starting
|
||||||
while ($sync.ProcessRunning) {
|
while ($sync.ProcessRunning) {
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
}
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Applying tweaks..."
|
Write-Host "Applying tweaks..."
|
||||||
|
if (-not $sync.ProcessRunning) {
|
||||||
Invoke-WPFtweaksbutton
|
Invoke-WPFtweaksbutton
|
||||||
while ($sync.ProcessRunning) {
|
while ($sync.ProcessRunning) {
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Installing features..."
|
Write-Host "Installing features..."
|
||||||
|
if (-not $sync.ProcessRunning) {
|
||||||
Invoke-WPFFeatureInstall
|
Invoke-WPFFeatureInstall
|
||||||
while ($sync.ProcessRunning) {
|
while ($sync.ProcessRunning) {
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Installing applications..."
|
Write-Host "Installing applications..."
|
||||||
|
if (-not $sync.ProcessRunning) {
|
||||||
|
Invoke-WPFInstall
|
||||||
while ($sync.ProcessRunning) {
|
while ($sync.ProcessRunning) {
|
||||||
Start-Sleep -Seconds 1
|
Start-Sleep -Seconds 1
|
||||||
}
|
}
|
||||||
Invoke-WPFInstall
|
}
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
|
|
||||||
Write-Host "Done."
|
Write-Host "Done."
|
||||||
@ -441,7 +448,7 @@ $sync["Form"].Add_Activated({
|
|||||||
|
|
||||||
$sync["ThemeButton"].Add_Click({
|
$sync["ThemeButton"].Add_Click({
|
||||||
Write-Debug "ThemeButton clicked"
|
Write-Debug "ThemeButton clicked"
|
||||||
Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Hide"; "Theme" = "Toggle" }
|
Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Hide"; "Theme" = "Toggle"; "FontScaling" = "Hide" }
|
||||||
})
|
})
|
||||||
$sync["AutoThemeMenuItem"].Add_Click({
|
$sync["AutoThemeMenuItem"].Add_Click({
|
||||||
Write-Debug "About clicked"
|
Write-Debug "About clicked"
|
||||||
@ -461,7 +468,7 @@ $sync["LightThemeMenuItem"].Add_Click({
|
|||||||
|
|
||||||
$sync["SettingsButton"].Add_Click({
|
$sync["SettingsButton"].Add_Click({
|
||||||
Write-Debug "SettingsButton clicked"
|
Write-Debug "SettingsButton clicked"
|
||||||
Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Toggle"; "Theme" = "Hide" }
|
Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Toggle"; "Theme" = "Hide"; "FontScaling" = "Hide" }
|
||||||
})
|
})
|
||||||
$sync["ImportMenuItem"].Add_Click({
|
$sync["ImportMenuItem"].Add_Click({
|
||||||
Write-Debug "Import clicked"
|
Write-Debug "Import clicked"
|
||||||
@ -481,7 +488,7 @@ $sync["AboutMenuItem"].Add_Click({
|
|||||||
Author : <a href="https://github.com/ChrisTitusTech">@christitustech</a>
|
Author : <a href="https://github.com/ChrisTitusTech">@christitustech</a>
|
||||||
UI : <a href="https://github.com/MyDrift-user">@MyDrift-user</a>, <a href="https://github.com/Marterich">@Marterich</a>
|
UI : <a href="https://github.com/MyDrift-user">@MyDrift-user</a>, <a href="https://github.com/Marterich">@Marterich</a>
|
||||||
Runspace : <a href="https://github.com/DeveloperDurp">@DeveloperDurp</a>, <a href="https://github.com/Marterich">@Marterich</a>
|
Runspace : <a href="https://github.com/DeveloperDurp">@DeveloperDurp</a>, <a href="https://github.com/Marterich">@Marterich</a>
|
||||||
MicroWin : <a href="https://github.com/KonTy">@KonTy</a>, <a href="https://github.com/CodingWonders">@CodingWonders</a>
|
MicroWin : <a href="https://github.com/KonTy">@KonTy</a>, <a href="https://github.com/CodingWonders">@CodingWonders</a>, <a href="https://github.com/Real-MullaC">@Real-MullaC</a>
|
||||||
GitHub : <a href="https://github.com/ChrisTitusTech/winutil">ChrisTitusTech/winutil</a>
|
GitHub : <a href="https://github.com/ChrisTitusTech/winutil">ChrisTitusTech/winutil</a>
|
||||||
Version : <a href="https://github.com/ChrisTitusTech/winutil/releases/tag/$($sync.version)">$($sync.version)</a>
|
Version : <a href="https://github.com/ChrisTitusTech/winutil/releases/tag/$($sync.version)">$($sync.version)</a>
|
||||||
"@
|
"@
|
||||||
@ -506,5 +513,30 @@ $sync["SponsorMenuItem"].Add_Click({
|
|||||||
Show-CustomDialog -Title "Sponsors" -Message $authorInfo -EnableScroll $true
|
Show-CustomDialog -Title "Sponsors" -Message $authorInfo -EnableScroll $true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Font Scaling Event Handlers
|
||||||
|
$sync["FontScalingButton"].Add_Click({
|
||||||
|
Write-Debug "FontScalingButton clicked"
|
||||||
|
Invoke-WPFPopup -PopupActionTable @{ "Settings" = "Hide"; "Theme" = "Hide"; "FontScaling" = "Toggle" }
|
||||||
|
})
|
||||||
|
|
||||||
|
$sync["FontScalingSlider"].Add_ValueChanged({
|
||||||
|
param($slider)
|
||||||
|
$percentage = [math]::Round($slider.Value * 100)
|
||||||
|
$sync.FontScalingValue.Text = "$percentage%"
|
||||||
|
})
|
||||||
|
|
||||||
|
$sync["FontScalingResetButton"].Add_Click({
|
||||||
|
Write-Debug "FontScalingResetButton clicked"
|
||||||
|
$sync.FontScalingSlider.Value = 1.0
|
||||||
|
$sync.FontScalingValue.Text = "100%"
|
||||||
|
})
|
||||||
|
|
||||||
|
$sync["FontScalingApplyButton"].Add_Click({
|
||||||
|
Write-Debug "FontScalingApplyButton clicked"
|
||||||
|
$scaleFactor = $sync.FontScalingSlider.Value
|
||||||
|
Invoke-WinUtilFontScaling -ScaleFactor $scaleFactor
|
||||||
|
Invoke-WPFPopup -Action "Hide" -Popups @("FontScaling")
|
||||||
|
})
|
||||||
|
|
||||||
$sync["Form"].ShowDialog() | out-null
|
$sync["Form"].ShowDialog() | out-null
|
||||||
Stop-Transcript
|
Stop-Transcript
|
||||||
|
@ -948,6 +948,7 @@
|
|||||||
<ColumnDefinition Width="Auto"/><!-- Space for close button -->
|
<ColumnDefinition Width="Auto"/><!-- Space for close button -->
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/><!-- Space for Font Scaling button-->
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
@ -1032,7 +1033,7 @@
|
|||||||
</Border>
|
</Border>
|
||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
<Button Name="SettingsButton"
|
<Button Name="FontScalingButton"
|
||||||
Style="{StaticResource HoverButtonStyle}"
|
Style="{StaticResource HoverButtonStyle}"
|
||||||
Grid.Column="3" BorderBrush="Transparent"
|
Grid.Column="3" BorderBrush="Transparent"
|
||||||
Background="{DynamicResource MainBackgroundColor}"
|
Background="{DynamicResource MainBackgroundColor}"
|
||||||
@ -1040,6 +1041,74 @@
|
|||||||
FontSize="{DynamicResource SettingsIconFontSize}"
|
FontSize="{DynamicResource SettingsIconFontSize}"
|
||||||
Width="{DynamicResource IconButtonSize}" Height="{DynamicResource IconButtonSize}"
|
Width="{DynamicResource IconButtonSize}" Height="{DynamicResource IconButtonSize}"
|
||||||
HorizontalAlignment="Right" VerticalAlignment="Top"
|
HorizontalAlignment="Right" VerticalAlignment="Top"
|
||||||
|
Margin="0,5,5,0"
|
||||||
|
FontFamily="Segoe MDL2 Assets"
|
||||||
|
Content=""
|
||||||
|
ToolTip="Adjust Font Scaling for Accessibility"
|
||||||
|
/>
|
||||||
|
<Popup Grid.Column="3" Name="FontScalingPopup"
|
||||||
|
IsOpen="False"
|
||||||
|
PlacementTarget="{Binding ElementName=FontScalingButton}" Placement="Bottom"
|
||||||
|
HorizontalAlignment="Right" VerticalAlignment="Top">
|
||||||
|
<Border Background="{DynamicResource MainBackgroundColor}" BorderBrush="{DynamicResource MainForegroundColor}" BorderThickness="1" CornerRadius="0" Margin="0">
|
||||||
|
<StackPanel Background="{DynamicResource MainBackgroundColor}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" MinWidth="200">
|
||||||
|
<TextBlock Text="Font Scaling"
|
||||||
|
FontSize="{DynamicResource ButtonFontSize}"
|
||||||
|
Foreground="{DynamicResource MainForegroundColor}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Margin="10,5,10,5"
|
||||||
|
FontWeight="Bold"/>
|
||||||
|
<Separator Margin="5,0,5,5"/>
|
||||||
|
<StackPanel Orientation="Horizontal" Margin="10,5,10,10">
|
||||||
|
<TextBlock Text="Small"
|
||||||
|
FontSize="{DynamicResource ButtonFontSize}"
|
||||||
|
Foreground="{DynamicResource MainForegroundColor}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="0,0,10,0"/>
|
||||||
|
<Slider Name="FontScalingSlider"
|
||||||
|
Minimum="0.75" Maximum="2.0"
|
||||||
|
Value="1.0"
|
||||||
|
TickFrequency="0.25"
|
||||||
|
TickPlacement="BottomRight"
|
||||||
|
IsSnapToTickEnabled="True"
|
||||||
|
Width="120"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
<TextBlock Text="Large"
|
||||||
|
FontSize="{DynamicResource ButtonFontSize}"
|
||||||
|
Foreground="{DynamicResource MainForegroundColor}"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="10,0,0,0"/>
|
||||||
|
</StackPanel>
|
||||||
|
<TextBlock Name="FontScalingValue"
|
||||||
|
Text="100%"
|
||||||
|
FontSize="{DynamicResource ButtonFontSize}"
|
||||||
|
Foreground="{DynamicResource MainForegroundColor}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
Margin="10,0,10,5"/>
|
||||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="10,0,10,10">
|
||||||
|
<Button Name="FontScalingResetButton"
|
||||||
|
Content="Reset"
|
||||||
|
Style="{StaticResource HoverButtonStyle}"
|
||||||
|
Width="60" Height="25"
|
||||||
|
Margin="5,0,5,0"/>
|
||||||
|
<Button Name="FontScalingApplyButton"
|
||||||
|
Content="Apply"
|
||||||
|
Style="{StaticResource HoverButtonStyle}"
|
||||||
|
Width="60" Height="25"
|
||||||
|
Margin="5,0,5,0"/>
|
||||||
|
</StackPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
</Popup>
|
||||||
|
|
||||||
|
<Button Name="SettingsButton"
|
||||||
|
Style="{StaticResource HoverButtonStyle}"
|
||||||
|
Grid.Column="4" BorderBrush="Transparent"
|
||||||
|
Background="{DynamicResource MainBackgroundColor}"
|
||||||
|
Foreground="{DynamicResource MainForegroundColor}"
|
||||||
|
FontSize="{DynamicResource SettingsIconFontSize}"
|
||||||
|
Width="{DynamicResource IconButtonSize}" Height="{DynamicResource IconButtonSize}"
|
||||||
|
HorizontalAlignment="Right" VerticalAlignment="Top"
|
||||||
Margin="5,5,5,0"
|
Margin="5,5,5,0"
|
||||||
FontFamily="Segoe MDL2 Assets"
|
FontFamily="Segoe MDL2 Assets"
|
||||||
Content=""/>
|
Content=""/>
|
||||||
@ -1067,7 +1136,7 @@
|
|||||||
</Popup>
|
</Popup>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
Grid.Column="4"
|
Grid.Column="5"
|
||||||
Content="×" BorderThickness="0"
|
Content="×" BorderThickness="0"
|
||||||
BorderBrush="Transparent"
|
BorderBrush="Transparent"
|
||||||
Background="{DynamicResource MainBackgroundColor}"
|
Background="{DynamicResource MainBackgroundColor}"
|
||||||
@ -1390,6 +1459,37 @@
|
|||||||
Foreground="{DynamicResource LabelboxForegroundColor}"
|
Foreground="{DynamicResource LabelboxForegroundColor}"
|
||||||
/>
|
/>
|
||||||
<Rectangle Fill="{DynamicResource MainForegroundColor}" Height="2" HorizontalAlignment="Stretch" Margin="0,10,0,10"/>
|
<Rectangle Fill="{DynamicResource MainForegroundColor}" Height="2" HorizontalAlignment="Stretch" Margin="0,10,0,10"/>
|
||||||
|
<TextBlock Margin="6" Padding="1" TextWrapping="Wrap"><Bold>Tweaks (leave empty for default settings)</Bold></TextBlock>
|
||||||
|
<CheckBox Name="MicroWinWPBT" Margin="{DynamicResource MicrowinCheckBoxMargin}" IsChecked="False" ToolTip="If enabled then allows your computer vendor to execute a program each time it boots. It enables computer vendors to force install anti-theft software, software drivers, or a software program conveniently. This could also be a security risk."><AccessText TextWrapping="Wrap" Text="Disable Windows Platform Binary Table (WPBT) (ADVANCED TWEAK)" /></CheckBox>
|
||||||
|
<CheckBox Name="MicroWinUnsupported" Margin="{DynamicResource MicrowinCheckBoxMargin}" IsChecked="False" ToolTip="If enabled then it will allow you to upgrade your PC to Windows 11 if your PC does not support Windows 11 yet. This is good for if you do not have a USB and want to upgrade to Windows 11 on unsupported hardware."><AccessText TextWrapping="Wrap" Text="Allow this PC to upgrade to Windows 11" /></CheckBox>
|
||||||
|
<CheckBox Name="MicroWinESD" Margin="{DynamicResource MicrowinCheckBoxMargin}" IsChecked="False" ToolTip="The ESD file format compresses the installation image even further, therefore reducing ISO file sizes a little more. Select this if you have a small USB."><AccessText TextWrapping="Wrap" Text="Convert this image to ESD (This will take longer)" /></CheckBox>
|
||||||
|
<TextBlock Margin="6" Padding="1" TextWrapping="Wrap">WinUtil configuration file (JSON)</TextBlock>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="*" /> <!-- Takes the remaining space -->
|
||||||
|
<ColumnDefinition Width="32" /> <!-- Fixed width for Button -->
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBox Name="MicrowinAutoConfigBox" Background="Transparent" BorderBrush="{DynamicResource MainForegroundColor}"
|
||||||
|
Text=""
|
||||||
|
Margin="2"
|
||||||
|
IsReadOnly="False"
|
||||||
|
Grid.Column="0"
|
||||||
|
ToolTip="Path of your configuration file"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Foreground="{DynamicResource LabelboxForegroundColor}">
|
||||||
|
</TextBox>
|
||||||
|
<Button Name="MicrowinAutoConfigBtn"
|
||||||
|
Width="Auto"
|
||||||
|
Height="Auto"
|
||||||
|
Grid.Column="1"
|
||||||
|
Margin="2"
|
||||||
|
Padding="1" VerticalAlignment="Center">
|
||||||
|
<Button.Content>
|
||||||
|
...
|
||||||
|
</Button.Content>
|
||||||
|
</Button>
|
||||||
|
</Grid>
|
||||||
|
<Rectangle Fill="{DynamicResource MainForegroundColor}" Height="2" HorizontalAlignment="Stretch" Margin="0,10,0,10"/>
|
||||||
<Button Name="WPFMicrowin" Content="Start the process" Margin="2" Padding="15"/>
|
<Button Name="WPFMicrowin" Content="Start the process" Margin="2" Padding="15"/>
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
<StackPanel HorizontalAlignment="Left" SnapsToDevicePixels="True" Margin="1" Visibility="Collapsed">
|
<StackPanel HorizontalAlignment="Left" SnapsToDevicePixels="True" Margin="1" Visibility="Collapsed">
|
||||||
@ -1458,7 +1558,7 @@
|
|||||||
May take several minutes to process the ISO depending on your machine and connection <LineBreak/>
|
May take several minutes to process the ISO depending on your machine and connection <LineBreak/>
|
||||||
- Put it somewhere on the C:\ drive so it is easily accessible <LineBreak/>
|
- Put it somewhere on the C:\ drive so it is easily accessible <LineBreak/>
|
||||||
- Launch WinUtil and MicroWin <LineBreak/>
|
- Launch WinUtil and MicroWin <LineBreak/>
|
||||||
- Click on the "Select Windows ISO" button and wait for WinUtil to process the image <LineBreak/>
|
- Click on the "Get Windows ISO" button and wait for WinUtil to process the image <LineBreak/>
|
||||||
It will be processed and unpacked which may take some time <LineBreak/>
|
It will be processed and unpacked which may take some time <LineBreak/>
|
||||||
- Once complete, choose which Windows flavor you want to base your image on <LineBreak/>
|
- Once complete, choose which Windows flavor you want to base your image on <LineBreak/>
|
||||||
- Click the "Start Process" button <LineBreak/>
|
- Click the "Start Process" button <LineBreak/>
|
||||||
|
Reference in New Issue
Block a user