Skip to content

Commit a2abdf3

Browse files
test new gui
1 parent 2fd3e0b commit a2abdf3

File tree

1 file changed

+24
-8
lines changed

1 file changed

+24
-8
lines changed

test.ps1

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ $installchoco.Add_Click({
426426
Write-Host "Installing Chocolatey"
427427
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
428428
choco install chocolatey-core.extension -y
429-
$wshell.Popup("Operation Completed",0,"Done",0x1)
429+
$wshell.Popup("Operation Completed",0,"Done",0x0)
430430
})
431431

432432
$brave.Add_Click({
@@ -437,54 +437,61 @@ $brave.Add_Click({
437437
$firefox.Add_Click({
438438
Write-Host "Installing Firefox"
439439
choco install firefox -y
440-
$wshell.Popup("Operation Completed",0,"Done",0x1)
440+
$wshell.Popup("Operation Completed",0,"Done",0x0)
441441
})
442442

443443
$irfanview.Add_Click({
444444
Write-Host "Installing Irfanview (Image Viewer)"
445445
choco install irfanview -y
446-
$wshell.Popup("Operation Completed",0,"Done",0x1)
446+
$wshell.Popup("Operation Completed",0,"Done",0x0)
447447
})
448448

449449
$adobereader.Add_Click({
450450
Write-Host "Installing Adobe Reader DC"
451451
choco install adobereader -y
452+
$wshell.Popup("Operation Completed",0,"Done",0x0)
452453
})
453454

454455
$notepad.Add_Click({
455456
Write-Host "Installing Notepad++"
456457
choco install notepadplusplus -y
457-
$wshell.Popup("Operation Completed",0,"Done",0x1)
458+
$wshell.Popup("Operation Completed",0,"Done",0x0)
458459
})
459460

460461
$vlc.Add_Click({
461462
Write-Host "Installing VLC Media Player"
462463
choco install vlc -y
464+
$wshell.Popup("Operation Completed",0,"Done",0x0)
463465
})
464466

465467
$mpc.Add_Click({
466468
Write-Host "Installing Media Player Classic"
467469
choco install mpc-be -y
470+
$wshell.Popup("Operation Completed",0,"Done",0x0)
468471
})
469472

470473
$7zip.Add_Click({
471474
Write-Host "Installing 7-Zip Compression Tool"
472475
choco install 7zip -y
476+
$wshell.Popup("Operation Completed",0,"Done",0x0)
473477
})
474478

475479
$vscode.Add_Click({
476480
Write-Host "Installing Visual Studio Code"
477481
choco install vscode -y
482+
$wshell.Popup("Operation Completed",0,"Done",0x0)
478483
})
479484

480485
$winterminal.Add_Click({
481486
Write-Host "Installing New Windows Terminal"
482487
choco install microsoft-windows-terminal -y
488+
$wshell.Popup("Operation Completed",0,"Done",0x0)
483489
})
484490

485491
$powertoys.Add_Click({
486492
Write-Host "Installing Microsoft PowerToys"
487493
choco install powertoys -y
494+
$wshell.Popup("Operation Completed",0,"Done",0x0)
488495
})
489496

490497
$essentialtweaks.Add_Click({
@@ -741,7 +748,7 @@ $Bloatware = @(
741748
If (Test-Path $Edge) {
742749
Set-Item $Edge AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_
743750
}
744-
751+
$wshell.Popup("Operation Completed",0,"Done",0x0)
745752
})
746753

747754
$windowssearch.Add_Click({
@@ -757,6 +764,7 @@ $windowssearch.Add_Click({
757764
Set-Service "WSearch" -StartupType Disabled
758765
Write-Host "Hiding Taskbar Search icon / box..."
759766
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" -Name "SearchboxTaskbarMode" -Type DWord -Value 0
767+
$wshell.Popup("Operation Completed",0,"Done",0x0)
760768
})
761769

762770
$backgroundapps.Add_Click({
@@ -765,6 +773,7 @@ $backgroundapps.Add_Click({
765773
Set-ItemProperty -Path $_.PsPath -Name "Disabled" -Type DWord -Value 1
766774
Set-ItemProperty -Path $_.PsPath -Name "DisabledByUser" -Type DWord -Value 1
767775
}
776+
$wshell.Popup("Operation Completed",0,"Done",0x0)
768777
})
769778

770779
$cortana.Add_Click({
@@ -786,6 +795,7 @@ $cortana.Add_Click({
786795
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Force | Out-Null
787796
}
788797
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" -Name "AllowCortana" -Type DWord -Value 0
798+
$wshell.Popup("Operation Completed",0,"Done",0x0)
789799
})
790800

791801
$securitylow.Add_Click({
@@ -815,6 +825,7 @@ $securitylow.Add_Click({
815825
New-Item -Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT" | Out-Null
816826
}
817827
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT" -Name "DontOfferThroughWUAU" -Type DWord -Value 1
828+
$wshell.Popup("Operation Completed",0,"Done",0x0)
818829
})
819830

820831
$securityhigh.Add_Click({
@@ -842,7 +853,7 @@ $securityhigh.Add_Click({
842853
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" -Name "cadca5fe-87d3-4b96-b7fb-a231484277cc" -Type DWord -Value 0
843854
Write-Host "Enabling Malicious Software Removal Tool offering..."
844855
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\MRT" -Name "DontOfferThroughWUAU" -ErrorAction SilentlyContinue
845-
856+
$wshell.Popup("Operation Completed",0,"Done",0x0)
846857
})
847858

848859
$defaultwindowsupdate.Add_Click({
@@ -855,7 +866,7 @@ $defaultwindowsupdate.Add_Click({
855866
Write-Host "Enabling Windows Update automatic restart..."
856867
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -ErrorAction SilentlyContinue
857868
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -ErrorAction SilentlyContinue
858-
869+
$wshell.Popup("Operation Completed",0,"Done",0x0)
859870
})
860871

861872
$securitywindowsupdate.Add_Click({
@@ -880,6 +891,7 @@ $securitywindowsupdate.Add_Click({
880891
}
881892
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "NoAutoRebootWithLoggedOnUsers" -Type DWord -Value 1
882893
Set-ItemProperty -Path "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" -Name "AUPowerManagement" -Type DWord -Value 0
894+
$wshell.Popup("Operation Completed",0,"Done",0x0)
883895
})
884896

885897
$actioncenter.Add_Click({
@@ -889,6 +901,7 @@ $actioncenter.Add_Click({
889901
}
890902
Set-ItemProperty -Path "HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" -Name "DisableNotificationCenter" -Type DWord -Value 1
891903
Set-ItemProperty -Path "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" -Name "ToastEnabled" -Type DWord -Value 0
904+
$wshell.Popup("Operation Completed",0,"Done",0x0)
892905
})
893906

894907
$visualfx.Add_Click({
@@ -903,6 +916,7 @@ $visualfx.Add_Click({
903916
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "TaskbarAnimations" -Type DWord -Value 0
904917
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" -Name "VisualFXSetting" -Type DWord -Value 3
905918
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\DWM" -Name "EnableAeroPeek" -Type DWord -Value 0
919+
$wshell.Popup("Operation Completed",0,"Done",0x0)
906920
})
907921

908922
$onedrive.Add_Click({
@@ -931,17 +945,19 @@ $onedrive.Add_Click({
931945
}
932946
Remove-Item -Path "HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue
933947
Remove-Item -Path "HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" -Recurse -ErrorAction SilentlyContinue
934-
948+
$wshell.Popup("Operation Completed",0,"Done",0x0)
935949
})
936950

937951
$darkmode.Add_Click({
938952
Write-Host "Enabling Dark Mode"
939953
Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme -Value 0
954+
$wshell.Popup("Operation Completed",0,"Done",0x0)
940955
})
941956

942957
$lightmode.Add_Click({
943958
Write-Host "Switching Back to Light Mode"
944959
Remove-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize -Name AppsUseLightTheme
960+
$wshell.Popup("Operation Completed",0,"Done",0x0)
945961
})
946962

947963
[void]$Form.ShowDialog()

0 commit comments

Comments
 (0)