no seafile and no emclient for the admin(support) user
This commit is contained in:
parent
63980f7cf9
commit
5305626ddd
@ -80,7 +80,8 @@ echo Remapping Desktop folder to standard location ...
|
|||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" ^
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" ^
|
||||||
/v Desktop /t REG_EXPAND_SZ /d "%USERPROFILE%\Desktop" /f 1>nul
|
/v Desktop /t REG_EXPAND_SZ /d "%USERPROFILE%\Desktop" /f 1>nul
|
||||||
|
|
||||||
if EXIST "%ProgramFiles%\Seafile\bin\seafile-applet.exe" (
|
rem NO seafile Autostart for the Admin!
|
||||||
|
if EXIST "%ProgramFiles%\Seafile\bin\seafile-applet.exe" if "%USERNAME%" NEQ "%SUPPORT_USER%" (
|
||||||
echo Setting autostart for SEAFILE client ...
|
echo Setting autostart for SEAFILE client ...
|
||||||
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^
|
reg add "HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^
|
||||||
/v Seafile /t REG_SZ /d "%ProgramFiles%\Seafile\bin\seafile-applet.exe" /f 1>nul
|
/v Seafile /t REG_SZ /d "%ProgramFiles%\Seafile\bin\seafile-applet.exe" /f 1>nul
|
||||||
@ -97,7 +98,10 @@ rem EMCLIENT LICENSING
|
|||||||
rem ===================
|
rem ===================
|
||||||
|
|
||||||
rem licensing for emClient already done ?
|
rem licensing for emClient already done ?
|
||||||
if EXIST %EMLICENSE_DONE% GOTO EMCLIENT_END
|
if EXIST %EMLICENSE_DONE% GOTO EMCLIENT_DONE
|
||||||
|
|
||||||
|
rem no emClient for the Admin!
|
||||||
|
if "%USERNAME%" == "%SUPPORT_USER%" GOTO EMCLIENT_DONE
|
||||||
|
|
||||||
if %emclient_license% == 0 (
|
if %emclient_license% == 0 (
|
||||||
echo no emClient license found!
|
echo no emClient license found!
|
||||||
@ -116,7 +120,7 @@ if %emclient_license% == 0 (
|
|||||||
echo.
|
echo.
|
||||||
)
|
)
|
||||||
|
|
||||||
:EMCLIENT_END
|
:EMCLIENT_DONE
|
||||||
|
|
||||||
rem =====================================================
|
rem =====================================================
|
||||||
rem ACCOUNT TWEAKS AND CONFIG FILES (this runs only once)
|
rem ACCOUNT TWEAKS AND CONFIG FILES (this runs only once)
|
||||||
@ -278,6 +282,9 @@ 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 no SEAFILE for the Admin!
|
||||||
|
if "%USERNAME%" == "%SUPPORT_USER%" GOTO SEAFILE_DONE
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo preparing the SEAFILE configuration
|
echo preparing the SEAFILE configuration
|
||||||
echo ########################################
|
echo ########################################
|
||||||
@ -296,6 +303,7 @@ if seafile_domain == 0 (
|
|||||||
reg add "HKCU\SOFTWARE\SeaFile" ^
|
reg add "HKCU\SOFTWARE\SeaFile" ^
|
||||||
/v "PreconfigureUserToken" /d "dummy" /t REG_SZ /f 1>nul
|
/v "PreconfigureUserToken" /d "dummy" /t REG_SZ /f 1>nul
|
||||||
)
|
)
|
||||||
|
:SEAFILE_DONE
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo reorganizing start menu and desktop
|
echo reorganizing start menu and desktop
|
||||||
|
Loading…
Reference in New Issue
Block a user