w10install/scripts/unpack-7zip.cmd

29 lines
546 B
Batchfile
Raw Normal View History

2021-02-28 14:10:59 +01:00
@echo off
set SCRIPTS=..\scripts
set SOFTWARE=..\software
set T=c:\TEMP
set MSI=7z-setup.msi
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
echo unpacking 7-zip ...
@echo on
cd %SOFTWARE%
msiexec /a %MSI% TARGETDIR=%T% /qn
cd %SCRIPTS%
@echo off
echo moving 7-zip binaries to tools folder ...
move /Y %T%\Files\7-Zip\7z.exe %TOOLS%
move /Y %T%\Files\7-zip\7z.dll %TOOLS%
del /S /Q /A %T%\%MSI% 1>nul 2>nul
rd /S /Q %T%\Files
echo ####### %0 #######