This commit is contained in:
Michael H.G. Schmidt 2022-12-18 21:08:07 +01:00
parent a78ce80aa3
commit 3fbef2b19b
2 changed files with 17 additions and 13 deletions

View File

@ -21,10 +21,6 @@ msiexec /i %MSI% /qn
@echo off
cd %OPT%
echo remapping Desktop folder to standard location ...
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" ^
/v Desktop /t REG_EXPAND_SZ /d "%USERPROFILE%\Desktop" /f 1>nul
echo restarting explorer ...
taskkill /f /im explorer.exe 1>nul 2>nul
start explorer.exe

View File

@ -98,10 +98,23 @@ echo remapping Desktop folder to standard location ...
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" ^
/v Desktop /t REG_EXPAND_SZ /d "%%USERPROFILE%%\Desktop" /f 1>nul
rem SEAFILE
rem fix for broken SEAFILE folder access rights ...
if EXIST %USERPROFILE%\Seafile (
echo removing SEAFILE system attributes ...
attrib -S %USERPROFILE%\Seafile /S /D
)
rem ================================================
rem USER TWEAKS AND CONFIG FILES (this runs always)
rem ================================================
rem adding autostart for SEAFILE ...
if EXIST "%ProgramFiles%\Seafile\bin\seafile-applet.exe" (
reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^
/v Seafile /t REG_SZ /d "%ProgramFiles%\Seafile\bin\seafile-applet.exe" /f 1>nul
)
rem ==================================================
rem USER TWEAKS AND CONFIG FILES (this runs only once)
rem ==================================================
rem User tweaks already done ?
if EXIST %USERCONFIG_DONE% GOTO USERTWEAKS_DONE
@ -132,12 +145,7 @@ copy /Y %TOOLS%\optional\config\WINCMD.ini %APPDATA%\GHISLER
echo copying TOTALCOMMANDER ftp config file ...
copy /Y %TOOLS%\optional\config\wcx_ftp.ini %APPDATA%\GHISLER
rem fix for broken SEAFILE folder access rights ...
if EXIST %USERPROFILE%\Seafile (
echo removing SEAFILE system attributes ...
attrib -S %USERPROFILE%\Seafile /S /D
)
rem THISPC
echo Adding "This PC" icon for current user on desktop Windows 10 ...
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel" ^
/v "{20D04FE0-3AEA-1069-A2D8-08002B30309D}" /t REG_DWORD /d 0 /f 1>nul