-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathGUI.ps1
1008 lines (949 loc) · 44 KB
/
GUI.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$MyDir = Split-Path $MyInvocation.MyCommand.Path
Set-Location $MyDir
Add-Type -AssemblyName System.Windows.Forms
. (Join-Path $PSScriptRoot 'GUI.designer.ps1')
$tooltip = New-Object System.Windows.Forms.ToolTip
$Config = Import-LocalizedData -BaseDirectory .\Config\ -FileName Config.psd1
$WinVersion = [System.Environment]::OSVersion.Version.Major
$Language = Get-Content .\Config\Language.txt
#Run script to Define the Tool Variables
. (Join-Path $PSScriptRoot 'Tools.ps1')
####################################################################################################################################################
#Support us Function
if ($Language -eq "de-DE"){
$SupportClick = [System.Windows.Forms.MessageBox]::Show("Willst du uns unterstützen?`nEin paar Browserfenster werden sich öffnen, du musst nichts machen. ;)","TGF Tuning Pack 4.3 by MinersWin",'YesNoCancel','Information')
} else {
$SupportClick = [System.Windows.Forms.MessageBox]::Show("Do you want to support us?`nA few browser tabs will open, you don't have to do anything. ;)","TGF Tuning Pack 4.3 by MinersWin",'YesNoCancel','Information')
}
if ($SupportClick -ne "NO"){
explorer "https://youtu.be/ftVBV-XmAP4"
explorer "https://youtu.be/hRr6sEoUUd0"
explorer "https://paypal.me/minerswin"
explorer "https://tgf.video"
}
####################################################################################################################################################
#Write Log Function
function WriteLog {
Param ([string]$t)
Write-Output "$(Get-Date) $t" >> "$($MyDir)\Log\Latest.log"
Write-Verbose $t
}
function WriteTweak([int]$Percent,[string]$string){
$ProgressBarProgress.Value = $Percent
$LabelProgressPercent.Text = "$($Percent)%"
$LabelProgressText.Text = $string
Write-Host $string
WriteLog $string
Start-Sleep -Milliseconds 300
}
#Einlesen der Einstellungen aus der Config Datei
if (Test-Path $MyDir\Log\Latest.log){
$OldLog = Get-Content "$($MyDir)\Log\Latest.log"
$OldLog[0]
$NewName = $OldLog[0]
$NewName = "$($NewName)-LOG"
$NewName
"$($MyDir)\Log\$($NewName).txt"
Write-Output $OldLog >> "$($MyDir)\Log\$($NewName).txt"
rm $MyDir\Log\Latest.log
} else {
mkdir .\Log\
Write-Output ChickenHung
}
Write-Output (("{0:yyyy-MM-dd-HH-mm-ss}" -f (get-date)).ToString()) >> $MyDir\Log\Latest.log
####################################################################################################################################################
#Ballon Tool Tips
Function Invoke-BalloonTip {
[CmdletBinding()]
Param (
[Parameter(Mandatory=$True,HelpMessage="Die Nachricht zum Anzeigen.")]
[string]$Message,
[Parameter(HelpMessage="Nachrichtentitel")]
[string]$Title="Achtung $env:username",
[Parameter(HelpMessage="Die Benachrichtigungsart: Info,Error,Warning,None")]
[System.Windows.Forms.ToolTipIcon]$MessageType="Info",
[Parameter(HelpMessage="The path to a file to use its icon in the system tray")]
[string]$SysTrayIconPath='.\TGF_Tuning_Pack.exe',
[Parameter(HelpMessage="The number of milliseconds to display the message.")]
[int]$Duration=1000
)
If (-NOT $script:balloon) {
$script:balloon = New-Object System.Windows.Forms.NotifyIcon
[void](Register-ObjectEvent -InputObject $balloon -EventName MouseDoubleClick -SourceIdentifier IconClicked -Action {
Write-Verbose 'Disposing of balloon'
$script:balloon.dispose()
Unregister-Event -SourceIdentifier IconClicked
Remove-Job -Name IconClicked
Remove-Variable -Name balloon -Scope Global
})
}
$path = Get-Process -id $pid | Select-Object -ExpandProperty Path
$balloon.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($SysTrayIconPath)
$balloon.BalloonTipIcon = [System.Windows.Forms.ToolTipIcon]$MessageType
$balloon.BalloonTipText = $Message
$balloon.BalloonTipTitle = $Title
$balloon.Visible = $true
$balloon.ShowBalloonTip($Duration)
Write-Verbose "Ending function"
}
############################################################################################################################################
$MessageEnglish="
The tweaks have been successfully completed. If error messages have occurred, this is probably due to the selection of unsuitable tweaks such as removing Windows 10 apps under Windows 7.
We are not responsible for the consequences and possible damage to your systems. All tweaks were selected by you and confirmed several times.
If you have any questions or problems, please feel free to ask for a solution in the Discord, create a Thread in the Forums or join the TeamSpeak.
We would be happy to see your experiences and results. Feel free to post feedback in the Discord or the Forums.
Support for this and other tools: https://paypal.me/minerswin
Discord: https://discordapp.com/invite/qrXmqSq
TeamSpeak: ts.thegeekfreaks.de
Forum: forum.thegeekfreaks.de
"
############################################################################################################################################
#Funktion für BaloonTips
Add-Type -AssemblyName System.Windows.Forms
$script:balloon = New-Object System.Windows.Forms.NotifyIcon
#Unregister-Event -SourceIdentifier IconClicked
[void](Register-ObjectEvent -InputObject $balloon -EventName MouseDoubleClick -SourceIdentifier IconClicked -Action {
$script:balloon.dispose()
Unregister-Event -SourceIdentifier IconClicked
Remove-Job -Name IconClicked
Remove-Variable -Name balloon -Scope Global
})
$path = (Get-Process -id $pid).Path
$balloon.Icon = [System.Drawing.Icon]::ExtractAssociatedIcon($path)
$balloon.BalloonTipIcon = [System.Windows.Forms.ToolTipIcon]::Warning
#___________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________________#
$balloon.BalloonTipText = 'Starte TGF Tuning Pack 4.3'
$balloon.BalloonTipTitle = "Achtung $Env:USERNAME"
$balloon.Visible = $true
$balloon.ShowBalloonTip(20)
WriteLog "Starte TGF Tuning Pack 4.3"
Write-Host "
______________________________ ___________ .__
\__ ___/ _____/\_ _____/ \__ ___/_ __ ____ |__| ____ ____
| | / \ ___ | __) | | | | \/ \| |/ \ / ___\
| | \ \_\ \| \ | | | | / | \ | | \/ /_/ >
|____| \______ /\___ / |____| |____/|___| /__|___| /\___ /
\/ \/ \/ \//_____/
__________ __ _____ ________
\______ \_____ ____ | | __ / | | \_____ \
| ___/\__ \ _/ ___\| |/ / / | |_ _(__ <
| | / __ \\ \___| < / ^ / / \
|____| (____ /\___ >__|_ \ \____ | /\/______ /
\/ \/ \/ |__| \/ \/
_ __ __ _ __ ___
| | | \/ (_) \ \ / (_)
| |__ _ _ | \ / |_ _ __ ___ _ __ __\ \ /\ / / _ _ __
| '_ \| | | | | |\/| | | '_ \ / _ \ '__/ __\ \/ \/ / | | '_ \
| |_) | |_| | | | | | | | | | __/ | \__ \\ /\ / | | | | |
|_.__/ \__, | |_| |_|_|_| |_|\___|_| |___/ \/ \/ |_|_| |_|
__/ |
|___/
The Geek Freaks Tuning Pack 4.3 Update 19.02.2020
Download the newest Version: https://Github.com/MinersWin/TGF-Tuning-Pack-4.0/releases/
WE ASSUME NO RESPONSIBILITY FOR PROBLEMS WHICH COME WITH THE EXECUTION OF OUR PROGRAM!
This is a hobby project! Everything can create errors and problems! Use at your own risk!
WIR ÜBERNEHMEN KEINE VERANTWORTUNG FÜR PROBLEME DIE MIT DER AUSFÜHRUNG UNSERES PROGRAMMS EINHERGEHEN!
Das hier ist ein Hobbyprojekt! Alles kann Fehler und Probleme erzeugen! Benutzung auf eigene Gefahr!
TeamSpeak: ts.thegeekfreaks.de
Forum: forum.thegeekfreaks.de
Tutorials: youtube.com/thegeekfreaks
Spenden: https://paypal.me/minerswin
" -ForegroundColor Green
$LabelTitle.Text = "TGF Tuning Pack 4.3"
Write-Host "Windows $($WinVersion)"
WriteLog "Windows Version: $($WinVersion)"
WriteLog "User: $($env:username)"
WriteLog "Hostname: $($env:COMPUTERNAME)"
WriteLog "Plattform: $([System.Environment]::OSVersion.Platform)"
WriteLog "Servicepack: $([System.Environment]::OSVersion.ServicePack)"
WriteLog "Version: $([System.Environment]::OSVersion.Version)"
WriteLog "VersionString: $([System.Environment]::OSVersion.VersionString)"
WriteLog "VersionCaption: $((Get-WmiObject -class Win32_OperatingSystem).Caption)"
WriteLog "PowerShell Version: $($PSVersionTable.PSVersion)"
WriteLog ".Net Framework: $((Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full").Release)"
WriteLog "Verbindung zum Server: $($Internet)"
function Test-InternetConnection {
while (!(test-connection 1.1.1.1 -Count 1 -Quiet)) {
$Verbindungbesteht = $true
break
}
if ($Verbindungbesteht){
$script:Internet = $false
} else {
$script:Internet = $true
}
if ($Internet){
"$(Get-Date) Internetconnection: Online"
WriteLog "Internet: Online"
} else {
"$(Get-Date) Internetconnection: Offline"
WriteLog "Internet: Offline"
}
}
Test-InternetConnection
##################################################################################################################################################################################
if ($Language -eq "de-DE"){
[System.Windows.Forms.MessageBox]::Show("Dies ist ein Hobbyprojekt, wir geben dir Viele Möglichkeiten dein Windows einzustellen. Sei vorsichtig was du machst!.","The Geek Freaks Tuning Pack 4.3 by MinersWin",'OK','Info')
} else {
[System.Windows.Forms.MessageBox]::Show("This is a hobby project, we give you a lot of possibilities to adjust your Windows. Be careful what you do!","The Geek Freaks Tuning Pack 4.3 by MinersWin",'OK','Info')
}
WriteLog "Sprache $($Language)"
$FormTuningPack.Text = $Config.Application.Name
#New Update
#if (Test-Path .\Config\Accept.dat){
# WriteLog "Found Accepted File, dont show Changelog again"
#} else {
# WriteLog "First Startup, Show Changelog"
# .\Changelog\Changelog.ps1
# WriteLog "Changelog Accepted"
# Out-File -FilePath .\Config\Accept.dat
#}
#Alles Ausgrauen
$PanelTemplates.Enabled = $false
$TabPage1.Enabled = $false
$TabPage2.Enabled = $false
$TabPageTools.Enabled = $false
$CheckBoxBackupRegistry.Enabled = $false
$CheckBoxBackupRecoveryPoint.Enabled = $false
$TabPage1.visible = $false
$TabPage2.visible = $false
$TabPageTools.Visible = $false
$TabPage5.Enabled = $false
$TabPage5.Visible = $false
$TabPage6.Enabled = $false
$TabPage6.Visible = $false
$TabPage8.Enabled = $false
$TabPage8.Visible = $false
$SpecialTweaks.Enabled = $false
$SpecialTweaks.Visible = $false
$TabControlMain.Controls.Remove($SpecialTweaks)
#$ButtonDonatePayPal PayPal Button
$ButtonDonatePayPal.Add_Click{(explorer https://paypal.me/minerswin);explorer "https://forum.thegeekfreaks.de/index.php?donation-add/";WriteLog "clicked on PayPal Button, YAY"}
#$PictureBoxBanner TuningPack.de Link onclick
$PictureBoxBanner.Add_Click{(explorer https://tuning-pack.de);WriteLog "Opened Tuning-Pack.de, Clicked on Banner"}
#About Window on Logo
$PictureBoxLogo.Add_Click{(About)}
#Donation Button
$ButtonSpenden.Add_Click{explorer "https://paypal.me/minerswin";explorer "https://forum.thegeekfreaks.de/index.php?donation-add/"}
$ButtonMinersWin.Add_Click{explorer "https://www.youtube.com/minerswin";explorer "https://tgf.click/minerswintuningpack"}
$ButtonGeekFreaks.Add_Click{explorer "https://www.youtube.com/thegeekfreaks";explorer "https://tgf.click/thegeekfreakstuningpack"}
#German Language Image
$Picture2 = ".\Images\German.jpg"
$img2 = [System.Drawing.Image]::Fromfile($Picture2)
$ButtonLanguageGerman.BackgroundImage = $img2
$ButtonLanguageGerman.Text = ""
#English Language Image
$Picture3 = ".\Images\English.jpg"
$img3 = [System.Drawing.Image]::Fromfile($Picture3)
$ButtonLanguageEnglish.BackgroundImage = $img3
$ButtonLanguageEnglish.Text = ""
#All The Tools CHECK
function CheckTools{
WriteLog "Checking for Tools"
$Tools = Test-Path .\Tools
if ($Tools){
$LabelToolsDownloaded.ForeColor = "GREEN"
$LabelToolsDownloaded.Text = "Tools found"
$PanelToolsClean.Enabled = $true
$PannelToolsDisinfect.Enabled = $true
$PanelToolsRepair.Enabled = $true
$PanelToolsOptimize.Enabled = $true
$PanelToolsManual.Enabled = $true
WriteLog "Tools Found"
} else {
$LabelToolsDownloaded.ForeColor = "RED"
$LabelToolsDownloaded.Text = "Could not find the tools, please download first."
$PanelToolsClean.Enabled = $false
$PannelToolsDisinfect.Enabled = $false
$PanelToolsRepair.Enabled = $false
$PanelToolsOptimize.Enabled = $false
$PanelToolsManual.Enabled = $false
WriteLog "Tools not found, you have to Download them first"
}
}
CheckTools
$ButtonToolsRefresh.Add_Click{(CheckTools)}
#Clipboard History
$Button44.Add_Click{(start cmd.exe 'cmd /c "echo off | clip"');WriteLog "Cleared Clipboard History"}
#System Propertys Performance
$Button15.Add_Click{(start SystemPropertiesPerformance.exe);WriteLog "Started SystemPropertiesPerformance Menu"}
#Download Tools
$ButtonToolsDownloadAllTools.Add_Click{
Write-Host "Der Download Startet, dies kann je nach Internetgeschwindigkeit ca. 5-10 Minuten dauern. (500MB) `n The download starts, this may take about 5-10 minutes, depending on the internet speed. (500MB)"
WriteLog "ToolDownload gestartet"
if ($Internet){
WriteLog "Internetverbindung besteht, Download wird gestartet"
$url = "https://root3.minerswin.de/TGF/Tools.zip"
$output = Join-Path -Path "$PWD" -ChildPath "Tools.zip"
$start_time = Get-Date
(New-Object System.Net.WebClient).DownloadFile($url, $output)
Write-Host "Download fertiggestellt`nDownloadzeit: $((Get-Date).Subtract($start_time).Seconds) Sekunde(n)`nEntpacke Archiv ..."
Expand-Archive -Path $output -DestinationPath .\
Write-Host "Archiv erfolgreich entpackt, Lösche Temporäre Download Files ...."
rm $output
WriteLog "Download wurde abgeschlossen"
} else {
WriteLog "Verbindung zum Server kann nicht hergestellt werden"
Write-Host "Keine Internetverbindung möglich. Bitte zu einem späteren Zeitpunkt erneut versuchen."
}
}
#Accept the Risk
$ButtonLetsGoDisclaimer.Add_Click{(Accept-Everything);WriteLog "Accepted Disclaimer"}
function Accept-Everything{
if ($CheckBoxAcceptedDisclaimer.Checked){
$TabPageHome.Enabled = $false
$PanelTemplates.Enabled = $true
$TabPage1.Enabled = $true
$TabPage2.Enabled = $true
$TabPageTools.Enabled = $true
$CheckBoxBackupRegistry.Enabled = $true
$CheckBoxBackupRecoveryPoint.Enabled = $true
$ButtonStart.Enabled = $true
$TabPage1.visible = $true
$TabPage2.visible = $true
$TabPageTools.Visible = $true
$TabPageHome.Visible = $true
$TabPage5.Enabled = $true
$TabPage5.Visible = $true
$TabPage6.Enabled = $true
$TabPage6.Visible = $true
$TabPage8.Enabled = $true
$TabPage8.Visible = $true
$TabControlMain.SelectedTab = $TabPage1
} else {
if ($Language -eq "de-DE"){
[System.Windows.Forms.MessageBox]::Show("Bitte Akzeptieren","TGF Tuning Pack 4.3","OK","Error")
} else {
[System.Windows.Forms.MessageBox]::Show("Please Accept","TGF Tuning Pack 4.3","OK","Error")
}
}
}
#Close when Click Close
$buttonclose.Add_Click{WriteLog "TuningPack Closed";($FormTuningPack.Close())}
#Open Tool Folder
$ButtonToolsGotoFolder.Add_Click{(Start "$($MyDir)\");WriteLog "Opened the Tool Folder"}
#Make Everything German
$ButtonLanguageGerman.Add_Click{(Make-German)}
function Make-German{
del .\Config\Language.txt
Write-Output "de-DE" >> .\Config\Language.txt
.\Update-German.ps1
WriteLog "Changed Language to German"
}
#Translate to English
$ButtonLanguageEnglish.Add_Click{(Make-English)}
function Make-English{
del .\Config\Language.txt
Write-Output "en-EN" >> .\Config\Language.txt
.\Update-Englisch.ps1
WriteLog "Changed Langugage to English"
}
#Get Language
if ($Language -eq "de-DE"){
Make-German
} else {
Make-English
}
#Add Ninite
$ButtonNinite.Add_Click{(.\Ninite\Ninite.ps1);WriteLog "Starte Ninite Client"}
#ComboBox Templates
$void = $ComboBoxTemplates.Items.Add("Best Performance")
$void = $ComboBoxTemplates.Items.Add("Maximum Battery Life")
$void = $ComboBoxTemplates.Items.Add("Maximum Privacy")
$void = $ComboBoxTemplates.Items.Add("Recommended")
$void = $ComboBoxTemplates.Items.Add("Clear")
$void = $ComboBoxTemplates.Items.Add("ULTIMATE PERFORMANCE")
$void = $ComboBoxTemplates.SelectedItem = "Clear"
#Progressbar Reset
$ProgressBarProgress.Value = 0
$LabelProgressPercent.Text = "0%"
$LabelProgressText.Text = "The Tweaks havent started yet. Click on 'Make FPS Rain!' to Start the Process!"
###################################################################################################################################################################################
#Main Tweak Function
###################################################################################################################################################################################
$ButtonStart.Add_Click{(Make-Tweaks)}
function Make-Tweaks{
WriteLog "Clicked 'Make FPS Rain'"
if ($Language -eq "de-DE"){
Write-Host "Tuning Pack 4.3 by MinersWin: https://tuning-pack.de/"
$msgBoxInput = [System.Windows.Forms.MessageBox]::Show("Tweaks werden ausgeführt. Bitte vor dem Bestätigen nochmal alle Tweaks Überprüfen. Hierbei kann einiges Kaputt gehen.","Tuning Pack Sicherheitswarnung",'YesNoCancel','Question')
} else {
Write-Host "Tuning Pack 4.3 by MinersWin: https://tuning-pack.de/"
$msgBoxInput = [System.Windows.Forms.MessageBox]::Show("Tweaks are in progress. Please check all tweaks again before confirming. This can break some things.","Tuning Pack Security Warning",'YesNoCancel','Question')
}
switch ($msgBoxInput) {
'Yes' {
WriteLog "Acccepted the Risk"
Write-Host "YES"
Write-Host "Tweaks werden ausgeführt"
TWEAK_THE_SHIT
}
'No' {
WriteLog "Cancelled"
}
'Cancel' {
WriteLog "Cancelled"
}
}
}
function TWEAK_THE_SHIT{
#Create RecoveryPoint
WriteLog "Start the Tweaks ..."
WriteLog
WriteLog
WriteLog
if ($CheckBoxBackupRecoveryPoint.Checked){
WriteLog "Created System Restore Point"
wmic /namespace:\\root\default path SystemRestore call Enable C:\
Write-Host "Die erstellung von Wiederherstellungspunkten wurde aktiviert"
Checkpoint-Computer -Description "TGF_Tuning_Pack_4.3-$(Get-Date)"
$Date = Get-Date
Write-Host "Der Wiederherstellungspunkt wurde erstellt. Er trägt den Namen: $($Date) TGF Tuning Pack" -ForegroundColor Green
WriteLog "Created System Restore Point with the Name: $($Date) TGF Tuning Pack"
}
if ($CheckBoxBackupRegistry.Checked){
if ($Language -eq "de-DE"){
$Backup = [System.Windows.Forms.MessageBox]::Show("Ein Backup der Registry wird ausgeführt. Eine Normale Windows Registry ist im Normalfall ca. 500mb Groß. Das Backup wird unter C:\RegBack\ Gespeichert.","TGF Tuning Pack 4.3 by MinersWin",'OK','Info')
Write-Host "Ein Backup der Registry wird ausgeführt.... Eine Normale Windows Registry ist im Normalfall ca. 500mb Groß. Das Backup wird unter C:\RegBack\ Gespeichert." -ForegroundColor Green
} else {
$Backup = [System.Windows.Forms.MessageBox]::Show("The registry is backed up. A normal Windows registry is usually about 500mb in size. The backup is saved under C:\RegBack\.","TGF Tuning Pack 4.3 by MinersWin",'OK','Info')
Write-Host "A backup of the registry is performed.... A normal Windows registry is normally about 500mb in size. The backup is stored under C:\RegBack\." -ForegroundColor Green
}
mkdir C:\RegBack\
WriteLog "Registry Backup started ..."
reg export HKCR C:\RegBack\HKLM.Reg /y
reg export HKCU C:\RegBack\HKCU.Reg /y
reg export HKLM C:\RegBack\HKCR.Reg /y
reg export HKU C:\RegBack\HKU.Reg /y
reg export HKCC C:\RegBackHKCC.Reg /y
WriteLog "Registry Backup finished"
}
#Show Desktop Icon on Desktop
if ($CheckBox1.Checked){
reg import .\Scripts\Registry\Add_This-PC_Desktop_Icon.reg
WriteTweak 1 "The registry entry is added. The icon of 'This Computer' is now visible on the desktop."
}
#Show Network Icon on Desktop
if ($CheckBox2.Checked){
reg import .\Scripts\Registry\Add_Network_Desktop_Icon.reg
WriteTweak 1 "The registry entry is added. The icon of 'Network' is now visible on the desktop."
}
#Classic vertical Icon spacing
if ($CheckBox3.Checked){
reg import .\Scripts\Registry\Reset_Classic_Vertica_Icon_Spacing.reg
WriteTweak 2 "The default vertical icon spacing for the desktop is now set."
}
#Enable the ability to lock and unlock the taskbar
if ($CheckBox4.Checked){
reg import .\Scripts\Registry\Enable_ability_to_lock_and_unlock_taskbar.reg
WriteTweak 2 "Enable the Ability to lock and unlock the Taskbar."
}
if ($CheckBox5.Checked){
reg import .\Scripts\Registry\Enable_Always_show_all_notification_area_icons_for_all_users.reg
WriteTweak 3 "Always show all Taskbar Icons and Notifications and restart explorer.exe"
}
if ($CheckBox6.Checked){
reg import .\Scripts\Registry\Change-Delay-Time-Show-Taskbar-Thumbnails-to-10-sec.reg
WriteTweak 3 "Change the Time to Show Taskbar Thumbnails to 10 sec."
}
if ($CheckBox7.Checked){
reg import .\Scripts\Registry\Enable_Control_Panel_and_Settings.reg
WriteTweak 4 "Enable Classic Control Panel View."
}
if ($CheckBox8.Checked){
reg import .\Scripts\Registry\Permanently-disabling-sticky-keys.reg
WriteTweak 4 "Turn of Sticky Keys."
}
if ($CheckBox9.Checked){
reg import .\Scripts\Registry\Permanently-disabling-sticky-keys.reg
WriteTweak 5 "Turn of Filter Keys."
}
if ($CheckBox10.Checked){
reg import .\Scripts\Registry\Disable_Hibernate.reg
WriteTweak 5 "Disable Hibernation."
}
if ($CheckBox11.Checked){
reg import .\Scripts\Registry\Turn_ON_underline_keyboard_shortcuts_in_menus.reg
WriteTweak 6 "Turned On the Underline of KeyBoard Shortcuts in Menus."
}
if ($CheckBox12.Checked){
.\Scripts\Registry\Show_Known_Extensions_for_File_Types.vbs
WriteTweak 6 "Show Known File Extensions for File Types"
}
if ($CheckBox13.Checked){
reg import .\Scripts\Registry\hide-ntfs-compression-blue-double-arrow-icon-overlay.reg
WriteTweak 7 "Hidden indication for compressed NTFS Files"
}
if ($CheckBox14.Checked){
.\Scripts\Registry\Show_every_Hidden_File_in_Windows_Explorer.bat
WriteTweak 7 "Show every Hidden File in Windows Explorer"
}
if ($CheckBox15.Checked){
.\Scripts\Registry\Show_Super_Hidden_Files_in_Windows_Explorer.bat
WriteTweak 8 "Show Super Hidden Files in Windows Explorer"
}
if ($CheckBox17.Checked){
& '.\Scripts\Registry\Replace Utilman_with_CMD.bat'
WriteTweak 8 "Replaced Utilman with CMD"
}
if ($CheckBox18.Checked){
.\Scripts\Registry\Add_the_option_Processor_performance_core_parking_min_core.bat
WriteTweak 9 "Added the option Processor performance core parking min core."
}
if ($CheckBox19.Checked){
.\Scripts\Registry\Disable_CPU_Core_Parking.bat
WriteTweak 9 "Disabled CPU Core Parking"
}
if ($CheckBox20.Checked){
.\Scripts\Registry\Remove_Logon_Scree_wallpaper-background.bat
WriteTweak 10 "Removed Logon screen wallpaper/background. Will use solid color instead (Accent color)"
}
if ($CheckBox21.Checked){
.\Scripts\Registry\Disable_Lockscreen.bat
WriteTweak 10 "Disabled Lockscreen"
}
if ($CheckBox22.Checked){
.\Scripts\Registry\Remove_versioning_tab_from_properties.bat
WriteTweak 11 "Removed versioning tab from properties"
}
if ($CheckBox23.Checked){
.\Scripts\Registry\Disable_jump_lists.bat
WriteTweak 11 "Disabled jump lists"
}
if ($CheckBox24.Checked){
.\Scripts\Registry\Disable_Windows_Error_Reporting.bat
WriteTweak 12 "Disabled Windows Error Reporting to Microsoft"
}
if ($CheckBox25.Checked){
.\Scripts\Registry\Disable_Cortana.bat
WriteTweak 12 "Disabled Cortana (Speech Search Assistant, which also sends information to Microsoft"
}
if ($CheckBox26.Checked){
.\Scripts\Registry\Hide_Search_Box_from_taskbar.bat
WriteTweak 13 "Hidden the search box from taskbar. You can still search by pressing the win key and start typing what you are looking for"
}
if ($CheckBox27.Checked){
.\Scripts\Registry\Disable_MRU_lists.bat
WriteTweak 13 "Disabled MRU lists (jump lists) of XAML apps in Start Menu"
}
if ($CheckBox29.Checked){
.\Scripts\Registry\Disable_MRU_Lists_Startmenu.bat
WriteTweak 14 "Disabled MRU lists (jump lists) of XAML apps in Start Menu"
}
if ($CheckBox30.Checked){
.\Scripts\Registry\Disable_Creation_of_an_Advertising_ID.bat
WriteTweak 14 "Disabled creation of an Advertising ID"
}
if ($CheckBox31.Checked){
.\Scripts\Registry\Remove_Pin_to_Start.bat
WriteTweak 15 "Removed Pin to start"
}
if ($CheckBox32.Checked){
.\Scripts\Registry\Disable_Cortana_Bing_Search_and_Searchbar.bat
WriteTweak 15 "Disabled Cortana, Bing Search and Searchbar"
}
if ($CheckBox33.Checked){
.\Scripts\Registry\Turn_off_the_Error_Dialog.bat
WriteTweak 16 "Turned off the Error Dialog"
}
if ($CheckBox34.Checked){
.\Scripts\Registry\Disable_Administrative_Shares.bat
WriteTweak 16 "Disabled Administrative shares"
}
if ($CheckBox35.Checked){
.\Scripts\Registry\Reboot_to_Recovery.bat
WriteTweak 17 "Added Reboot to Recovery to right-click menu of This PC"
}
if ($CheckBox36.Checked){
.\Scripts\Registry\Change_Clock_and_Date_format_to_24H_metric.bat
WriteTweak 17 "Changed Clock and Date formats of current user to 24H, metric (Sign out required to see changes)"
}
if ($CheckBox37.Checked){
.\Scripts\Registry\Enable_Developer_Mode.bat
WriteTweak 18 "Enabled Developer Mode (enables you to run XAML apps you develop in Visual Studio which havent been certified yet)"
}
if ($CheckBox38.Checked){
.\Scripts\Registry\Remove_Telemetry_and_Data_Collection.bat
WriteTweak 18 "Removed telemetry and data collection"
}
if ($CheckBox28.Checked){
.\Scripts\Registry\Set_Windows_Explorer_to_Start_on_This_PC.bat
WriteTweak 19 "Set Windows Explorer to start on This PC instead of Quick Access"
}
if ($CheckBox16.Checked){
.\Scripts\Registry\Prevent_Both_Windows_and_Office_from_creating_LNK_files.bat
WriteTweak 19 "Prevented both Windows and Office from creating LNK files in the Recent folder"
}
#
# Removing Services tab
#
if ($CheckBox39.Checked){
& '.\Scripts\Removing Services\DisableConnectedUserExperiencesandTelemetry.bat'
WriteTweak 20 "Disabled Connected User Experiences and Telemetry (To turn off Telemetry and Data collection)"
}
if ($CheckBox40.Checked){
& '.\Scripts\Removing Services\DisableDiagnosticPolicyService.bat'
WriteTweak 20 "Disabled Diagnostic Policy Service"
}
if ($CheckBox41.Checked){
& '.\Scripts\Removing Services\DisableDistributedLinkTrackingClient.bat'
WriteTweak 21 "Disabled Distributed Link Tracking Client (If your computer is not connected to any network)"
}
if ($CheckBox42.Checked){
& '.\Scripts\Removing Services\DisableWAPPushMessageRoutingService.bat'
WriteTweak 21 "Disabled WAP Push Message Routing Service (To Turn off Telemetry and Data Collection)"
}
if ($CheckBox43.Checked){
& '.\Scripts\Removing Services\DisableDownloadedMapsManager.bat'
WriteTweak 22 "Disabled Downloaded Maps Manager (If you dont use Maps app)"
}
if ($CheckBox44.Checked){
& '.\Scripts\Removing Services\DisableIPHelper.bat'
WriteTweak 22 "Disabled IP Helper (If you dont use IPv6 connection)"
}
if ($CheckBox45.Checked){
& '.\Scripts\Removing Services\DisableProgramCompatibilityAssistantService.bat'
WriteTweak 23 "Disabled Program Compatibility Assistant Service"
}
if ($CheckBox46.Checked){
& '.\Scripts\Removing Services\DisablePrintSpooler.bat'
WriteTweak 23 "Disabled Print Spooler (If you dont have a printer)"
}
if ($CheckBox47.Checked){
& '.\Scripts\Removing Services\DisableRemoteRegistry.bat'
WriteTweak 24 "Disabled Remote Registry"
}
if ($CheckBox48.Checked){
& '.\Scripts\Removing Services\DisableSecondaryLogon.bat'
WriteTweak 24 "Disabled Secondary Logon"
}
if ($CheckBox49.Checked){
& '.\Scripts\Removing Services\DisableSecurityCenter.bat'
WriteTweak 25 "Disabled Security Center"
}
if ($CheckBox50.Checked){
& '.\Scripts\Removing Services\IPNetBIOSHelper.bat'
WriteTweak 25 "Disabled TCP/IP NetBIOS Helper (If you are not in a workgroup network)"
}
if ($CheckBox51.Checked){
& '.\Scripts\Removing Services\DisableTochKeyboardandHandwritingPanelService.bat'
WriteTweak 26 "Disabled Touch Keyboard and Handwriting Panel Service (If you want to use touch keyboard and handwriting features)"
}
if ($CheckBox52.Checked){
& '.\Scripts\Removing Services\DisableWindowsErrorReportingService.bat'
WriteTweak 26 "Disabled Windows Error Reporting Service"
}
if ($CheckBox53.Checked){
& '.\Scripts\Removing Services\DisableWindowsImageAcquisition.bat'
WriteTweak 27 "Disabled Windows Image Acquisition (WIA) (If you dont have a scanner)"
}
if ($CheckBox54.Checked){
& '.\Scripts\Removing Services\DisableWindowsSearch.bat'
WriteTweak 27 "Disabled Windows Search"
}
if ($CheckBox55.Checked){
& '.\Scripts\Removing Services\DisableTrackingServices.bat'
WriteTweak 28 "Disabled Tracking Services"
}
#Scheduled Tasks
#Disable SmartScreenSpecific
if ($CheckBox86.Checked){
.\Scripts\Batch\ScheduledTasks\SmartScreenSpecific.bat
WriteTweak 28 "Disabled SmartScreenSpecific"
}
#Disable Microsoft Compatibility Appraiser
if ($CheckBox87.Checked){
.\Scripts\Batch\ScheduledTasks\Microsoft_Compatibility_Appraiser.bat
WriteTweak 29 "Disabled Microsoft Compatibility Appraiser"
}
#Disable Programm Data Updater
if ($CheckBox88.Checked){
.\Scripts\Batch\ScheduledTasks\ProgramDataUpdater.bat
WriteTweak 29 "Disabled Program Data Updater"
}
#Disable Startup App Task
if ($CheckBox89.Checked){
.\Scripts\Batch\ScheduledTasks\StartupAppTask.bat
WriteTweak 30 "Disabled Startup App Task"
}
#Disable Proxy
if ($CheckBox90.Checked){
.\Scripts\Batch\ScheduledTasks\Proxy.bat
WriteTweak 30 "Disabled Proxy"
}
#Disable Consolidator
if ($CheckBox91.Checked){
.\Scripts\Batch\ScheduledTasks\Consolidator.bat
WriteTweak 31 "Disabled Consolidator"
}
#Disable Kernel Ceip Task
if ($CheckBox92.Checked){
.\Scripts\Batch\ScheduledTasks\KernelCeipTask.bat
WriteTweak 31 "Disabled Kernel Ceip Task"
}
#Disable USB Ceip
if ($CheckBox93.Checked){
.\Scripts\Batch\ScheduledTasks\UsbCeip.bat
WriteTweak 32 "Disabled USBCeip"
}
#Disable Mirosoft Windows DiskDiagnosticDataCollector
if ($CheckBox94.Checked){
.\Scripts\Batch\ScheduledTasks\Microsoft-Windows-DiskDiagnosticDataCollector.bat
WriteTweak 33 "Disable Microsoft-Windows-DiskDiagnostikDataCollector"
}
#Disable File History (mainanance mode)
if ($CheckBox95.Checked){
.\Scripts\Batch\ScheduledTasks\File_History.bat
WriteTweak 34 "Disabled File History (maintanace mode)"
}
#Disable WinSAT
if ($CheckBox96.Checked){
.\Scripts\Batch\ScheduledTasks\WinSAT.bat
WriteTweak 34 "Disabled WinSAT"
}
#Disable Gather Network Info
if ($CheckBox97.Checked){
.\Scripts\Batch\ScheduledTasks\GatherNetworkInfo.bat
WriteTweak 35 "Disabled Gather Network Info"
}
#Disable Sqm-Tasks
if ($CheckBox98.Checked){
.\Scripts\Batch\ScheduledTasks\Sqm-Tasks.bat
WriteTweak 35 "Disabled Sqm-Tasks"
}
#Disable Force Syncronize Time
if ($CheckBox99.Checked){
.\Scripts\Batch\ScheduledTasks\ForceSynchronizeTime.bat
WriteTweak 36 "Disabled Force Syncronize Time"
}
#Disable Syncronize Time
if ($CheckBox100.Checked){
.\Scripts\Batch\ScheduledTasks\SynchronizeTime.bat
WriteTweak 36 "Disabled Syncronize Time"
}
#Disable Queue Reporting
if ($CheckBox101.Checked){
.\Scripts\Batch\ScheduledTasks\QueueReporting.bat
WriteTweak 37 "Disabled Queue Reporting"
}
#Disable Automatic App Update
if ($CheckBox102.Checked){
.\Scripts\Batch\ScheduledTasks\Automatic_App_Update.bat
WriteTweak 37 "Disabled Automatic App Update"
}
#Windows Default Apps
#Remove 3D-Viewer
if ($CheckBox80.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\3d.ps1'
WriteTweak 38 "Removed 3D-Viewer"
}
#Remove Bing
if ($CheckBox103.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\bing.ps1'
WriteTweak 38 "Removed Bing"
}
#Remove Zune
if ($CheckBox104.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\zune.ps1'
WriteTweak 39 "Removed Zune (Groove Music)"
}
#Remove Photo Viewer
if ($CheckBox105.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\photo.ps1'
WriteTweak 39 "Removed Photo Viewer"
}
#Remove Windows Insider
if ($CheckBox106.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\communi.ps1'
WriteTweak 40 "Removed Windows Community"
}
#Remove Solitare
if ($CheckBox107.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\solit.ps1'
WriteTweak 40 "Removed Solitare"
}
#Remove Phone
if ($CheckBox108.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\phone.ps1'
WriteTweak 41 "Removed Phone"
}
#Remove Soundrecorder
if ($CheckBox109.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\soundrec.ps1'
WriteTweak 41 "Removed Soundrecorder"
}
#Remove Camera
if ($CheckBox110.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\camera.ps1'
WriteTweak 42 "Removed Camera"
}
#Remove Microsoft People
if ($CheckBox111.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\people.ps1'
WriteTweak 42 "Remove Microsoft People"
}
#Remove Office Live
if ($CheckBox112.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\office.ps1'
WriteTweak 43 "Removed Ofiice Live"
}
#Remove XBox
if ($CheckBox113.Checked){
& '.\Scripts\PowerShell\RemoveWindowsDefaultApps\xbox.ps1'
WriteTweak 43 "Removed XBox"
}
#Remove Remove OneDrive
# if ($CheckBox79.Checked){
# & '.\Scripts\Batch\Remove OneDrive\RemoveOneDrive.bat'
# WriteTweak 44 "Removed OneDrive"
# }
#Misc
#Disable Windows Error Recovery in Startup
if ($CheckBox81.Checked){
& '.\Scripts\Batch\DisableWindowsErrorRecoveryonStartup.bat'
WriteTweak 45 "Disabled Windows Error Recovery on Startup"
}
#Internet Explorer 11 Tweaks
if ($CheckBox82.Checked){
& '.\Scripts\Batch\InternetExplorerTweaks.bat'
WriteTweak 45 "Applied Internet Explorer 11 Tweaks"
}
#Libary Tweaks
if ($CheckBox83.Checked){
if ($WinVersion -eq "10"){
} else {
& '.\Scripts\Batch\LibaryTweaks.bat'
}
WriteTweak 46 "Applied Libary Twaks"
}
#Windows Update Tweaks
if ($CheckBox84.Checked){
& '.\Scripts\Batch\UpdateTweaks.bat'
WriteTweak 46 "Applied Windows Update Tweaks"
}
#Windows Defender Tweaks
if ($CheckBox85.Checked){
& '.\Scripts\Batch\WindowsDefenderTweaks.bat'
WriteTweak 47 "Applied Windows Defender Tweaks"
}
#Blocking Telemetry Servers
if ($CheckBox56.Checked){
& '.\Scripts\Batch\Blocking\Telemetry.bat'
WriteTweak 47 "Blocked Telemetry Servers"
}
#Blocking More Windows Servers
if ($CheckBox78.Checked){
& '.\Scripts\Batch\Blocking\BlockingMoreWindowsServers.bat'
WriteTweak 48 "Blocked more Windows Servers"
}
#Mouse Accelleration Fix
if ($CheckBox114.Checked){
.\Scripts\Registry\MouseFix\MouseAccelerationFix.ps1
WriteTweak 48 "Applied Mouse Acceleration Fix"
}
#Mouse Accelleration Fix
if ($CheckBox114.Checked){
reg import .\Scripts\Registry\Enable_Clipboard_History_for_all_users.reg
WriteTweak 49 "Enabled Clipboard History for all Users"
}
$ProgressBarProgress.Value = 100
WriteLog "DONE"
$LabelProgressPercent.Text = ":=)"
$LabelProgressText.Text = "DONE"
WriteLog "Die Tweaks wurden erfolgreich abgeschlossen."
[System.Windows.Forms.MessageBox]::Show("Die Tweaks wurden erfolgreich abgeschlossen.","TGF Tuning Pack 4.2 by MinersWin",1)
[System.Windows.Forms.MessageBox]::Show("$($MessageEnglish)","Tuning Pack",1)
if ($Language -eq "de-DE"){
Write-Host "100%" -ForegroundColor Blue
Write-Host "Fertig" -ForegroundColor Blue
Write-Host "--------------------------------------------------------------------------------------------------" -ForegroundColor Red
Write-Host "Die Tweaks wurden erfolgreich abgeschlossen. Sollten Fehlermeldungen aufgetreten sein Liegt das wahrscheinlich am Auswählen nicht geeigneter Tweaks wie zum Beispiel Das entfernen von Windows 10 Apps unter Windows 7." -ForegroundColor Green
Write-Host "Wir Übernehmen keine Verantwortung für die Folgen und eventuelle Schäden an euren Systemen. Alle Tweaks wurden von euch Ausgewählt und mehrfach Bestätigt." -ForegroundColor Green
Write-Host "Bei Fragen oder Problemen gerne im Discord nach Lösung Fragen, im Forum einen Thread erstellen oder auf den TeamSpeak joinen." -ForegroundColor Green
Write-Host "Wir wärden uns Freuen eure Erfahrungen und Ergenisse zu sehen. Postet gerne Feedback im Discord." -ForegroundColor Green
Write-Host "Unterstützung dieses und weiteren Tools: https://paypal.me/minerswin" -ForegroundColor Green
Write-Host "Discord: https://discordapp.com/invite/qrXmqSq" -ForegroundColor Green
Write-Host "TeamSpeak: ts.thegeekfreaks.de" -ForegroundColor Green
Write-Host "Forum: forum.thegeekfreaks.de" -ForegroundColor Green
} else {
Write-Host "100%" -ForegroundColor Blue
Write-Host "Done" -ForegroundColor Blue
Write-Host "--------------------------------------------------------------------------------------------------" -ForegroundColor Red
Write-Host "The tweaks have been successfully completed. If error messages have occurred, this is probably due to the selection of unsuitable tweaks such as removing Windows 10 apps under Windows 7." -ForegroundColor Green
Write-Host "We are not responsible for the consequences and possible damage to your systems. All tweaks were selected by you and confirmed several times." -ForegroundColor Green
Write-Host "If you have any questions or problems, please feel free to ask for a solution in the Discord, create a Thread in the Forums or join the TeamSpeak." -ForegroundColor Green
Write-Host "We would be happy to see your experiences and results. Feel free to post feedback in the Discord or the Forums." -ForegroundColor Green
Write-Host "Support for this and other tools: https://paypal.me/minerswin" -ForegroundColor Green
Write-Host "Discord: https://discordapp.com/invite/qrXmqSq" -ForegroundColor Green
Write-Host "TeamSpeak: ts.thegeekfreaks.de" -ForegroundColor Green
Write-Host "Forum: forum.thegeekfreaks.de" -ForegroundColor Green
}
}
#Templates
$ButtonCreateTemplate.Add_Click{($ShopLink = [System.Windows.Forms.MessageBox]::Show("In Version 5 (or 4.5 PRO)`nhttps://shop.thegeekfreaks.de","TGF Tuning Pack 4.3",1)); if ($ShopLink -eq "Cancel"){}else{explorer https://shop.thegeekfreaks.de}} #Will open the shop site, if OK is clicked
$ButtonApplyTemplate.Add_Click{(Apply-Template)}
function Apply-Template{
if ($ComboBoxTemplates.SelectedItem -eq "Recommended"){
.\Templates\Recommended.ps1
}elseif ($ComboBoxTemplates.SelectedItem -eq "Best Performance"){
.\Templates\BestPerformance.ps1
}elseif ($ComboBoxTemplates.SelectedItem -eq "Maximum Battery Life"){
.\Templates\SaveEnergy.ps1
}elseif ($ComboBoxTemplates.SelectedItem -eq "Maximum Privacy"){
.\Templates\Privacy.ps1
}elseif ($ComboBoxTemplates.SelectedItem -eq "ULTIMATE PERFORMACE"){
.\Templates\UltimatePerformance.ps1
}elseif ($ComboBoxTemplates.SelectedItem -eq "Clear"){
.\Templates\Clear.ps1
}else{
.\Templates\Recommended.ps1
}
}
#About Button
function About {
# About Form Objects
$aboutForm = New-Object System.Windows.Forms.Form
$aboutFormExit = New-Object System.Windows.Forms.Button
$aboutFormImage = New-Object System.Windows.Forms.PictureBox
$aboutFormNameLabel = New-Object System.Windows.Forms.Label
$aboutFormText = New-Object System.Windows.Forms.Label
# About Form
$aboutForm.AcceptButton = $aboutFormExit
$aboutForm.CancelButton = $aboutFormExit
$aboutForm.ClientSize = "350, 110"
$aboutForm.ControlBox = $false
$aboutForm.ShowInTaskBar = $false
$aboutForm.StartPosition = "CenterParent"
$aboutForm.Text = "The Geek Freaks Tuning Pack 4.3"
$aboutForm.Add_Load($aboutForm_Load)
# About PictureBox
$icon = [System.Drawing.Bitmap]::FromFile('.\Images\favicon.ico')
$aboutFormImage.Image = $icon
$aboutFormImage.Location = "35, 15"
$aboutFormImage.Size = "64, 64"
$aboutFormImage.SizeMode = "StretchImage"
$aboutForm.Controls.Add($aboutFormImage)
# About Name Label
$aboutFormNameLabel.Font = New-Object Drawing.Font("Microsoft Sans Serif", 9, [System.Drawing.FontStyle]::Bold)
$aboutFormNameLabel.Location = "110, 20"
$aboutFormNameLabel.Size = "200, 18"
$aboutFormNameLabel.Text = "The Geek Freaks Tuning Pack 4.3"
$aboutForm.Controls.Add($aboutFormNameLabel)
# About Text Label
$aboutFormText.Location = "100, 40"
$aboutFormText.Size = "300, 30"
$aboutFormText.Text = " Created by MinersWin `n`r https://thegeekfreaks.de"
$aboutFormText.Add_Click{(explorer https://thegeekfreaks.de); explorer https://youtube.com/minerswin; explorer https://miners.win}
$aboutForm.Controls.Add($aboutFormText)
# About Exit Button
$aboutFormExit.Location = "135, 70"
$aboutFormExit.Text = "OK"
$aboutForm.Controls.Add($aboutFormExit)
[void]$aboutForm.ShowDialog()