w10install/scripts/unpack-zipfiles.cmd

148 lines
2.8 KiB
Batchfile
Raw Normal View History

2021-02-27 23:43:40 +01:00
@echo off
set TOOLS=c:\tools
set SOFTWARE=..\software
set T=c:\TEMP
set WINSCPINI=..\personal\winscp.ini
2021-02-27 23:43:40 +01:00
echo ####### %0 #######
rem ###################################
rem MAIN loop ( unzip archives ) ...
rem ###################################
for %%A in (
bginfo
2021-08-29 17:55:18 +02:00
autoruns
2021-02-27 23:43:40 +01:00
curl
imapcopy
installwimtweak
offlineregistryfinder
rclone
2021-03-06 00:09:40 +01:00
regscanner
2021-02-27 23:43:40 +01:00
restic
showkeyplus
2021-02-27 23:43:40 +01:00
vim
vivetool
2021-02-27 23:43:40 +01:00
winscp
wub
2021-10-03 17:51:43 +02:00
cmail
2021-02-27 23:43:40 +01:00
) do (
2021-02-28 14:10:59 +01:00
if NOT EXIST %SOFTWARE%\%%A.zip (
2021-02-27 23:43:40 +01:00
echo WARNING: %SOFTWARE%\%%A.zip not found!
2021-02-28 14:10:59 +01:00
) else (
echo unpacking %%A.zip ...
2021-03-30 21:21:53 +02:00
%TOOLS%\7z e -y -aoa -o%T%\%%A %SOFTWARE%\%%A.zip 1>nul
2021-02-27 23:43:40 +01:00
)
)
echo.
echo ###################################
echo move files to tools folder
echo ###################################
2021-02-27 20:07:28 +01:00
echo.
2021-02-27 23:43:40 +01:00
echo BGinfo ...
mkdir %TOOLS%\bginfo 2>nul
2021-02-28 21:25:39 +01:00
move /Y %T%\bginfo\Bginfo64.exe %TOOLS%\bginfo
2021-02-28 15:24:20 +01:00
copy /Y config\config.bgi %TOOLS%\bginfo
2021-02-27 23:43:40 +01:00
rd /S /Q %T%\bginfo 2>nul
2021-02-27 20:07:28 +01:00
echo.
2021-08-29 20:01:00 +02:00
echo Autoruns ...
2021-08-29 17:55:18 +02:00
move /Y %T%\autoruns\autoruns.exe %TOOLS%
rd /S /Q %T%\autoruns 2>nul
echo.
2021-02-27 23:43:40 +01:00
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
2021-02-27 20:07:28 +01:00
echo.
2021-02-27 23:43:40 +01:00
echo ImapCopy
mkdir %TOOLS%\imapcopy 2>nul
move /Y %T%\imapcopy\* %TOOLS%\imapcopy
rd /S /Q %T%\imapcopy
2021-02-27 20:07:28 +01:00
echo.
2021-02-27 23:43:40 +01:00
echo InstallWimTweak
move /Y %T%\installwimtweak\* %TOOLS%
rd /S /Q %T%\installwimtweak
echo.
echo OfflineRegistryFinder
move /Y %T%\offlineregistryfinder\*.exe %TOOLS%
rd /S /Q %T%\offlineregistryfinder
2021-02-28 15:24:20 +01:00
copy /Y config\OfflineRegistryFinder.cfg %TOOLS%
2021-02-27 23:43:40 +01:00
echo.
echo RClone
move /Y %T%\rclone\rclone.exe %TOOLS%
rd /S /Q %T%\rclone
echo.
2021-03-06 00:09:40 +01:00
echo RegScanner
move /Y %T%\regscanner\*.exe %TOOLS%
rd /S /Q %T%\regscanner
echo.
2021-02-27 23:43:40 +01:00
echo Restic
move /Y %T%\restic\*.exe %TOOLS%\restic.exe
rd /S /Q %T%\restic
echo.
echo ShowKeyPlus
move /Y %T%\showkeyplus\*.exe %TOOLS%
rd /S /Q %T%\showkeyplus
echo.
2021-02-27 23:43:40 +01:00
echo VIM
move /Y %T%\vim\vim.exe %TOOLS%
rd /S /Q %T%\vim
echo.
echo ViveTool
move /Y %T%\vivetool\vivetool.exe %TOOLS%
2021-03-14 20:43:28 +01:00
move /Y %T%\vivetool\*.dll %TOOLS%
rd /S /Q %T%\vivetool
echo.
2021-02-27 23:43:40 +01:00
echo WinSCP
move /Y %T%\winscp\*.exe %TOOLS%
rd /S /Q %T%\winscp
if EXIST %WINSCPINI% (
echo copying WinSCP ini file ...
copy /Y %WINSCPINI% %TOOLS%
)
2021-02-27 23:43:40 +01:00
echo.
echo WUB - Windows update blocker
move /Y %T%\wub\wub_x64.exe %TOOLS%\wub.exe
rd /S /Q %T%\wub
echo.
2021-10-03 17:51:43 +02:00
echo CMail - a Windows mailer
move /Y %T%\cmail\cmail.exe %TOOLS%
rd /S /Q %T%\cmail
echo.
2021-08-29 20:01:00 +02:00
echo Android tools ...
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
2021-10-03 17:51:43 +02:00
rd /S /Q %TOOLS%\android
2021-08-29 20:01:00 +02:00
move /Y %TOOLS%\platform-tools %TOOLS%\android
)
echo.
2021-02-27 23:43:40 +01:00
echo ####### %0 #######
2021-10-03 17:51:43 +02:00