w10install/scripts/unpack-zipfiles.cmd
2022-12-30 14:53:45 +01:00

171 lines
3.3 KiB
Batchfile

@echo off
set TOOLS=c:\tools
set SOFTWARE=..\software
set T=c:\TEMP
echo ####### %0 #######
rem ###################################
rem MAIN loop ( unzip archives ) ...
rem ###################################
for %%A in (
cmail
curl
devmanview
imapcopy
nsudo
offlineregistryfinder
rclone
regscanner
restic
setacl
serviwin
showkeyplus
vim
vivetool
winscp
wub
) do (
if NOT EXIST %SOFTWARE%\%%A.zip (
echo WARNING: %SOFTWARE%\%%A.zip not found!
) else (
echo unpacking %%A.zip ...
%TOOLS%\7z e -y -aoa -o%T%\%%A %SOFTWARE%\%%A.zip 1>nul
)
)
echo.
echo ###################################
echo move files to tools folder
echo ###################################
echo.
echo CMail - a Windows mailer
move /Y %T%\cmail\cmail.exe %TOOLS%
rd /S /Q %T%\cmail
echo.
echo CURL
move /Y %T%\curl\curl.exe %TOOLS%
move /Y %T%\curl\libcurl*.dll %TOOLS%
move /Y %T%\curl\curl-ca-bundle.crt %TOOLS%
rd /S /Q %T%\curl
echo.
echo DevManView
move /Y %T%\devmanview\*.exe %TOOLS%
rd /S /Q %T%\devmanview
echo.
echo ImapCopy
mkdir %TOOLS%\imapcopy 2>nul
move /Y %T%\imapcopy\* %TOOLS%\imapcopy
rd /S /Q %T%\imapcopy
echo.
echo OfflineRegistryFinder
move /Y %T%\offlineregistryfinder\*.exe %TOOLS%
rd /S /Q %T%\offlineregistryfinder
copy /Y config\OfflineRegistryFinder.cfg %TOOLS%
echo.
echo NSudo
move /Y %T%\nsudo\NSudoLC.exe %TOOLS%\nsudo.exe
rd /S /Q %T%\nsudo
echo.
echo RClone
move /Y %T%\rclone\rclone.exe %TOOLS%
rd /S /Q %T%\rclone
echo.
echo RegScanner
move /Y %T%\regscanner\*.exe %TOOLS%
rd /S /Q %T%\regscanner
echo.
echo Restic
move /Y %T%\restic\*.exe %TOOLS%\restic.exe
rd /S /Q %T%\restic
echo.
echo ServiWIN
move /Y %T%\serviwin\*.exe %TOOLS%
rd /S /Q %T%\serviwin
echo.
echo SetACL
move /Y %T%\setacl\*.exe %TOOLS%
rd /S /Q %T%\setacl
echo.
echo ShowKeyPlus
move /Y %T%\showkeyplus\*.exe %TOOLS%
rd /S /Q %T%\showkeyplus
echo.
echo VIM
move /Y %T%\vim\vim.exe %TOOLS%
rd /S /Q %T%\vim
echo.
echo ViveTool
move /Y %T%\vivetool\vivetool.exe %TOOLS%
move /Y %T%\vivetool\*.dll %TOOLS%
rd /S /Q %T%\vivetool
echo.
echo WinSCP
move /Y %T%\winscp\*.exe %TOOLS%
rd /S /Q %T%\winscp
echo.
echo WUB - Windows update blocker
move /Y %T%\wub\wub_x64.exe %TOOLS%\wub.exe
rd /S /Q %T%\wub
echo.
echo +++++++++++++++++++++++
echo ++++ Android tools ++++
echo +++++++++++++++++++++++
if NOT EXIST %SOFTWARE%\android.zip (
echo WARNING: %SOFTWARE%\android.zip not found!
) else (
echo unpacking android.zip ...
%TOOLS%\7z x -y -aoa -o%TOOLS% %SOFTWARE%\android.zip 1>nul
rd /S /Q %TOOLS%\android 2>nul
move /Y %TOOLS%\platform-tools %TOOLS%\android
)
echo.
echo ++++++++++++++++++++++
echo ++++ Sysinternals ++++
echo ++++++++++++++++++++++
if NOT EXIST %SOFTWARE%\sysinternals.zip (
echo WARNING: %SOFTWARE%\sysinternals.zip not found!
) else (
echo unpacking sysinternals.zip ...
mkdir %TOOLS%\sysinternals 2>nul
%TOOLS%\7z e -y -aoa -o%TOOLS%\sysinternals %SOFTWARE%\sysinternals.zip 1>nul
echo put autoruns in place ...
move /Y %TOOLS%\sysinternals\autoruns.exe %TOOLS%
echo put bginfo in place ...
mkdir %TOOLS%\bginfo 2>nul
copy /Y config\config.bgi %TOOLS%\bginfo
move /Y %TOOLS%\sysinternals\Bginfo64.exe %TOOLS%\bginfo
)
echo.
echo ####### %0 #######