several tweaks

This commit is contained in:
Michael H.G. Schmidt 2023-01-15 17:52:06 +01:00
parent a29ce48188
commit 5f7a0941b9
18 changed files with 32 additions and 20 deletions

View File

@ -21,7 +21,8 @@ echo removing IrfanView startmenu folder ...
rd /S /Q %STARTMENU%\"IrfanView" 2>nul
echo moving IrfanView desktop links to Startmenu ...
move /Y "%PUBLIC%\Desktop\IrfanView*.lnk" %STARTMENU%
mkdir %STARTMENU%\IrfanView 2>nul
move /Y "%PUBLIC%\Desktop\IrfanView*.lnk" %STARTMENU%\IrfanView
rem refresh desktop (W10 style)
ie4uinit.exe -show

View File

@ -20,7 +20,8 @@ echo installing NTLite ...
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
echo moving NTLite startmenu shortcut ...
move /Y %STARTMENU%\"NTLite\NTLite.lnk" %STARTMENU% 2>nul
mkdir %STARTMENU%\Tools 2>nul
move /Y %STARTMENU%\"NTLite\NTLite.lnk" %STARTMENU%\Tools 2>nul
echo cleanup ...
rd /S /Q %STARTMENU%\"NTLite" 2>nul

View File

@ -4,7 +4,7 @@ if %ERRORLEVEL% neq 0 exit /b
set EXE=..\software\totalcommander-setup.exe
set KEY=..\company\wincmd.key
set TARGET=%PROGRAMFILES%\totalcommander
set TARGET=c:\totalcmd
set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs"
set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
@ -18,14 +18,13 @@ echo ####### %0 #######
echo installing TotalCommander ...
start /wait %EXE% /AHMGDU
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"
icacls %PUBLIC%\Desktop\TCM.lnk /grant Users:F
move /Y "%USERPROFILE%\Desktop\Total Commander*" %PUBLIC%\Desktop\"Total Commander.lnk"
icacls %PUBLIC%\Desktop\"Total Commander.lnk" /grant Users:F
echo moving Total Commander startmenu shortcut ...
move /Y %STARTMENU_USER%\"Total Commander\Total Commander 64 bit.lnk" %STARTMENU%
icacls %STARTMENU%\"Total Commander\Total Commander 64 bit.lnk" /grant Users:F
move /Y %STARTMENU_USER%\"Total Commander\Total Commander 64 bit.lnk" %STARTMENU%\Tools\"Total Commander.lnk"
icacls %STARTMENU%\Tools\"Total Commander.lnk" /grant Users:F
echo removing Total Commander startmenu folder ...
rd /S /Q %STARTMENU_USER%\"Total Commander" 2>nul

View File

@ -9,7 +9,8 @@ echo copying desktop shortcuts ...
xcopy /CDI /HERBY desktop %DESKTOP%
echo copying startmenu shortcuts ...
xcopy /CDI /HERBY startmenu %STARTMENU%
mkdir %STARTMENU%\Tools 2>nul
xcopy /CDI /HERBY startmenu %STARTMENU%\Tools
echo ####### %0 #######

View File

@ -14,7 +14,8 @@ echo installing WIN32DISKIMAGER ...
%EXE% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
echo changing startmenu folder ...
move /Y %STARTMENU%\"Image Writer\Win32DiskImager.lnk" %STARTMENU%
mkdir %STARTMENU%\Tools 2>nul
move /Y %STARTMENU%\"Image Writer\Win32DiskImager.lnk" %STARTMENU%\Tools
echo removing win32diskimager startmenu folder ...
rd /S /Q %STARTMENU%\"Image Writer" 2>nul

Binary file not shown.

BIN
scripts/startmenu/PuTTY.lnk Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -152,13 +152,18 @@ if %ERRORLEVEL% == 0 (
rem why the heck is the Startmenu entry for "System Tools" installed per user ? stupid Microsoft.
echo Moving system tools links ...
move /Y %STARTMENU%\"System Tools\*.*" ^
%STARTMENU_PUBLIC%\"System Tools" 1>nul 2>nul
%STARTMENU_PUBLIC%\"System Tools" 2>nul
rem Removing and renaming objects in the "System Tools" folder...
move /Y %STARTMENU_PUBLIC%\"System Tools\computer.lnk" ^
%STARTMENU_PUBLIC%\"System Tools\This PC.lnk" 1>nul 2>nul
del /F %STARTMENU_PUBLIC%\"System Tools\Command Prompt.lnk" 2>nul
rem moving Powershell ISE icons ...
move /Y %STARTMENU_PUBLIC%\"Windows Powershell\Windows PowerShell ISE.lnk" ^
%STARTMENU_PUBLIC%\"System Tools" 2>nul
rd /S /Q %STARTMENU_PUBLIC%\"Windows Powershell"
)
rem WORKSPACE folder
@ -301,15 +306,6 @@ rem Onedrive ...
echo Removing OneDrive link in start menu ...
del /F %APPDATA%\"Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
rem finally remove some useless directories in the users start menu ...
echo Removing more startmenu crap ...
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
rem create a statusfile (this codeblock must be executed only once per user) ...
echo 1 >%USERCONFIG_DONE%
@ -355,6 +351,11 @@ if %ERRORLEVEL% == 0 (
echo Removing public accessibility tools folder ...
rd /S /Q %STARTMENU_PUBLIC%\Accessibility 2>nul
echo Moving "settings" link to system tools folder ...
attrib -S %STARTMENU_PUBLIC%\"Immersive Control Panel.lnk"
move /Y %STARTMENU_PUBLIC%\"Immersive Control Panel.lnk" ^
%STARTMENU_PUBLIC%\"System Tools" 2>nul
) else (
echo Removing accessibility tools folder ...
@ -408,6 +409,14 @@ for %%D in (
)
echo Removing more startmenu crap ...
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.
echo Other tasks and fixes for the user
echo ########################################