several tweaks
This commit is contained in:
parent
a29ce48188
commit
5f7a0941b9
@ -21,7 +21,8 @@ echo removing IrfanView startmenu folder ...
|
|||||||
rd /S /Q %STARTMENU%\"IrfanView" 2>nul
|
rd /S /Q %STARTMENU%\"IrfanView" 2>nul
|
||||||
|
|
||||||
echo moving IrfanView desktop links to Startmenu ...
|
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)
|
rem refresh desktop (W10 style)
|
||||||
ie4uinit.exe -show
|
ie4uinit.exe -show
|
||||||
|
@ -20,7 +20,8 @@ echo installing NTLite ...
|
|||||||
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
||||||
|
|
||||||
echo moving NTLite startmenu shortcut ...
|
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 ...
|
echo cleanup ...
|
||||||
rd /S /Q %STARTMENU%\"NTLite" 2>nul
|
rd /S /Q %STARTMENU%\"NTLite" 2>nul
|
||||||
|
@ -4,7 +4,7 @@ if %ERRORLEVEL% neq 0 exit /b
|
|||||||
|
|
||||||
set EXE=..\software\totalcommander-setup.exe
|
set EXE=..\software\totalcommander-setup.exe
|
||||||
set KEY=..\company\wincmd.key
|
set KEY=..\company\wincmd.key
|
||||||
set TARGET=%PROGRAMFILES%\totalcommander
|
set TARGET=c:\totalcmd
|
||||||
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"
|
set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs"
|
||||||
|
|
||||||
@ -18,14 +18,13 @@ echo ####### %0 #######
|
|||||||
echo installing TotalCommander ...
|
echo installing TotalCommander ...
|
||||||
start /wait %EXE% /AHMGDU
|
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 ...
|
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\"Total Commander.lnk"
|
||||||
icacls %PUBLIC%\Desktop\TCM.lnk /grant Users:F
|
icacls %PUBLIC%\Desktop\"Total Commander.lnk" /grant Users:F
|
||||||
|
|
||||||
echo moving Total Commander startmenu shortcut ...
|
echo moving Total Commander startmenu shortcut ...
|
||||||
move /Y %STARTMENU_USER%\"Total Commander\Total Commander 64 bit.lnk" %STARTMENU%
|
move /Y %STARTMENU_USER%\"Total Commander\Total Commander 64 bit.lnk" %STARTMENU%\Tools\"Total Commander.lnk"
|
||||||
icacls %STARTMENU%\"Total Commander\Total Commander 64 bit.lnk" /grant Users:F
|
icacls %STARTMENU%\Tools\"Total Commander.lnk" /grant Users:F
|
||||||
|
|
||||||
echo removing Total Commander startmenu folder ...
|
echo removing Total Commander startmenu folder ...
|
||||||
rd /S /Q %STARTMENU_USER%\"Total Commander" 2>nul
|
rd /S /Q %STARTMENU_USER%\"Total Commander" 2>nul
|
||||||
|
@ -9,7 +9,8 @@ echo copying desktop shortcuts ...
|
|||||||
xcopy /CDI /HERBY desktop %DESKTOP%
|
xcopy /CDI /HERBY desktop %DESKTOP%
|
||||||
|
|
||||||
echo copying startmenu shortcuts ...
|
echo copying startmenu shortcuts ...
|
||||||
xcopy /CDI /HERBY startmenu %STARTMENU%
|
mkdir %STARTMENU%\Tools 2>nul
|
||||||
|
xcopy /CDI /HERBY startmenu %STARTMENU%\Tools
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
@ -14,7 +14,8 @@ echo installing WIN32DISKIMAGER ...
|
|||||||
%EXE% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
%EXE% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS
|
||||||
|
|
||||||
echo changing startmenu folder ...
|
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 ...
|
echo removing win32diskimager startmenu folder ...
|
||||||
rd /S /Q %STARTMENU%\"Image Writer" 2>nul
|
rd /S /Q %STARTMENU%\"Image Writer" 2>nul
|
||||||
|
BIN
scripts/startmenu/Offline Registry Finder.lnk
Normal file
BIN
scripts/startmenu/Offline Registry Finder.lnk
Normal file
Binary file not shown.
BIN
scripts/startmenu/PuTTY.lnk
Normal file
BIN
scripts/startmenu/PuTTY.lnk
Normal file
Binary file not shown.
BIN
scripts/startmenu/RegScanner.lnk
Normal file
BIN
scripts/startmenu/RegScanner.lnk
Normal file
Binary file not shown.
BIN
scripts/startmenu/Registry Finder.lnk
Normal file
BIN
scripts/startmenu/Registry Finder.lnk
Normal file
Binary file not shown.
@ -152,13 +152,18 @@ if %ERRORLEVEL% == 0 (
|
|||||||
rem why the heck is the Startmenu entry for "System Tools" installed per user ? stupid Microsoft.
|
rem why the heck is the Startmenu entry for "System Tools" installed per user ? stupid Microsoft.
|
||||||
echo Moving system tools links ...
|
echo Moving system tools links ...
|
||||||
move /Y %STARTMENU%\"System Tools\*.*" ^
|
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...
|
rem Removing and renaming objects in the "System Tools" folder...
|
||||||
move /Y %STARTMENU_PUBLIC%\"System Tools\computer.lnk" ^
|
move /Y %STARTMENU_PUBLIC%\"System Tools\computer.lnk" ^
|
||||||
%STARTMENU_PUBLIC%\"System Tools\This PC.lnk" 1>nul 2>nul
|
%STARTMENU_PUBLIC%\"System Tools\This PC.lnk" 1>nul 2>nul
|
||||||
del /F %STARTMENU_PUBLIC%\"System Tools\Command Prompt.lnk" 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
|
rem WORKSPACE folder
|
||||||
@ -301,15 +306,6 @@ rem Onedrive ...
|
|||||||
echo Removing OneDrive link in start menu ...
|
echo Removing OneDrive link in start menu ...
|
||||||
del /F %APPDATA%\"Microsoft\Windows\Start Menu\Programs\OneDrive.lnk"
|
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) ...
|
rem create a statusfile (this codeblock must be executed only once per user) ...
|
||||||
echo 1 >%USERCONFIG_DONE%
|
echo 1 >%USERCONFIG_DONE%
|
||||||
|
|
||||||
@ -355,6 +351,11 @@ if %ERRORLEVEL% == 0 (
|
|||||||
echo Removing public accessibility tools folder ...
|
echo Removing public accessibility tools folder ...
|
||||||
rd /S /Q %STARTMENU_PUBLIC%\Accessibility 2>nul
|
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 (
|
) else (
|
||||||
|
|
||||||
echo Removing accessibility tools folder ...
|
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.
|
||||||
echo Other tasks and fixes for the user
|
echo Other tasks and fixes for the user
|
||||||
echo ########################################
|
echo ########################################
|
||||||
|
Loading…
Reference in New Issue
Block a user