From 5f7a0941b9c4c0995efcbef22867ef74d0d79fbc Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 15 Jan 2023 17:52:06 +0100 Subject: [PATCH] several tweaks --- optional/install-irfanview.cmd | 3 +- optional/install-ntlite.cmd | 3 +- optional/install-totalcommander.cmd | 11 +++---- scripts/install-shortcuts.cmd | 3 +- scripts/install-win32diskimager.cmd | 3 +- .../startmenu/{CMD.lnk => Commandline.lnk} | Bin .../{Snapshot64.lnk => Drive Snapshot.lnk} | Bin ...0H2.lnk => Media Creation Tool (20H2).lnk} | Bin scripts/startmenu/Offline Registry Finder.lnk | Bin 0 -> 1077 bytes .../{PuTTYgen.lnk => PuTTY Key Generator.lnk} | Bin scripts/startmenu/PuTTY.lnk | Bin 0 -> 929 bytes scripts/startmenu/RegScanner.lnk | Bin 0 -> 978 bytes scripts/startmenu/Registry Finder.lnk | Bin 0 -> 1251 bytes ...{RDP.lnk => Remote Desktop Connection.lnk} | Bin scripts/startmenu/{VNC.lnk => Tight VNC.lnk} | Bin ...nloader.lnk => Windows ISO Downloader.lnk} | Bin .../{WUB.lnk => Windows Update Blocker.lnk} | Bin tools/logon.cmd | 29 ++++++++++++------ 18 files changed, 32 insertions(+), 20 deletions(-) rename scripts/startmenu/{CMD.lnk => Commandline.lnk} (100%) rename scripts/startmenu/{Snapshot64.lnk => Drive Snapshot.lnk} (100%) rename scripts/startmenu/{MediaCreationTool20H2.lnk => Media Creation Tool (20H2).lnk} (100%) create mode 100644 scripts/startmenu/Offline Registry Finder.lnk rename scripts/startmenu/{PuTTYgen.lnk => PuTTY Key Generator.lnk} (100%) create mode 100644 scripts/startmenu/PuTTY.lnk create mode 100644 scripts/startmenu/RegScanner.lnk create mode 100644 scripts/startmenu/Registry Finder.lnk rename scripts/startmenu/{RDP.lnk => Remote Desktop Connection.lnk} (100%) rename scripts/startmenu/{VNC.lnk => Tight VNC.lnk} (100%) rename scripts/startmenu/{ISO-Downloader.lnk => Windows ISO Downloader.lnk} (100%) rename scripts/startmenu/{WUB.lnk => Windows Update Blocker.lnk} (100%) diff --git a/optional/install-irfanview.cmd b/optional/install-irfanview.cmd index da5f375..9f573b4 100644 --- a/optional/install-irfanview.cmd +++ b/optional/install-irfanview.cmd @@ -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 diff --git a/optional/install-ntlite.cmd b/optional/install-ntlite.cmd index 7ef5ce6..d1bdd2d 100644 --- a/optional/install-ntlite.cmd +++ b/optional/install-ntlite.cmd @@ -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 diff --git a/optional/install-totalcommander.cmd b/optional/install-totalcommander.cmd index 411ea9a..6a30094 100644 --- a/optional/install-totalcommander.cmd +++ b/optional/install-totalcommander.cmd @@ -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 diff --git a/scripts/install-shortcuts.cmd b/scripts/install-shortcuts.cmd index 3ca41c7..d25c5fa 100644 --- a/scripts/install-shortcuts.cmd +++ b/scripts/install-shortcuts.cmd @@ -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 ####### diff --git a/scripts/install-win32diskimager.cmd b/scripts/install-win32diskimager.cmd index d0fbdcd..c827b22 100644 --- a/scripts/install-win32diskimager.cmd +++ b/scripts/install-win32diskimager.cmd @@ -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 diff --git a/scripts/startmenu/CMD.lnk b/scripts/startmenu/Commandline.lnk similarity index 100% rename from scripts/startmenu/CMD.lnk rename to scripts/startmenu/Commandline.lnk diff --git a/scripts/startmenu/Snapshot64.lnk b/scripts/startmenu/Drive Snapshot.lnk similarity index 100% rename from scripts/startmenu/Snapshot64.lnk rename to scripts/startmenu/Drive Snapshot.lnk diff --git a/scripts/startmenu/MediaCreationTool20H2.lnk b/scripts/startmenu/Media Creation Tool (20H2).lnk similarity index 100% rename from scripts/startmenu/MediaCreationTool20H2.lnk rename to scripts/startmenu/Media Creation Tool (20H2).lnk diff --git a/scripts/startmenu/Offline Registry Finder.lnk b/scripts/startmenu/Offline Registry Finder.lnk new file mode 100644 index 0000000000000000000000000000000000000000..2629263808fc6280f4c2bb633395bfc2ca37a98c GIT binary patch literal 1077 zcmbVLUr1A76#vbHW<_na%+%T}jfHWyMG%f8V|m?Rbce>8vW@byR#;Q*rRDg zVH89nF%!xje2AV3AAG1DY9v_ep&}}<7$)@4LsaK%ZX*eTosZwS-*?WrzjMy_#|=PZ zs2~l@<}}2c(85G>+cW+A%$|&9vv|J#r#Yj+$cOL0suwi9YCc|*k1y)qFu>?}FQrXi z?27L8Yb~0s)?3?QaoGLEpwh$xTW(?TUQl#M#9|Q@hfsw|EIr=mO<%Ei#X*50BpWAM zoot)&A`*zvh(IO30YlgiE^W-S_P7a>D7sz825mySuN?>$c^8SdIn2C62mi%O4oC>m zh(JLUGCB!inyZvAjsb`{dyuSg2&9t)pq}7c`7$rB4-i;R5NZf(2-ojkcI()tM1!$& zDrj$Vt^1`=D56B=PC2ZoiTHp>emO44Ng_8>9s&Npbg6fL8TD%6fSnjiEIs-9Cb$Qd zvvRbb_q8BmT^yx+k{kWa&!mTdpW>Kn7j9B?!~apovQQAH8f7XV|zjV0BT0wjsO4v literal 0 HcmV?d00001 diff --git a/scripts/startmenu/PuTTYgen.lnk b/scripts/startmenu/PuTTY Key Generator.lnk similarity index 100% rename from scripts/startmenu/PuTTYgen.lnk rename to scripts/startmenu/PuTTY Key Generator.lnk diff --git a/scripts/startmenu/PuTTY.lnk b/scripts/startmenu/PuTTY.lnk new file mode 100644 index 0000000000000000000000000000000000000000..5592cb0945575156296357e1816baeab38fa9ccb GIT binary patch literal 929 zcmeZaU|?VrVFHp23Fewg9w9szytpa3a_j(1s2`lV9+)&m@CPk?`#zVSA<{$Fc^Y4`eBWk0t_Yj z`8mZ5HVm8$EDZ1W>4aUFs2}E5rw3HwZwRso-7<0cE`}0@d?3tWCt=B4D97c&6;4fa+H!ZAR#dO#S1 zLL&ST!+>c&2ZJ+%6;KC4RRYAm1rb0R1jx8;ic+z=_k>a z&lE3Dc`G={f5yCIPlmUIYE5F?>U8pIC;Vvs|ZWhHCaPQ4_!^%}zg|C*3AO#?kK`9?SIt=B4D97c&4u0qn_` zpw#r>mOF~VsI3>skPf|NkORv-m3#Neaq_V?~m z0!u$KCG^aDy#|yrxIjukhVTP1{wQH!5QVB^Z~!tGa;mO?5-v!P2gC<4V5t^lISWV- zWHd^MP>=(ZmO&Ax1*eK8PO+#2`m6%SzU;oq9=d>otZ0{x>Bq zI0D7xKng%6gHi!{)ZmXwkWK~$OCSarzELdKWo>VP$8rw`y(P94J+eUY43Gj3AU?AC W>5=oDhCWNABaSGlEWHmBhXDZ2RmM{Q literal 0 HcmV?d00001 diff --git a/scripts/startmenu/Registry Finder.lnk b/scripts/startmenu/Registry Finder.lnk new file mode 100644 index 0000000000000000000000000000000000000000..e2838e12f9788bf43774d807bb1c34c4eb52df2d GIT binary patch literal 1251 zcmb7DT}YEr7=C6F8Br50O)F<87{-302uFfpZWE-5=BLmimrna)ZL+P>8>y(sX1^2( zl1XSr*+m!OmEnbSX;M&HU|nQCmYH{5bkXyEZqqDmy@%(V^Sq&`yqYAOH^< zp^`Jic?(%p_)yPifT`*1w?PWvsTx!ahNz0Mq^1N=B1(sSv4cc9v5dHR|8kk0W3}q5_n!!YHP=e&3V0gTU?|Yi zzy(jhRS|J*nrrklQ^X7-o9nlJzP7F`M& zF8GlB;`(&*HD^axT`8vjwf>2vOai*yB(zkPS5BJ;Ul*gz z-uGiPr6<_1nTN?Ur)3ct#8TJ7fV@9`Z;O0P8ze-)JexZ(W6#j{&L-5hcYWzEV0@({ zh(HPv-)#WaGItGuBIzd1waW{Y;41ND5`CVsg+%d1LRNR9iOtJvRtGnaLgnM}F)kmi zCN#>}Bd33skj>vcQkPeF<9YJqml$%6r;nnul 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 ########################################