4 Commits

Author SHA1 Message Date
Raphire
91f3dbf5e6 Compressed menu.png to reduce download size 2026-02-01 13:48:05 +01:00
Raphire
57f5e1c632 Remove wiki image to reduce download size 2026-02-01 13:43:02 +01:00
Raphire
95e844923e Minimize the powershell window when no parameters are provided 2026-02-01 13:40:22 +01:00
Raphire
c6e3edbe40 Minimize Win11Debloat powershell window when not running CLI mode 2026-02-01 13:37:27 +01:00
3 changed files with 9 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 486 KiB

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 287 KiB

10
Get.ps1
View File

@@ -140,8 +140,16 @@ $arguments = $($PSBoundParameters.GetEnumerator() | ForEach-Object {
Write-Output ""
Write-Output "> Running Win11Debloat..."
# Minimize the powershell window when no parameters are provided
if ($arguments.Count -eq 0) {
$windowStyle = "Minimized"
}
else {
$windowStyle = "Normal"
}
# Run Win11Debloat script with the provided arguments
$debloatProcess = Start-Process powershell.exe -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat.ps1 $arguments" -Verb RunAs
$debloatProcess = Start-Process powershell.exe -WindowStyle $windowStyle -PassThru -ArgumentList "-executionpolicy bypass -File $env:TEMP\Win11Debloat\Win11Debloat.ps1 $arguments" -Verb RunAs
# Wait for the process to finish before continuing
if ($null -ne $debloatProcess) {