-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTuning-Pack.ps1
More file actions
22 lines (22 loc) · 753 Bytes
/
Tuning-Pack.ps1
File metadata and controls
22 lines (22 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
function Test_TuningPack{
$TuningPack = Test-Path '.\TuningPack\TGF-Tuning-Pack-4.0-master\GUI.ps1'
if ($TuningPack){
$Button49.Add_Click{(TuningPack)}
$Button49.ForeColor = 'Green'
} else {
$Button49.Add_Click{(Download_TuningPack)}
$Button49.ForeColor = 'RED'
}
}
function TuningPack{
& '.\TuningPack\TGF-Tuning-Pack-4.0-master\GUI.ps1'
}
function Download_TuningPack{
mkdir TuningPack
Set-Location .\TuningPack
wget 'https://github.com/MinersWin/TGF-Tuning-Pack-4.0/archive/master.zip' -OutFile 'TuningPack.zip'
Expand-Archive .\TuningPack.zip -DestinationPath .\
rm TuningPack.zip
Set-Location .\..\
Test_TuningPack
}