-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.bat
More file actions
39 lines (33 loc) · 930 Bytes
/
install.bat
File metadata and controls
39 lines (33 loc) · 930 Bytes
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
@ECHO OFF
PUSHD %~dp0
:: Check for Admin rights
:l_PermissionCheck
echo This script must be run as an Administrator, checking...
net session >nul 2>&1
if %ERRORLEVEL% == 0 (
echo You are an Administrator!
echo.
) else (
echo You are not an Administrator.
echo.
echo Press any key to exit.
pause > nul
exit
)
:l_ResourceInstall
:: Install resources
ECHO Copying resources...
ECHO.
IF EXIST "C:\Windows\CustomCommands" RMDIR /Q /S "C:\Windows\CustomCommands"
IF EXIST "C:\Windows\CustomIcons" RMDIR /Q /S "C:\Windows\CustomIcons"
ROBOCOPY "Resources\CustomCommands" "C:\Windows\CustomCommands" /E /COPYALL > install_log.txt
ROBOCOPY "Resources\CustomIcons" "C:\Windows\CustomIcons" /E /COPYALL >> install_log.txt
:l_RegistryInstall
:: Merge registry information
ECHO Merging registry information...
ECHO.
REGEDIT /S "Resources\CodingShell.reg"
ECHO Done!
ECHO.
ECHO Press any button to close this window.
PAUSE > nul