-
Notifications
You must be signed in to change notification settings - Fork 7
/
ALL-Install.cmd
51 lines (44 loc) · 1.3 KB
/
ALL-Install.cmd
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
@echo off
color F0
title Context Menu Tools for Windows File Explorer install
::get script directory finishing by \ without quotes
SET SCRIPT_PATH=%~dp0
::get script directory alone
set SCRIPT_PATH=%SCRIPT_PATH:~0,-1%
call :isAdmin
if %errorlevel% == 0 (
goto :run
) else (
color F9 & echo Requesting Administrator privileges...
goto :UACPrompt
)
exit /b
:isAdmin
fsutil dirty query %SystemDrive% >nul
exit /b
:run
::<BATCH ADMIN SCRIPT BELOW>
color F9 & echo Install...
cd "%SCRIPT_PATH%"
regedit /s List-in-Clipboard.reg
regedit /s List-in-Notepad.reg
regedit /s Lock-BitLocker-Drive.reg
regedit /s Get-fileHash.reg
regedit /s Wipe-free-space.reg
regedit /s CommandPrompt-here.reg
regedit /s PowerShell5-here.reg
regedit /s PowerShell5-ISE-here.reg
regedit /s PowerShell7-here.reg
regedit /s Git-here.reg
copy WindowsTerminal.ico %SystemRoot%\System32\
regedit /s WindowsTerminal-here.reg
cls & color F2 & echo Installed. [Space] to close.
::pause >nul
::<BATCH ADMIN SCRIPT ABOVE>
exit /b
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%TEMP%\tempGetAdmin.vbs"
echo UAC.ShellExecute "cmd.exe", "/c %~s0 %~1", "", "runas", 1 >> "%TEMP%\tempGetAdmin.vbs"
"%TEMP%\tempGetAdmin.vbs"
del "%TEMP%\tempGetAdmin.vbs"
exit /B