w10install/scripts/unpack-7zip.cmd

32 lines
630 B
Batchfile
Raw Permalink Normal View History

2021-02-28 14:10:59 +01:00
@echo off
set SCRIPTS=..\scripts
set SOFTWARE=..\software
2023-02-20 09:24:42 +01:00
set T=%SystemDrive%\TEMP
set TOOLS=%SystemDrive%\tools
2021-02-28 14:10:59 +01:00
set MSI=7z-setup.msi
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
echo ####### %0 #######
echo unpacking 7-zip ...
cd %SOFTWARE%
2021-03-30 21:21:53 +02:00
@echo on
2021-02-28 14:10:59 +01:00
msiexec /a %MSI% TARGETDIR=%T% /qn
@echo off
2021-03-30 21:21:53 +02:00
cd %SCRIPTS%
2021-02-28 14:10:59 +01:00
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%
2021-05-30 20:52:06 +02:00
move /Y %T%\Files\7-zip\7zCon.sfx %TOOLS%
2023-03-12 11:59:05 +01:00
del /F /Q %T%\%MSI% 1>nul 2>nul
2021-02-28 14:10:59 +01:00
rd /S /Q %T%\Files
echo ####### %0 #######
2023-01-26 11:13:20 +01:00