This repository has been archived by the owner on Mar 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
old_rev3.bat
257 lines (226 loc) · 8.57 KB
/
old_rev3.bat
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
@echo off
set "params=%*"&cd /d "%~dp0" && ( if exist "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" ) && fsutil dirty query %systemdrive% 1>nul 2>nul || ( echo Set UAC = CreateObject^("Shell.Application"^) : UAC.ShellExecute "cmd.exe", "/c cd ""%~sdp0"" && %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" && "%temp%\getadmin.vbs" && exit /B )
setlocal enabledelayedexpansion
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://microtoolbox.github.io/batbox.exe -OutFile '%temp%\batbox.exe'
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://microtoolbox.github.io/getinput.exe -OutFile '%temp%\getinput.exe'
set "batbox=%temp%\batbox.exe"
set "getinput=%temp%\getinput.exe"
Title Software Download
"%Batbox%" /h 0
set "array="
set "array0="
set arrayindex=0
set entry=0
set entries=8
set "entrydata_0= Windows "
set "entrydata_1= Office "
set "entrydata_2= Adobe CC "
set "entrydata_3= Adobe CS6 "
set "entrydata_4= StartIsBack "
set "entrydata_5= Start11 "
set "func_5=install_start11"
set "entrydata_6= Notes "
set "entrydata_7= Defender "
set "func_7=defender"
set "entrydata_8= W8.0 Certs "
set "func_8=install_w8_certs"
set entries_0=1
set "entrydata_0_0= Install Windows "
set "func_0_0=install_windows"
set "entrydata_0_1= Activate with MAS "
set "func_0_1=MSActivation"
set "entrydata_0_2= Activate with KMS "&rem NOT AVAILABLE
set entries_1=1
set "entrydata_1_0= Install Office "
set "func_1_0=install_office"
set "entrydata_1_1= Activate with MAS "
set "func_1_1=MSActivation"
set entries_2=3
set "entrydata_2_0= Install Adobe CC "
set "func_2_0=CreativeCloud"
set "entrydata_2_1= Activate with GenP "
set "func_2_1=GenP"
set "entrydata_2_2= Activate with UAP "
set "func_2_2=UAP"
set "entrydata_2_3= Activate with AMTEmu "
set "func_2_3=AMTEmu"
set entries_3=2
set "entrydata_3_0= Install Adobe CS6 "
set "func_3_0=CreativeCloud"
set "entrydata_3_1= Activate with UAP "
set "func_3_1=UAP"
set "entrydata_3_2= Activate with AMTEmu "
set "func_3_2=AMTEmu"
set entries_4=1
set "entrydata_4_0= Install StartIsBack "
set "func_4_0=SIB"
set "entrydata_4_1= Activate StartIsBack "
set "func_4_1=ActivateSIB"
set entries_6=0
set "entrydata_6_0= No notes available "
set "func_6_0=back"
goto :home
:install_windows
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/windows ^| iex
exit /b
:install_office
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/office ^| iex
exit /b
:MSActivation
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/activate ^| iex
exit /b
:SIB
cls
ver|find "6.2"
if not errorlevel 1 (
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://www.startisback.com/StartIsBack_setup.exe -OutFile "%WinDir%\SIB.exe"
start "" "%WinDir%\SIB.exe"
)
ver|find "6.3"
if not errorlevel 1 (
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://www.startisback.com/StartIsBackPlus_setup.exe -OutFile "%WinDir%\SIB.exe"
start "" "%WinDir%\SIB.exe"
)
ver|find "10.0"
if not errorlevel 1 (
wmic os get caption /value|findstr /C:"Microsoft Windows 10"
if not errorlevel 1 (
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://www.startisback.com/StartIsBackPlusPlus_setup.exe -OutFile "%WinDir%\SIB.exe"
start "" "%WinDir%\SIB.exe"
) else (
curl https://www.startallback.com/download.php -L -o "%WinDir%\SAB.exe"
start "" "%WinDir%\SAB.exe"
)
)
exit /b
:ActivateSIB
wmic os get caption /value|findstr /C:"Microsoft Windows 11"
if errorlevel 1 (
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://microtoolbox.github.io/msimg32.dll -OutFile "${Env:ProgramFiles(x86)}\StartIsBack\msimg32.dll"
taskkill /f /im explorer.exe
start explorer
) else (
curl https://microtoolbox.github.io/StartAllBack_3.x_Patch.exe -o "%temp%\StartAllBack_3.x_Patch.exe"
start /wait "" "%temp%\StartAllBack_3.x_Patch.exe"
del /F /Q "%temp%\StartAllBack_3.x_Patch.exe"
)
exit /b
:defender
powershell Add-MpPreference -ExclusionPath '%WinDir%\dcontrol.exe' >nul 2>&1
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://microtoolbox.github.io/dcontrol.exe -OutFile "%WinDir%\dcontrol.exe"
powershell Add-MpPreference -ExclusionPath '%WinDir%\dcontrol.exe' >nul 2>&1
start "" "%WinDir%\dcontrol.exe"
exit /b
:CreativeCloud
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/adobe_cc ^| iex
exit /b
:CreativeSuite6
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/adobe_cs6 ^| iex
exit /b
:GenP
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/adobe_genp ^| iex
exit /b
:AMTEmu
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/adobe_amtemu ^| iex
exit /b
:UAP
cls
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';irm https://microtoolbox.github.io/adobe_uap ^| iex
exit /b
:install_w8_certs
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://microtoolbox.github.io/Windows8-RT-KB3004394-x64.msu -OutFile "${Env:temp}\Windows8-RT-KB3004394-x64.msu"
start /wait "" "%temp%\Windows8-RT-KB3004394-x64.msu"
exit /b
:install_start11
powershell [System.Net.ServicePointManager]::SecurityProtocol = 'TLS12';iwr https://microtoolbox.github.io/Start11.exe -OutFile "${Env:WinDir}\Start11.exe"
start "" "%WinDir%\Start11.exe"
exit /b
:back
set /a arrayindex=arrayindex-1
if !arrayindex! LSS 0 set arrayindex=0
call set array=%%array!arrayindex!%%
set entry=0
goto :home
:home
cls
Mode 48,17
set /a centerentries=entries-7
if %entry% LSS 7 (
set /a entrystart=0
set /a entryend=15
) else if %entry% GTR %centerentries% (
set /a entrystart=entries-15
set /a entryend=entries
) else (
set /a entrystart=entry-7
set /a entryend=entry+8
)
if %entrystart% LSS 0 set entrystart=0
if %entryend% GTR %entries% set entryend=%entries%
for /l %%i in (%entrystart%,1,%entryend%) do (
if not %%i GTR !entries%array%! if "%%i"=="%entry%" (
"%Batbox%" /c 0x70 /a 124 /d "!entrydata%array%_%%i!" /a 124 /c 0x07
) else (
"%Batbox%" /c 0x07 /a 124 /d "!entrydata%array%_%%i!" /a 124 /c 0x07
)
)
"%batbox%" /g 0 16 /d "W=Up S=Down A=Back D=Okay"
choice /C WASD /N>nul
if errorlevel 255 (
::choice failure
goto :home
) else if errorlevel 4 (
::D
if DEFINED entries%array%_%entry% (
set "array=%array%_%entry%"
set /a arrayindex=arrayindex+1
set "array%arrayindex%=%array%"
) else if DEFINED func%array%_%entry% (
call :!func%array%_%entry%!
)
set entry=0
goto :home
) else if errorlevel 3 (
::S
if not "%entry%"=="!entries%array%!" set /a entry=entry+1
goto :home
) else if errorlevel 2 (
::A
set /a arrayindex=arrayindex-1
if !arrayindex! LSS 0 set arrayindex=0
call set array=%%array!arrayindex!%%
set entry=0
goto :home
) else if errorlevel 1 (
::W
if not "%entry%"=="0" set /a entry=entry-1
goto :home
) else if errorlevel 0 (
::Ctrl+C
goto :home
)
goto :home
:getinput
"%temp%\getinput.exe"
if %errorlevel% gtr 0 (
set input=0
set key=%errorlevel%
) else (
set /A "input=-%errorlevel%, row=input >> 16, col=input & 0xFFFF"
if !col! lss 32768 (
set input=1
echo LEFT button clicked at !row!,!col!
) else (
set /A col-=32768
set input=2
echo RIGHT button clicked at !row!,!col!
)
)
exit /b