-
Notifications
You must be signed in to change notification settings - Fork 0
/
Redate.bat
349 lines (293 loc) · 20.3 KB
/
Redate.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
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
@setlocal DisableDelayedExpansion
@echo off
REM --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
echo Requesting administrative privileges...
goto UACPrompt
) else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
set params = %*:"="
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
del "%temp%\getadmin.vbs"
exit /B
:gotAdmin
pushd "%CD%"
CD /D "%~dp0"
==========================================================================================================================
:welcome
cls
color 0c
Title Welcome to Redate
echo " ______ _ ";
echo "(_____ \ | | _ ";
echo " _____) ) ____ _ | | ____ | |_ ____ ";
echo "(_____ ( / _ ) / || | / _ || _) / _ )";
echo " | |( (/ / ( (_| |( ( | || |__ ( (/ / ";
echo " |_| \____) \____| \_||_| \___) \____)";
echo " ";
echo Quick tool to Install and update common apps
echo Website: https://sites.google.com/view/redate
echo Contact: https://sites.google.com/view/redate/support/contact-me
pause
==========================================================================================================================
WHERE choco >nul 2>nul
if ERRORLEVEL == 1 (
echo Choco not installed, Installing now... && goto :installchoco
) else (
echo ================================
echo. Choco installed, proceeding...
echo ================================
goto :wingetcheck
)
==========================================================================================================================
:installchoco
powershell.exe -ExecutionPolicy Bypass -Command "& { Set-ExecutionPolicy Bypass -Scope Process; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex }"
if ERRORLEVEL == 1 (
echo choco failed to install. Please install it manually
start https://community.chocolatey.org/
goto :error
) else (
goto :wingetcheck
)
==========================================================================================================================
:wingetcheck
WHERE winget >nul 2>nul
if ERRORLEVEL == 1 (
goto :wingetinstall
) else (
echo ==============================================
echo. Winget installed, proceeding to main menu...
echo ==============================================
goto :mainmenu
)
==========================================================================================================================
:wingetinstall
choco install winget-cli
if ERRORLEVEL == 1 (
echo =========================================================================================================================================================================
echo. Winget failed to install. Make sure you have app installer installed from the microsoft store, if you cannot find it make sure you are running Windows 10 1709 or later
echo =========================================================================================================================================================================
goto :error
) else (
goto :mainmenu
)
==========================================================================================================================
:mainmenu
cls
color 0c
title Redate Windows
mode 108, 25
echo:
echo: ^|Redate Options^|
echo:
echo:
echo: # [1] Update All apps ^| Updates All of your apps ^| May require Administrator priviliges #
echo: # [2] Install common apps ^| It's in the name ^| List of common apps you can install #
echo: # [3] Windows Update ^| Checks for Windows updates ^| Recommended before updating apps #
echo: # [4] Uninstall Common apps^| It's in the name (again) ^| #
echo: # __________________________________________________________________________________________________ #
echo: # #
echo: # [5] Help #
echo: # [6] Extras #
echo: # [0] Exit #
echo: # __________________________________________________________________________________________________ #
echo:
echo: Enter a menu option in the Keyboard [1,2,3,4,5,6,0]:
choice /C:1234560 /N >nul 2>nul
set _erl=%errorlevel%
if %_erl%==7 exit /b
if %_erl%==6 setlocal & call :extra & endlocal & goto :mainmenu
if %_erl%==5 start https://sites.google.com/view/redate/support/faq & goto :MainMenu
if %_erl%==4 setlocal & call :Uninstallmenu & cls & endlocal & goto :MainMenu
if %_erl%==3 setlocal & control update & cls & endlocal & goto :MainMenu
if %_erl%==2 setlocal & call :Installmenu & cls & endlocal & goto :MainMenu
if %_erl%==1 setlocal & call :wingetupdate & cls & endlocal & goto :MainMenu
goto :MainMenu
==========================================================================================================================
:extra
cls
color 0c
title Redate Extras
mode 108, 20
echo:
echo: ^|Extras^|
echo:
echo:
echo: # [1] Chris Titus winutil ^| Runs the Chris Titus Winutil #
echo: # [2] Download More ram ^| Downloads more ram (Joke) #
echo: # [3] Sysinfo ^| Opens winver and shows system information #
echo: # __________________________________________________________________________________________________ #
echo: # #
echo: # [0] Exit to main menu #
echo: # __________________________________________________________________________________________________ #
echo:
echo: Enter a menu option in the Keyboard [1,2,3,0]:
choice /C:1230 /N >nul 2>nul
set __erl=%errorlevel%
if %__erl%==4 exit /b
if %__erl%==3 start winver & start msinfo32 & goto :extra
if %__erl%==2 start https://www.youtube.com/watch?v=dQw4w9WgXcQ & goto :extra
if %__erl%==1 powershell.exe -Command "iwr -useb https://christitus.com/win | iex" & exit /b
goto :extra
==========================================================================================================================
:Installmenu
cls
color 0c
mode 108, 25
Title Redate Windows
echo:
echo: ^| Choose the app you want to install (eg. 2 for Firefox ) ^|
echo:----------------------------------------------------------------------------------------------------------
echo: ^|Browsers^| ^|Advanced tools^| ^|Gaming^|
echo:
echo: # [1] Chrome Web browser ^| [12] Git ^| [24] Steam ^|
echo: # [2] Firefox ^| [13] Github Desktop ^| [25] EA App (Was Origin) ^|
echo: # [3] Opera Browser ^| [14] Unity Hub ^| [26] Epic Games ^|
echo: # [4] Opera GX (The gaming browser) ^| [15] VS Code ^| [27] Itch.io ^|
echo: # [5] Brave ^| [16] Power Toys ^| [28] GOG ^|
echo: # [6] Tor Browser ^| [17] Notepad ++ ^| [29] Ubisoft Connect ^|
echo: # [7] Chromium (Open source chrome) ^| [18] OBS Studio ^| [30] Sidequest ^|
echo:----------------------------------------------------------------------------------------------------------
echo: # ^|Communication^| ^| [19] Angry IP Scanner ^| ^|Other^|
echo: # [8] Discord ^| [20] puTTy ^| [31] Rufus ^|
echo: # [9] Whatsapp ^| [21] 7-Zip (WinRAR but free) ^| [32] GIMP ^|
echo: # [10] Zoom ^| [22] Wireshark ^| [33] Wiztree ^|
echo: # [11] Thunderbird ^| [23] Google Drive ^| [34] Motrix Download Manager ^|
echo:----------------------------------------------------------------------------------------------------------
echo: [99] Exit to main menu
echo:----------------------------------------------------------------------------------------------------------
echo:
set /p "M=Enter a menu option in the Keyboard: "
IF "%M%"=="1" cls & winget.exe install --id Google.Chrome --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="2" cls & winget.exe install --id Mozilla.Firefox --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="3" cls & winget.exe install --id Opera.Opera --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="4" cls & winget.exe install --id Opera.OperaGX --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="5" cls & winget.exe install --id Brave.Brave --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="6" cls & winget.exe install --id TorProject.TorBrowser --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="7" cls & winget.exe install --id Hibbiki.Chromium --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="8" cls & winget.exe install --id Discord.Discord --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="9" cls & winget.exe install --id 9NKSQGP7F2NH --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="10" cls & winget.exe install --id Zoom.Zoom --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="11" cls & winget.exe install --id Mozilla.Thunderbird --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="12" cls & winget.exe install --id Git.Git --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="13" cls & winget.exe install --id GitHub.GitHubDesktop --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="14" cls & winget.exe install --id Unity.UnityHub --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="15" cls & winget.exe install --id Microsoft.VisualStudioCode --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="16" cls & winget.exe install --id XP89DCGQ3K6VLD --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="17" cls & winget.exe install --id Notepad++.Notepad++ --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="18" cls & winget.exe install --id OBSProject.OBSStudio --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="19" cls & winget.exe install --id angryziber.AngryIPScanner --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="20" cls & choco.exe install putty -y & goto :Installmenu
IF "%M%"=="21" cls & winget.exe install --id 7zip.7zip --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="22" cls & choco.exe install wireshark -y & goto :Installmenu
IF "%M%"=="23" cls & winget.exe install --id Google.GoogleDrive --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="24" cls & winget.exe install --id Valve.Steam --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="25" cls & winget.exe install --id ElectronicArts.EADesktop --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="26" cls & winget.exe install --id EpicGames.EpicGamesLauncher --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="27" cls & winget.exe install --id ItchIo.Itch --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="28" cls & winget.exe install --id GOG.Galaxy --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="29" cls & winget.exe install --id Ubisoft.Connect --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="30" cls & winget.exe install --id SideQuestVR.SideQuest --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="31" cls & winget.exe install --id Rufus.Rufus --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="32" cls & winget.exe install --id GIMP.GIMP --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="33" cls & winget.exe install --id AntibodySoftware.WizTree --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="34" cls & winget.exe install --id agalwood.Motrix --exact --accept-source-agreements --accept-package-agreements & goto :Installmenu
IF "%M%"=="99" goto :mainmenu
goto :Installmenu
==========================================================================================================================
:Uninstallmenu
cls
color 0c
mode 108, 25
Title Redate Windows
echo:
echo: ^| Choose the app you want to Uninstall (Only Choose the ones that you installed ) ^|
echo:----------------------------------------------------------------------------------------------------------
echo: ^|Browsers^| ^|Advanced tools^| ^|Gaming^|
echo:
echo: # [1] Chrome Web browser ^| [12] Git ^| [24] Steam ^|
echo: # [2] Firefox ^| [13] Github Desktop ^| [25] EA App (Was Origin) ^|
echo: # [3] Opera Browser ^| [14] Unity Hub ^| [26] Epic Games ^|
echo: # [4] Opera GX (The gaming browser) ^| [15] VS Code ^| [27] Itch.io ^|
echo: # [5] Brave ^| [16] Power Toys ^| [28] GOG ^|
echo: # [6] Tor Browser ^| [17] Notepad ++ ^| [29] Ubisoft Connect ^|
echo: # [7] Chromium (Open source chrome) ^| [18] OBS Studio ^| [30] Sidequest ^|
echo:----------------------------------------------------------------------------------------------------------
echo: # ^|Communication^| ^| [19] Angry IP Scanner ^| ^|Other^|
echo: # [8] Discord ^| [20] puTTy ^| [31] Rufus ^|
echo: # [9] Whatsapp ^| [21] 7-Zip (WinRAR but free) ^| [32] GIMP ^|
echo: # [10] Zoom ^| [22] Wireshark ^| [33] Wiztree ^|
echo: # [11] Thunderbird ^| [23] Google Drive ^| [34] Motrix Download Manager ^|
echo:----------------------------------------------------------------------------------------------------------
echo: [99] Exit to main menu
echo:----------------------------------------------------------------------------------------------------------
echo:
set /p "M=Enter a menu option in the Keyboard: "
IF "%M%"=="1" cls & winget.exe rm --id Google.Chrome --exact & goto :Uninstallmenu
IF "%M%"=="2" cls & winget.exe rm --id Mozilla.Firefox --exact & goto :Uninstallmenu
IF "%M%"=="3" cls & winget.exe rm --id Opera.Opera --exact & goto :Uninstallmenu
IF "%M%"=="4" cls & winget.exe rm --id Opera.OperaGX --exact & goto :Uninstallmenu
IF "%M%"=="5" cls & winget.exe rm --id Brave.Brave --exact & goto :Uninstallmenu
IF "%M%"=="6" cls & winget.exe rm --id TorProject.TorBrowser --exact & goto :Uninstallmenu
IF "%M%"=="7" cls & winget.exe rm --id Hibbiki.Chromium --exact & goto :Uninstallmenu
IF "%M%"=="8" cls & winget.exe rm --id Discord.Discord --exact & goto :Uninstallmenu
IF "%M%"=="9" cls & winget.exe rm --id 9NKSQGP7F2NH --exact & goto :Uninstallmenu
IF "%M%"=="10" cls & winget.exe rm --id Zoom.Zoom --exact & goto :Uninstallmenu
IF "%M%"=="11" cls & winget.exe rm --id Mozilla.Thunderbird --exact & goto :Uninstallmenu
IF "%M%"=="12" cls & winget.exe rm --id Git.Git --exact & goto :Uninstallmenu
IF "%M%"=="13" cls & winget.exe rm --id GitHub.GitHubDesktop --exact & goto :Uninstallmenu
IF "%M%"=="14" cls & winget.exe rm --id Unity.UnityHub --exact & goto :Uninstallmenu
IF "%M%"=="15" cls & winget.exe rm --id Microsoft.VisualStudioCode --exact & goto :Uninstallmenu
IF "%M%"=="16" cls & winget.exe rm --id XP89DCGQ3K6VLD --exact & goto :Uninstallmenu
IF "%M%"=="17" cls & winget.exe rm --id Notepad++.Notepad++ --exact & goto :Uninstallmenu
IF "%M%"=="18" cls & winget.exe rm --id OBSProject.OBSStudio --exact & goto :Uninstallmenu
IF "%M%"=="19" cls & winget.exe rm --id angryziber.AngryIPScanner --exact & goto :Uninstallmenu
IF "%M%"=="20" cls & choco.exe Uninstall putty -y & goto :Uninstallmenu
IF "%M%"=="21" cls & winget.exe rm --id 7zip.7zip --exact & goto :Uninstallmenu
IF "%M%"=="22" cls & choco.exe Uninstall wireshark -y & goto :Uninstallmenu
IF "%M%"=="23" cls & winget.exe rm --id Google.GoogleDrive --exact & goto :Uninstallmenu
IF "%M%"=="24" cls & winget.exe rm --id Valve.Steam --exact & goto :Uninstallmenu
IF "%M%"=="25" cls & winget.exe rm --id ElectronicArts.EADesktop --exact & goto :Uninstallmenu
IF "%M%"=="26" cls & winget.exe rm --id EpicGames.EpicGamesLauncher --exact & goto :Uninstallmenu
IF "%M%"=="27" cls & winget.exe rm --id ItchIo.Itch --exact & goto :Uninstallmenu
IF "%M%"=="28" cls & winget.exe rm --id GOG.Galaxy --exact & goto :Uninstallmenu
IF "%M%"=="29" cls & winget.exe rm --id Ubisoft.Connect --exact & goto :Uninstallmenu
IF "%M%"=="30" cls & winget.exe rm --id SideQuestVR.SideQuest --exact & goto :Uninstallmenu
IF "%M%"=="31" cls & winget.exe rm --id Rufus.Rufus --exact & goto :Uninstallmenu
IF "%M%"=="32" cls & winget.exe rm --id GIMP.GIMP --exact & goto :Uninstallmenu
IF "%M%"=="33" cls & winget.exe rm --id AntibodySoftware.WizTree --exact & goto :Uninstallmenu
IF "%M%"=="34" cls & winget.exe rm --id agalwood.Motrix --exact & goto :Uninstallmenu
IF "%M%"=="99" goto :mainmenu
goto :Uninstallmenu
==========================================================================================================================
:wingetupdate
cls
winget upgrade --all
if ERRORLEVEL == 1 (
echo =======================================================================================================================
echo. Oh no! Winget failed to update all apps :( You can check the error and troubleshoot it yourself or you can contact me
echo =======================================================================================================================
goto :error
) else (
goto :chocoupdate
)
==========================================================================================================================
:chocoupdate
cls
choco upgrade all -y
if errorlevel == 1 (
echo ======================================================================================================================
echo. Oh no! Choco failed to update all apps :( You can check the error and troubleshoot it yourself or you can contact me
echo ======================================================================================================================
goto :error
) else (
goto :mainmenu
)
==========================================================================================================================
:error
pause
exit