@@ -426,7 +426,7 @@ $installchoco.Add_Click({
426
426
Write-Host " Installing Chocolatey"
427
427
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' ))
428
428
choco install chocolatey- core.extension - y
429
- $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x1 )
429
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
430
430
})
431
431
432
432
$brave.Add_Click ({
@@ -437,54 +437,61 @@ $brave.Add_Click({
437
437
$firefox.Add_Click ({
438
438
Write-Host " Installing Firefox"
439
439
choco install firefox - y
440
- $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x1 )
440
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
441
441
})
442
442
443
443
$irfanview.Add_Click ({
444
444
Write-Host " Installing Irfanview (Image Viewer)"
445
445
choco install irfanview - y
446
- $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x1 )
446
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
447
447
})
448
448
449
449
$adobereader.Add_Click ({
450
450
Write-Host " Installing Adobe Reader DC"
451
451
choco install adobereader - y
452
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
452
453
})
453
454
454
455
$notepad.Add_Click ({
455
456
Write-Host " Installing Notepad++"
456
457
choco install notepadplusplus - y
457
- $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x1 )
458
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
458
459
})
459
460
460
461
$vlc.Add_Click ({
461
462
Write-Host " Installing VLC Media Player"
462
463
choco install vlc - y
464
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
463
465
})
464
466
465
467
$mpc.Add_Click ({
466
468
Write-Host " Installing Media Player Classic"
467
469
choco install mpc- be - y
470
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
468
471
})
469
472
470
473
$7zip.Add_Click ({
471
474
Write-Host " Installing 7-Zip Compression Tool"
472
475
choco install 7zip - y
476
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
473
477
})
474
478
475
479
$vscode.Add_Click ({
476
480
Write-Host " Installing Visual Studio Code"
477
481
choco install vscode - y
482
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
478
483
})
479
484
480
485
$winterminal.Add_Click ({
481
486
Write-Host " Installing New Windows Terminal"
482
487
choco install microsoft- windows- terminal - y
488
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
483
489
})
484
490
485
491
$powertoys.Add_Click ({
486
492
Write-Host " Installing Microsoft PowerToys"
487
493
choco install powertoys - y
494
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
488
495
})
489
496
490
497
$essentialtweaks.Add_Click ({
@@ -741,7 +748,7 @@ $Bloatware = @(
741
748
If (Test-Path $Edge ) {
742
749
Set-Item $Edge AppXd4nrz8ff68srnhf9t5a8sbjyar1cr723_
743
750
}
744
-
751
+ $wshell .Popup ( " Operation Completed " , 0 , " Done " , 0x0 )
745
752
})
746
753
747
754
$windowssearch.Add_Click ({
@@ -757,6 +764,7 @@ $windowssearch.Add_Click({
757
764
Set-Service " WSearch" - StartupType Disabled
758
765
Write-Host " Hiding Taskbar Search icon / box..."
759
766
Set-ItemProperty - Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Search" - Name " SearchboxTaskbarMode" - Type DWord - Value 0
767
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
760
768
})
761
769
762
770
$backgroundapps.Add_Click ({
@@ -765,6 +773,7 @@ $backgroundapps.Add_Click({
765
773
Set-ItemProperty - Path $_.PsPath - Name " Disabled" - Type DWord - Value 1
766
774
Set-ItemProperty - Path $_.PsPath - Name " DisabledByUser" - Type DWord - Value 1
767
775
}
776
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
768
777
})
769
778
770
779
$cortana.Add_Click ({
@@ -786,6 +795,7 @@ $cortana.Add_Click({
786
795
New-Item - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" - Force | Out-Null
787
796
}
788
797
Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\Windows Search" - Name " AllowCortana" - Type DWord - Value 0
798
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
789
799
})
790
800
791
801
$securitylow.Add_Click ({
@@ -815,6 +825,7 @@ $securitylow.Add_Click({
815
825
New-Item - Path " HKLM:\SOFTWARE\Policies\Microsoft\MRT" | Out-Null
816
826
}
817
827
Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\MRT" - Name " DontOfferThroughWUAU" - Type DWord - Value 1
828
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
818
829
})
819
830
820
831
$securityhigh.Add_Click ({
@@ -842,7 +853,7 @@ $securityhigh.Add_Click({
842
853
Set-ItemProperty - Path " HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\QualityCompat" - Name " cadca5fe-87d3-4b96-b7fb-a231484277cc" - Type DWord - Value 0
843
854
Write-Host " Enabling Malicious Software Removal Tool offering..."
844
855
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\MRT" - Name " DontOfferThroughWUAU" - ErrorAction SilentlyContinue
845
-
856
+ $wshell .Popup ( " Operation Completed " , 0 , " Done " , 0x0 )
846
857
})
847
858
848
859
$defaultwindowsupdate.Add_Click ({
@@ -855,7 +866,7 @@ $defaultwindowsupdate.Add_Click({
855
866
Write-Host " Enabling Windows Update automatic restart..."
856
867
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" - Name " NoAutoRebootWithLoggedOnUsers" - ErrorAction SilentlyContinue
857
868
Remove-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" - Name " AUPowerManagement" - ErrorAction SilentlyContinue
858
-
869
+ $wshell .Popup ( " Operation Completed " , 0 , " Done " , 0x0 )
859
870
})
860
871
861
872
$securitywindowsupdate.Add_Click ({
@@ -880,6 +891,7 @@ $securitywindowsupdate.Add_Click({
880
891
}
881
892
Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" - Name " NoAutoRebootWithLoggedOnUsers" - Type DWord - Value 1
882
893
Set-ItemProperty - Path " HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" - Name " AUPowerManagement" - Type DWord - Value 0
894
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
883
895
})
884
896
885
897
$actioncenter.Add_Click ({
@@ -889,6 +901,7 @@ $actioncenter.Add_Click({
889
901
}
890
902
Set-ItemProperty - Path " HKCU:\SOFTWARE\Policies\Microsoft\Windows\Explorer" - Name " DisableNotificationCenter" - Type DWord - Value 1
891
903
Set-ItemProperty - Path " HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\PushNotifications" - Name " ToastEnabled" - Type DWord - Value 0
904
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
892
905
})
893
906
894
907
$visualfx.Add_Click ({
@@ -903,6 +916,7 @@ $visualfx.Add_Click({
903
916
Set-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" - Name " TaskbarAnimations" - Type DWord - Value 0
904
917
Set-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects" - Name " VisualFXSetting" - Type DWord - Value 3
905
918
Set-ItemProperty - Path " HKCU:\Software\Microsoft\Windows\DWM" - Name " EnableAeroPeek" - Type DWord - Value 0
919
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
906
920
})
907
921
908
922
$onedrive.Add_Click ({
@@ -931,17 +945,19 @@ $onedrive.Add_Click({
931
945
}
932
946
Remove-Item - Path " HKCR:\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" - Recurse - ErrorAction SilentlyContinue
933
947
Remove-Item - Path " HKCR:\Wow6432Node\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}" - Recurse - ErrorAction SilentlyContinue
934
-
948
+ $wshell .Popup ( " Operation Completed " , 0 , " Done " , 0x0 )
935
949
})
936
950
937
951
$darkmode.Add_Click ({
938
952
Write-Host " Enabling Dark Mode"
939
953
Set-ItemProperty - Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize - Name AppsUseLightTheme - Value 0
954
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
940
955
})
941
956
942
957
$lightmode.Add_Click ({
943
958
Write-Host " Switching Back to Light Mode"
944
959
Remove-ItemProperty - Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize - Name AppsUseLightTheme
960
+ $wshell.Popup (" Operation Completed" , 0 , " Done" , 0x0 )
945
961
})
946
962
947
963
[void ]$Form.ShowDialog ()
0 commit comments