-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Remove_Theme.bat
60 lines (47 loc) · 3 KB
/
Remove_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
@echo off
if exist "C:\Program Files\Open-Shell\StartMenu.exe" (
echo.
echo ERROR: Uninstall Open-Shell-Menu first from control panel or settings.
echo.
pause
goto :END
)
setlocal
SET /P THEMEPICK=Which theme do you want to remove? XP, Vista or 9x:
IF /I "%THEMEPICK%" EQU "9x" (
set SHORTNAME=Win9x
set LONGNAME=Windows9x
) ELSE IF /I "%THEMEPICK%" EQU "XP" (
set SHORTNAME=WinXP
set LONGNAME=WindowsXP
) ELSE IF /I "%THEMEPICK%" EQU "Vista" (
set SHORTNAME=WinVista
set LONGNAME=WindowsVista
)
SET /P AREYOUSURE=Ready to start? Y/[N]:
IF /I "%AREYOUSURE%" NEQ "Y" GOTO END
control appwiz.cpl
:: Big taskbar buttons, hide text
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V TaskbarSmallIcons /T REG_DWORD /D 0 /F
REG ADD "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /V TaskbarGlomLevel /T REG_DWORD /D 0 /F
:: Hide desktop icons
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {20D04FE0-3AEA-1069-A2D8-08002B30309D} /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {59031a47-3f72-44a7-89c5-5595fe6b30ee} /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {645FF040-5081-101B-9F08-00AA002F954E} /t REG_DWORD /d 1 /f
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel /v {F02C1A0D-BE21-4350-88B0-7367FC96EF3C} /t REG_DWORD /d 1 /f
:: Restore desktop icons
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon" /VE /t REG_EXPAND_SZ /D "%SystemRoot%\System32\imageres.dll,-109" /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{59031A47-3F72-44A7-89C5-5595FE6B30EE}\DefaultIcon" /VE /D "C:\WINDOWS\System32\imageres.dll,-123" /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon" /VE /t REG_EXPAND_SZ /D "C:\WINDOWS\System32\imageres.dll,-54" /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 "C:\WINDOWS\System32\imageres.dll,-55" /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 "C:\WINDOWS\System32\imageres.dll,-54" /F
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\CLSID\{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}\DefaultIcon" /VE /D "C:\WINDOWS\System32\imageres.dll,-25" /F
:: Change wallpaper
"%userprofile%\documents\Themes\%SHORTNAME%\restore.deskthemepack"
:: Reload explorer to show applied changes
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
taskkill /f /im explorer.exe
start explorer.exe
echo - Delete the folder %userprofile%\documents\Themes
:END
endlocal