1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| REM Define URLs and paths
set url=https://apps.kingtam.eu.org/apps/scripts/Office_LTSC_Professional_Plug_2021_x64_Eng_Word_Excel_PPT.zip
set downloadPath=%USERPROFILE%\Downloads\Office_LTSC_Professional_Plug_2021_x64_Eng_Word_Excel_PPT.zip
set extractPath=%USERPROFILE%\Downloads\
set setupPath=%USERPROFILE%\Downloads\Office_x64_Eng_Word_Excel_PPT
REM Check if file exists, if not download
if not exist %downloadPath% (
bitsadmin /transfer "Office-LTSC-2021-Download-Job" %url% %downloadPath%
)
REM Extract zip file
::7z x %downloadPath% -o%extractPath%
:: Unzip the downloaded file
powershell -Command "Expand-Archive -Path '%downloadPath%' -DestinationPath '%extractPath%'"
REM Run installer
%setupPath%\setup.exe /configure %setupPath%\config.xml
|