This commit is contained in:
Michael H.G. Schmidt 2021-01-12 20:23:36 +01:00
parent 5ea21f254a
commit 518e107e17
3 changed files with 46 additions and 8 deletions

View File

@ -2,10 +2,18 @@
rem this script puts everything in place ... rem this script puts everything in place ...
set TOOLS=c:\tools set TOOLS=c:\tools
set SCRIPTS=%TOOLS%\scripts set LOG=c:\CustomSetup.txt
set SCRIPTS=%TOOLS%\scripts
set BATCH=%SCRIPTS%\autoconfig-all.cmd
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo ####### %0 ####### echo ####### %0 #######
date /t
time /t
echo.
echo killing ssh agent ... echo killing ssh agent ...
taskkill /F /IM ssh-agent.exe taskkill /F /IM ssh-agent.exe
@ -13,35 +21,47 @@ taskkill /F /IM ssh.exe
echo restart explorer ... echo restart explorer ...
taskkill /F /IM explorer.exe & start explorer.exe taskkill /F /IM explorer.exe & start explorer.exe
echo.
echo deleting %TOOLS% ... echo deleting %TOOLS% ...
rd /S /Q %TOOLS% rd /S /Q %TOOLS%
echo.
echo copying folder %TOOLS% ... echo copying folder %TOOLS% ...
robocopy tools %TOOLS% /MIR /256 /NJH /NFL /NDL robocopy tools %TOOLS% /MIR /256 /NJH /NFL /NDL
echo.
echo unpacking BGInfo ... echo unpacking BGInfo ...
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\BGInfo.zip %TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\BGInfo.zip
del /F %TOOLS%\BGInfo.zip 1>nul 2>nul del /F %TOOLS%\BGInfo.zip 1>nul 2>nul
echo.
echo unpacking TOTAL commander ... echo unpacking TOTAL commander ...
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\totalcmd_951.zip %TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\totalcmd_951.zip
del /F %TOOLS%\totalcmd_951.zip 1>nul 2>nul del /F %TOOLS%\totalcmd_951.zip 1>nul 2>nul
echo.
echo unpacking notepad++ ... echo unpacking notepad++ ...
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\notepad++.zip %TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\notepad++.zip
del /F %TOOLS%\notepad++.zip 1>nul 2>nul del /F %TOOLS%\notepad++.zip 1>nul 2>nul
echo.
echo unpacking ImapCopy ... echo unpacking ImapCopy ...
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\ImapCopy.zip %TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\ImapCopy.zip
del /F %TOOLS%\ImapCopy.zip 1>nul 2>nul del /F %TOOLS%\ImapCopy.zip 1>nul 2>nul
echo.
echo unpacking MediaCreationTool ... echo unpacking MediaCreationTool ...
%TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\MediaCreationTool20H2.zip %TOOLS%\7z x -aoa -o%TOOLS% %TOOLS%\MediaCreationTool20H2.zip
del /F %TOOLS%\MediaCreationTool20H2.zip 1>nul 2>nul del /F %TOOLS%\MediaCreationTool20H2.zip 1>nul 2>nul
echo ####### %0 #######
echo. echo.
call %SCRIPTS%\CustomSetup2.cmd
echo starting %BATCH% ...
start cmd /C %BATCH%
echo.
date /t
time /t
echo ####### %0 #######
echo READY.

View File

@ -4,9 +4,16 @@ rem this script is doing most of the work ...
set T=c:\TEMP set T=c:\TEMP
set TOOLS=c:\tools set TOOLS=c:\tools
set SCRIPTS=%TOOLS%\scripts set SCRIPTS=%TOOLS%\scripts
set LOG=%SCRIPTS%\autoconfig-all.txt
if not "%1"=="STDOUT_TO_FILE" %0 STDOUT_TO_FILE %* 1>%LOG% 2>&1
shift /1
echo. echo.
echo ####### %0 ####### echo ####### %0 #######
date /t
time /t
echo.
echo creating %T% ... echo creating %T% ...
mkdir %T% 1>nul 2>nul mkdir %T% 1>nul 2>nul
@ -127,6 +134,12 @@ rem echo ENABLE firewall ...
rem netsh advfirewall set allprofiles state on rem netsh advfirewall set allprofiles state on
rem echo. rem echo.
echo rebooting ...
shutdown -g -t 0
echo.
date /t
time /t
echo ####### %0 ####### echo ####### %0 #######
echo READY. echo READY.
pause

View File

@ -7,11 +7,16 @@ set INSTALLER=Application\8*\Installer
echo ####### %0 ####### echo ####### %0 #######
%EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall %EDGEROOT%\%INSTALLER%\setup.exe --uninstall --system-level --verbose-logging --force-uninstall
rd /S /Q %EDGEROOT% 1>nul 2>nul
rd /S /Q %EDGEUPDATE% 1>nul 2>nul
echo cleanup ...
rd /S /Q %EDGEROOT% 1>nul 2>nul
rem rd /S /Q %EDGEUPDATE% 1>nul 2>nul
del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk" 1>nul 2>nul del /F "%PUBLIC%\Desktop\Microsoft Edge.lnk" 1>nul 2>nul
del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 1>nul 2>nul del /F "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Microsoft Edge.lnk" 1>nul 2>nul
echo block edge updates ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^
/v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f
echo ####### %0 ####### echo ####### %0 #######