w10install/scripts/unpack-officedeploymenttool.cmd
Michael H.G. Schmidt bc7c372d2e MS-Office integrated
2024-09-08 19:53:09 +02:00

30 lines
632 B
Batchfile

@echo off
set SCRIPTS=..\scripts
set SOFTWARE=..\software
set T=%SystemDrive%\TEMP
set TOOLS=%SystemDrive%\tools
set EXE=officedeploymenttool-setup.exe
if NOT EXIST %SOFTWARE%\%EXE% (
echo ERROR: %SOFTWARE%\%EXE% not found!
exit /b
)
echo ####### %0 #######
echo unpacking office deployment tool (Microsoft) ...
cd %SOFTWARE%
@echo on
%EXE% /extract:%T% /quiet /passive
@echo off
cd %SCRIPTS%
echo moving binary to tools folder ...
move /Y %T%\setup.exe %TOOLS%\officedeploymenttool.exe
del /F /Q %T%\setup.exe 1>nul 2>nul
del /F /Q %T%\configuration*.xml 1>nul 2>nul
echo ####### %0 #######