bugfixing
This commit is contained in:
parent
a0bfd6246c
commit
b224cb5b23
@ -3,6 +3,8 @@
|
|||||||
set EXE=..\software\totalcommander-setup.exe
|
set EXE=..\software\totalcommander-setup.exe
|
||||||
set KEY=..\personal\wincmd.key
|
set KEY=..\personal\wincmd.key
|
||||||
set TARGET=c:\totalcmd
|
set TARGET=c:\totalcmd
|
||||||
|
set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||||
|
set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
if NOT EXIST %EXE% (
|
if NOT EXIST %EXE% (
|
||||||
echo ERROR: %EXE% not found!
|
echo ERROR: %EXE% not found!
|
||||||
@ -14,9 +16,13 @@ echo ####### %0 #######
|
|||||||
echo installing TotalCommander ...
|
echo installing TotalCommander ...
|
||||||
start /wait %EXE% /AHMGDU
|
start /wait %EXE% /AHMGDU
|
||||||
|
|
||||||
echo renaming and moving TotalCommander desktop link ...
|
rem ... stupid Total Commander is installing its links to user area ? WTF ?
|
||||||
|
echo renaming and moving TotalCommander desktop link to public desktop ...
|
||||||
move /Y "%USERPROFILE%\Desktop\Total Commander*" "%PUBLIC%\Desktop\TCM.lnk"
|
move /Y "%USERPROFILE%\Desktop\Total Commander*" "%PUBLIC%\Desktop\TCM.lnk"
|
||||||
|
|
||||||
|
echo moving start menu entries to public area ...
|
||||||
|
move /Y %STARTMENU_USER%\"Total Commander" %STARTMENU% 2>nul
|
||||||
|
|
||||||
if EXIST %KEY% (
|
if EXIST %KEY% (
|
||||||
echo installing license ...
|
echo installing license ...
|
||||||
copy /Y %KEY% %TARGET%
|
copy /Y %KEY% %TARGET%
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
|
set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||||
|
set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
@ -24,6 +25,21 @@ rem VLC ...
|
|||||||
move /Y %STARTMENU%\"VideoLan\VLC media player.lnk" %STARTMENU% 2>nul
|
move /Y %STARTMENU%\"VideoLan\VLC media player.lnk" %STARTMENU% 2>nul
|
||||||
rd /S /Q %STARTMENU%\VideoLan 2>nul
|
rd /S /Q %STARTMENU%\VideoLan 2>nul
|
||||||
|
|
||||||
|
rem Windows stuff (Character map)...
|
||||||
|
move /Y %STARTMENU%\"Accessories\System Tools\Character*.*" ^
|
||||||
|
%STARTMENU%\"Accessories" 2>nul
|
||||||
|
rd /S /Q %STARTMENU%\"Accessories\System Tools" 2>nul
|
||||||
|
|
||||||
|
rem ... stupid OS problem #5
|
||||||
|
rem why the heck are "System Tools" installed per user ? stupid Microsoft.
|
||||||
|
move /Y %STARTMENU_USER%\"System Tools\*.*" ^
|
||||||
|
%STARTMENU%\"System Tools" 2>nul
|
||||||
|
|
||||||
|
rem ... stupid OS problem #6
|
||||||
|
rem same here for the accessibility tools. WHY ? stupid Microsoft.
|
||||||
|
move /Y %STARTMENU_USER%\"Accessibility\*.*" ^
|
||||||
|
%STARTMENU%\"Accessibility" 2>nul
|
||||||
|
|
||||||
echo start explorer again ...
|
echo start explorer again ...
|
||||||
ping 127.0.0.1 -n 3 >nul 2>nul
|
ping 127.0.0.1 -n 3 >nul 2>nul
|
||||||
start explorer.exe
|
start explorer.exe
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set TOOLS=c:\tools
|
set TOOLS=c:\tools
|
||||||
set STATUSFILE=%LOCALAPPDATA%\.user_settings_done
|
set STATUSFILE=%LOCALAPPDATA%\.user_settings_done
|
||||||
|
set STARTMENU=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
@ -119,13 +120,6 @@ rem config must be full qualified pathname (OpenShell BUG!)
|
|||||||
set CONFIG=%TOOLS%\scripts\config\OpenshellSettings.xml
|
set CONFIG=%TOOLS%\scripts\config\OpenshellSettings.xml
|
||||||
"%ProgramFiles%\Open-Shell\StartMenu.exe" -xml %CONFIG%
|
"%ProgramFiles%\Open-Shell\StartMenu.exe" -xml %CONFIG%
|
||||||
|
|
||||||
rem ... stupid os problem #4
|
|
||||||
echo removing some useless files ...
|
|
||||||
del /F %APPDATA%\"Microsoft\Windows\Start Menu\Programs\Accessories\Internet Explorer.lnk" 2>nul
|
|
||||||
del /F %APPDATA%\"Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 2>nul
|
|
||||||
rd /S /Q %APPDATA%\"Microsoft\Windows\Start Menu\Programs\Maintenance" 2>nul
|
|
||||||
del /F "%USERPROFILE%\Desktop\Microsoft Edge.lnk" 2>nul
|
|
||||||
|
|
||||||
echo restarting explorer ...
|
echo restarting explorer ...
|
||||||
taskkill /f /im explorer.exe 2>nul
|
taskkill /f /im explorer.exe 2>nul
|
||||||
timeout /T 2
|
timeout /T 2
|
||||||
@ -141,6 +135,25 @@ echo ##### cleaning ...
|
|||||||
echo #####
|
echo #####
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
rem ... stupid os problem #4
|
||||||
|
rem (has to be done over and over again - some zombies keep coming back ...)
|
||||||
|
echo removing and some useless links in start menu and desktop ...
|
||||||
|
|
||||||
|
rem Edge is such a zombie!
|
||||||
|
del /F %STARTMENU%\"Microsoft Edge.lnk" 2>nul
|
||||||
|
del /F %USERPROFILE%\"Desktop\Microsoft Edge.lnk" 2>nul
|
||||||
|
|
||||||
|
rem IE too!
|
||||||
|
del /F %STARTMENU%\"Accessories\Internet Explorer.lnk" 2>nul
|
||||||
|
|
||||||
|
rem finally remove some useless directories in the users start menu ...
|
||||||
|
rd /S /Q %STARTMENU%\"Accessories" 2>nul
|
||||||
|
rd /S /Q %STARTMENU%\"Accessibility" 2>nul
|
||||||
|
rd /S /Q %STARTMENU%\"Administrative Tools" 2>nul
|
||||||
|
rd /S /Q %STARTMENU%\"Maintenance" 2>nul
|
||||||
|
rd /S /Q %STARTMENU%\"System Tools" 2>nul
|
||||||
|
rd /S /Q %STARTMENU%\"Windows Powershell" 2>nul
|
||||||
|
|
||||||
echo 3D Objects ...
|
echo 3D Objects ...
|
||||||
rd /S /Q %USERPROFILE%\"3D Objects" 2>nul
|
rd /S /Q %USERPROFILE%\"3D Objects" 2>nul
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user