bugfixing

This commit is contained in:
Michael H.G. Schmidt 2021-03-14 11:53:43 +01:00
parent a0bfd6246c
commit b224cb5b23
3 changed files with 44 additions and 9 deletions

View File

@ -3,6 +3,8 @@
set EXE=..\software\totalcommander-setup.exe
set KEY=..\personal\wincmd.key
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% (
echo ERROR: %EXE% not found!
@ -14,9 +16,13 @@ echo ####### %0 #######
echo installing TotalCommander ...
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"
echo moving start menu entries to public area ...
move /Y %STARTMENU_USER%\"Total Commander" %STARTMENU% 2>nul
if EXIST %KEY% (
echo installing license ...
copy /Y %KEY% %TARGET%

View File

@ -1,6 +1,7 @@
@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 #######
@ -24,6 +25,21 @@ rem VLC ...
move /Y %STARTMENU%\"VideoLan\VLC media player.lnk" %STARTMENU% 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 ...
ping 127.0.0.1 -n 3 >nul 2>nul
start explorer.exe

View File

@ -1,6 +1,7 @@
@echo off
set TOOLS=c:\tools
set STATUSFILE=%LOCALAPPDATA%\.user_settings_done
set STARTMENU=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
echo ####### %0 #######
@ -119,13 +120,6 @@ rem config must be full qualified pathname (OpenShell BUG!)
set CONFIG=%TOOLS%\scripts\config\OpenshellSettings.xml
"%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 ...
taskkill /f /im explorer.exe 2>nul
timeout /T 2
@ -141,6 +135,25 @@ echo ##### cleaning ...
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 ...
rd /S /Q %USERPROFILE%\"3D Objects" 2>nul