-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathApply_Theme.bat
85 lines (69 loc) · 4.36 KB
/
Apply_Theme.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
@echo off
if exist "C:\Program Files\Open-Shell\StartMenu.exe" (
::echo Open-Shell-Menu is installed!
echo.
) else (
echo ERROR: Install Open-Shell-Menu before running this file! https://github.com/Open-Shell/Open-Shell-Menu/releases
echo It should be installed to "C:\Program Files\Open-Shell"
pause
goto :END
)
for /F "tokens=3" %%A in ('reg query "HKCU\Control Panel\Desktop\PerMonitorSettings" /s') DO if %%A GEQ 0x2 (
if %%A LEQ 0x20 (
@echo:
echo ERROR: Your monitor resolution scale is set too high! Lower it to 100 percent or 125 percent in settings.
@echo:
pause
goto :END
)
)
setlocal
SET /P THEMEPICK=Which theme do you want installed? XP, Vista or 9x:
IF /I "%THEMEPICK%" EQU "9x" (
set SHORTNAME=Win9x
set LONGNAME=Windows9x
set DIRNAME=WIN 9X THEME
) ELSE IF /I "%THEMEPICK%" EQU "XP" (
set SHORTNAME=WinXP
set LONGNAME=WindowsXP
set DIRNAME=WIN XP THEME
) ELSE IF /I "%THEMEPICK%" EQU "Vista" (
set SHORTNAME=WinVista
set LONGNAME=WindowsVista
set DIRNAME=WIN VISTA THEME
)
echo - This batch file will copy this folder to %userprofile%\documents\Themes\%SHORTNAME%\
SET /P AREYOUSURE=Ready to start? Y/[N]:
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
:: Copy files to directory Themes folder
xcopy /s "%CD%\%DIRNAME%" "%userprofile%\documents\Themes\%SHORTNAME%\"
copy "%CD%\Apply_Theme.bat" "%userprofile%\documents\Themes\Apply_%LONGNAME%_Theme.bat"
copy "%CD%\Remove_Theme.bat" "%userprofile%\documents\Themes\Remove_Theme.bat"
:: Small taskbar buttons with text
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V TaskbarSmallIcons /T REG_DWORD /D 1 /F
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V TaskbarGlomLevel /T REG_DWORD /D 2 /F
:: Show desktop icons
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {645FF040-5081-101B-9F08-00AA002F954E} /t REG_DWORD /d 0 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {F02C1A0D-BE21-4350-88B0-7367FC96EF3C} /t REG_DWORD /d 0 /f
:: Change desktop icons
set DOC_PATH="%userprofile%\documents\Themes\%SHORTNAME%\System Icons"
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon" /VE /D %DOC_PATH%\explorer_100.ico /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{59031A47-3F72-44A7-89C5-5595FE6B30EE}\DefaultIcon" /VE /D %DOC_PATH%\inetcpl_1319.ico /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon" /VE /t REG_EXPAND_SZ /D %DOC_PATH%\shell32_32.ico /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon" /V full /t REG_EXPAND_SZ /D %DOC_PATH%\shell32_33.ico /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon" /V empty /t REG_EXPAND_SZ /D %DOC_PATH%\shell32_32.ico /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\DefaultIcon" /VE /D %DOC_PATH%\shell32_19.ico /F
:: Apply open-shell-menu theme
for /F "tokens=3" %%A in ('reg query "HKCU\Control Panel\Desktop\PerMonitorSettings" /s') DO if %%A == 0x0 ( "C:\Program Files\Open-Shell\StartMenu" -xml "%userprofile%\documents\Themes\%SHORTNAME%\Menu Settings.xml" ) else if %%A == 0x1 ( "C:\Program Files\Open-Shell\StartMenu" -xml "%userprofile%\documents\Themes\%SHORTNAME%\Menu Settings (x1.25).xml" )
:: Change wallpaper
reg add "HKCU\Control Panel\Desktop" /v Wallpaper /f /t REG_SZ /d "%userprofile%\documents\Themes\%SHORTNAME%\Wallpapers\I4IF27V.bmp"
"%userprofile%\documents\Themes\%SHORTNAME%\%SHORTNAME%.deskthemepack"
echo You can now delete this folder.
:: Reload explorer to show applied changes
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
taskkill /f /im explorer.exe
start explorer.exe
:END
endlocal