fixed aerolite theme bugs
This commit is contained in:
parent
42dc7b307b
commit
e3bf9e56bd
@ -3,12 +3,30 @@ set TOOLS=c:\tools
|
|||||||
|
|
||||||
set CONFIG=%TOOLS%\scripts\config
|
set CONFIG=%TOOLS%\scripts\config
|
||||||
set THEMES=C:\Windows\Resources\Themes
|
set THEMES=C:\Windows\Resources\Themes
|
||||||
|
set R=0
|
||||||
|
set G=0
|
||||||
|
set B=0
|
||||||
|
|
||||||
|
IF %1.==. GOTO USAGE
|
||||||
|
set R=%1
|
||||||
|
|
||||||
|
IF %2.==. GOTO USAGE
|
||||||
|
set G=%2
|
||||||
|
|
||||||
|
IF %3.==. GOTO USAGE
|
||||||
|
set B=%3
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
copy /Y %CONFIG%\aerolite.theme %THEMES%
|
echo Removing the desktop wallpaper ...
|
||||||
|
reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul
|
||||||
|
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
||||||
|
|
||||||
echo activating AEROLITE theme ...
|
echo Setting the desktop colour ...
|
||||||
|
%TOOLS%\setbgcol %R% %G% %B%
|
||||||
|
|
||||||
|
echo Activating AEROLITE theme ...
|
||||||
|
copy /Y %CONFIG%\aerolite.theme %THEMES%
|
||||||
@echo on
|
@echo on
|
||||||
powershell -command "Start-Process %THEMES%\aerolite.theme"
|
powershell -command "Start-Process %THEMES%\aerolite.theme"
|
||||||
@echo off
|
@echo off
|
||||||
@ -19,4 +37,10 @@ ping 127.0.0.1 -n 5 > NUL 2>&1
|
|||||||
taskkill /F /IM SystemSettings.exe 2>nul
|
taskkill /F /IM SystemSettings.exe 2>nul
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
GOTO END
|
||||||
|
|
||||||
|
:USAGE
|
||||||
|
echo "usage: %0 <R> <G> <B>"
|
||||||
|
echo.
|
||||||
|
|
||||||
|
:END
|
||||||
|
@ -36,7 +36,7 @@ rem ===================
|
|||||||
echo.
|
echo.
|
||||||
echo searching for SCRIPT settings ...
|
echo searching for SCRIPT settings ...
|
||||||
if NOT EXIST %SCRIPT_SETTINGS% (
|
if NOT EXIST %SCRIPT_SETTINGS% (
|
||||||
echo INFO: config file %COMPANY_SETTINGS% NOT FOUND
|
echo INFO: config file %SCRIPT_SETTINGS% NOT FOUND
|
||||||
) else (
|
) else (
|
||||||
echo OK. Loading SCRIPT settings ...
|
echo OK. Loading SCRIPT settings ...
|
||||||
call %SCRIPT_SETTINGS%
|
call %SCRIPT_SETTINGS%
|
||||||
@ -62,11 +62,7 @@ echo ##### GENERIC tasks and settings
|
|||||||
echo #####
|
echo #####
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo Removing the wallpaper ...
|
echo Setting desktop COLOUR ...
|
||||||
reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul
|
|
||||||
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
|
||||||
|
|
||||||
echo Setting the desktop colour ...
|
|
||||||
%TOOLS%\setbgcol %bgcol_R% %bgcol_G% %bgcol_B%
|
%TOOLS%\setbgcol %bgcol_R% %bgcol_G% %bgcol_B%
|
||||||
|
|
||||||
echo Starting BGInfo tool ...
|
echo Starting BGInfo tool ...
|
||||||
@ -93,7 +89,6 @@ if EXIST "%USERPROFILE%"\Seafile (
|
|||||||
attrib -S "%USERPROFILE%"\Seafile /S /D 1>nul 2>nul
|
attrib -S "%USERPROFILE%"\Seafile /S /D 1>nul 2>nul
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
rem ===================
|
rem ===================
|
||||||
rem EMCLIENT LICENSING
|
rem EMCLIENT LICENSING
|
||||||
rem ===================
|
rem ===================
|
||||||
@ -120,7 +115,6 @@ if %emclient_license% == 0 (
|
|||||||
|
|
||||||
:EMCLIENT_END
|
:EMCLIENT_END
|
||||||
|
|
||||||
|
|
||||||
rem =====================================================
|
rem =====================================================
|
||||||
rem ACCOUNT TWEAKS AND CONFIG FILES (this runs only once)
|
rem ACCOUNT TWEAKS AND CONFIG FILES (this runs only once)
|
||||||
rem =====================================================
|
rem =====================================================
|
||||||
@ -134,9 +128,9 @@ echo ##### INITIAL account setup
|
|||||||
echo #####
|
echo #####
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
rem ===============
|
rem ============
|
||||||
rem ONLY FOR ADMINS
|
rem ADMIN RIGHTS
|
||||||
rem ===============
|
rem ============
|
||||||
|
|
||||||
isuseradmin
|
isuseradmin
|
||||||
if %ERRORLEVEL% == 0 (
|
if %ERRORLEVEL% == 0 (
|
||||||
@ -165,6 +159,16 @@ if %ERRORLEVEL% == 0 (
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem ===========
|
||||||
|
rem USER RIGHTS
|
||||||
|
rem ===========
|
||||||
|
|
||||||
|
rem setting Aerolite theme...
|
||||||
|
if %install_aerolite% == 1 (
|
||||||
|
call %TOOLS%\scripts\modify-desktoptheme.cmd %bgcol_R% %bgcol_G% %bgcol_B%
|
||||||
|
echo.
|
||||||
|
)
|
||||||
|
|
||||||
echo Creating workspace folder ...
|
echo Creating workspace folder ...
|
||||||
mkdir "%USERPROFILE%"\workspace 1>nul 2>nul
|
mkdir "%USERPROFILE%"\workspace 1>nul 2>nul
|
||||||
|
|
||||||
@ -270,20 +274,6 @@ reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
|
|||||||
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
|
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" ^
|
||||||
/v "ShowFrequent" /t REG_DWORD /d 0 /f 1>nul
|
/v "ShowFrequent" /t REG_DWORD /d 0 /f 1>nul
|
||||||
|
|
||||||
rem setting Aerolite theme...
|
|
||||||
if %install_aerolite% == 1 (
|
|
||||||
call %TOOLS%\scripts\modify-desktoptheme.cmd
|
|
||||||
|
|
||||||
echo Removing the wallpaper ...
|
|
||||||
reg add "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d " " /f 1>nul
|
|
||||||
RUNDLL32.EXE user32.dll,UpdatePerUserSystemParameters
|
|
||||||
|
|
||||||
echo Setting the desktop colour ...
|
|
||||||
%TOOLS%\setbgcol %bgcol_R% %bgcol_G% %bgcol_B%
|
|
||||||
|
|
||||||
echo.
|
|
||||||
)
|
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo preparing the SEAFILE configuration
|
echo preparing the SEAFILE configuration
|
||||||
echo ########################################
|
echo ########################################
|
||||||
@ -325,9 +315,9 @@ echo #####
|
|||||||
echo ##### CLEANUP
|
echo ##### CLEANUP
|
||||||
echo #####
|
echo #####
|
||||||
|
|
||||||
rem ===============
|
rem ============
|
||||||
rem ONLY FOR ADMINS
|
rem ADMIN RIGHTS
|
||||||
rem ===============
|
rem ============
|
||||||
|
|
||||||
isuseradmin
|
isuseradmin
|
||||||
if %ERRORLEVEL% == 0 (
|
if %ERRORLEVEL% == 0 (
|
||||||
@ -362,6 +352,10 @@ if %ERRORLEVEL% == 0 (
|
|||||||
|
|
||||||
) else (
|
) else (
|
||||||
|
|
||||||
|
rem ===========
|
||||||
|
rem USER RIGHTS
|
||||||
|
rem ===========
|
||||||
|
|
||||||
echo Removing accessibility tools folder ...
|
echo Removing accessibility tools folder ...
|
||||||
rd /S /Q %STARTMENU%\Accessibility 2>nul
|
rd /S /Q %STARTMENU%\Accessibility 2>nul
|
||||||
|
|
||||||
@ -373,6 +367,10 @@ if %ERRORLEVEL% == 0 (
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
rem ===========
|
||||||
|
rem USER RIGHTS
|
||||||
|
rem ===========
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo Cleaning users home directory
|
echo Cleaning users home directory
|
||||||
echo ########################################
|
echo ########################################
|
||||||
|
Loading…
Reference in New Issue
Block a user