parent
6246393894
commit
ad1d7d71f2
12 changed files with 78 additions and 26 deletions
|
|
@ -151,6 +151,7 @@ goto Exit
|
||||||
call "%bin%\Scripts\init_client_dir.cmd" /Office
|
call "%bin%\Scripts\init_client_dir.cmd" /Office
|
||||||
set "_odt=False"
|
set "_odt=False"
|
||||||
if %L_PATH% equ 2016 (set "_odt=True")
|
if %L_PATH% equ 2016 (set "_odt=True")
|
||||||
|
if %L_PATH% equ 2019 (set "_odt=True")
|
||||||
if "%_odt%" == "True" (
|
if "%_odt%" == "True" (
|
||||||
goto LaunchOfficeODT
|
goto LaunchOfficeODT
|
||||||
) else (
|
) else (
|
||||||
|
|
@ -161,7 +162,7 @@ if "%_odt%" == "True" (
|
||||||
rem Prep
|
rem Prep
|
||||||
set "args=-aoa -bso0 -bse0 -bsp0 -p%ARCHIVE_PASSWORD%"
|
set "args=-aoa -bso0 -bse0 -bsp0 -p%ARCHIVE_PASSWORD%"
|
||||||
set "config=%L_ITEM%"
|
set "config=%L_ITEM%"
|
||||||
set "dest=%client_dir%\Office\%L_PATH%"
|
set "dest=%client_dir%\Office\ODT"
|
||||||
set "odt_exe=%L_PATH%\setup.exe"
|
set "odt_exe=%L_PATH%\setup.exe"
|
||||||
set "source=%cbin%\_Office.7z"
|
set "source=%cbin%\_Office.7z"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -656,23 +656,22 @@ def update_office():
|
||||||
if os.path.exists(include_path):
|
if os.path.exists(include_path):
|
||||||
shutil.copytree(include_path, dest)
|
shutil.copytree(include_path, dest)
|
||||||
|
|
||||||
for year in ['2016']:
|
# Download and extract
|
||||||
# Download and extract
|
_odt = 'odt.exe'
|
||||||
name = 'odt{}.exe'.format(year)
|
_out_path = r'{}\odt'
|
||||||
url = 'Office Deployment Tool {}'.format(year)
|
download_to_temp('odt.exe', SOURCE_URLS['Office Deployment Tool'])
|
||||||
download_to_temp(name, SOURCE_URLS[url])
|
cmd = [
|
||||||
cmd = [
|
odt,
|
||||||
r'{}\odt{}.exe'.format(global_vars['TmpDir'], year),
|
r'/extract:{}\odt'.format(global_vars['TmpDir']),
|
||||||
r'/extract:{}\{}'.format(global_vars['TmpDir'], year),
|
'/quiet',
|
||||||
'/quiet',
|
]
|
||||||
]
|
run_program(cmd)
|
||||||
run_program(cmd)
|
shutil.move(
|
||||||
shutil.move(
|
_out_path,
|
||||||
r'{}\{}'.format(global_vars['TmpDir'], year),
|
r'{}\_Office'.format(global_vars['CBinDir']))
|
||||||
r'{}\_Office\{}'.format(global_vars['CBinDir'], year))
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
remove_from_temp('odt{}.exe'.format(year))
|
remove_from_temp(odt.exe)
|
||||||
|
|
||||||
|
|
||||||
def update_classic_start_skin():
|
def update_classic_start_skin():
|
||||||
|
|
|
||||||
|
|
@ -360,36 +360,60 @@ LAUNCHERS = {
|
||||||
'Home and Business 2016 (x32)': {
|
'Home and Business 2016 (x32)': {
|
||||||
'L_TYPE': 'Office',
|
'L_TYPE': 'Office',
|
||||||
'L_PATH': '2016',
|
'L_PATH': '2016',
|
||||||
'L_ITEM': 'hb_32.xml',
|
'L_ITEM': '2016_hb_32.xml',
|
||||||
'L_NCMD': 'True',
|
'L_NCMD': 'True',
|
||||||
},
|
},
|
||||||
'Home and Business 2016 (x64)': {
|
'Home and Business 2016 (x64)': {
|
||||||
'L_TYPE': 'Office',
|
'L_TYPE': 'Office',
|
||||||
'L_PATH': '2016',
|
'L_PATH': '2016',
|
||||||
'L_ITEM': 'hb_64.xml',
|
'L_ITEM': '2016_hb_64.xml',
|
||||||
'L_NCMD': 'True',
|
'L_NCMD': 'True',
|
||||||
},
|
},
|
||||||
'Home and Student 2016 (x32)': {
|
'Home and Student 2016 (x32)': {
|
||||||
'L_TYPE': 'Office',
|
'L_TYPE': 'Office',
|
||||||
'L_PATH': '2016',
|
'L_PATH': '2016',
|
||||||
'L_ITEM': 'hs_32.xml',
|
'L_ITEM': '2016_hs_32.xml',
|
||||||
'L_NCMD': 'True',
|
'L_NCMD': 'True',
|
||||||
},
|
},
|
||||||
'Home and Student 2016 (x64)': {
|
'Home and Student 2016 (x64)': {
|
||||||
'L_TYPE': 'Office',
|
'L_TYPE': 'Office',
|
||||||
'L_PATH': '2016',
|
'L_PATH': '2016',
|
||||||
'L_ITEM': 'hs_64.xml',
|
'L_ITEM': '2016_hs_64.xml',
|
||||||
'L_NCMD': 'True',
|
'L_NCMD': 'True',
|
||||||
},
|
},
|
||||||
'Office 365 2016 (x32)': {
|
'Home and Business 2019 (x32)': {
|
||||||
'L_TYPE': 'Office',
|
'L_TYPE': 'Office',
|
||||||
'L_PATH': '2016',
|
'L_PATH': '2019',
|
||||||
|
'L_ITEM': '2019_hb_32.xml',
|
||||||
|
'L_NCMD': 'True',
|
||||||
|
},
|
||||||
|
'Home and Business 2019 (x64)': {
|
||||||
|
'L_TYPE': 'Office',
|
||||||
|
'L_PATH': '2019',
|
||||||
|
'L_ITEM': '2019_hb_64.xml',
|
||||||
|
'L_NCMD': 'True',
|
||||||
|
},
|
||||||
|
'Home and Student 2019 (x32)': {
|
||||||
|
'L_TYPE': 'Office',
|
||||||
|
'L_PATH': '2019',
|
||||||
|
'L_ITEM': '2019_hs_32.xml',
|
||||||
|
'L_NCMD': 'True',
|
||||||
|
},
|
||||||
|
'Home and Student 2019 (x64)': {
|
||||||
|
'L_TYPE': 'Office',
|
||||||
|
'L_PATH': '2019',
|
||||||
|
'L_ITEM': '2019_hs_64.xml',
|
||||||
|
'L_NCMD': 'True',
|
||||||
|
},
|
||||||
|
'Office 365 2019 (x32)': {
|
||||||
|
'L_TYPE': 'Office',
|
||||||
|
'L_PATH': '2019',
|
||||||
'L_ITEM': '365_32.xml',
|
'L_ITEM': '365_32.xml',
|
||||||
'L_NCMD': 'True',
|
'L_NCMD': 'True',
|
||||||
},
|
},
|
||||||
'Office 365 2016 (x64)': {
|
'Office 365 2019 (x64)': {
|
||||||
'L_TYPE': 'Office',
|
'L_TYPE': 'Office',
|
||||||
'L_PATH': '2016',
|
'L_PATH': '2019',
|
||||||
'L_ITEM': '365_64.xml',
|
'L_ITEM': '365_64.xml',
|
||||||
'L_NCMD': 'True',
|
'L_NCMD': 'True',
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ SOURCE_URLS = {
|
||||||
'NirCmd32': 'https://www.nirsoft.net/utils/nircmd.zip',
|
'NirCmd32': 'https://www.nirsoft.net/utils/nircmd.zip',
|
||||||
'NirCmd64': 'https://www.nirsoft.net/utils/nircmd-x64.zip',
|
'NirCmd64': 'https://www.nirsoft.net/utils/nircmd-x64.zip',
|
||||||
'NotepadPlusPlus': 'https://notepad-plus-plus.org/repository/7.x/7.6.2/npp.7.6.2.bin.minimalist.7z',
|
'NotepadPlusPlus': 'https://notepad-plus-plus.org/repository/7.x/7.6.2/npp.7.6.2.bin.minimalist.7z',
|
||||||
'Office Deployment Tool 2016': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_10810.33603.exe',
|
'Office Deployment Tool': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_11107-33602.exe',
|
||||||
'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip',
|
'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip',
|
||||||
'ProduKey64': 'http://www.nirsoft.net/utils/produkey-x64.zip',
|
'ProduKey64': 'http://www.nirsoft.net/utils/produkey-x64.zip',
|
||||||
'PuTTY': 'https://the.earth.li/~sgtatham/putty/latest/w32/putty.zip',
|
'PuTTY': 'https://the.earth.li/~sgtatham/putty/latest/w32/putty.zip',
|
||||||
|
|
|
||||||
7
.cbin/_include/_Office/2019_hb_32.xml
Normal file
7
.cbin/_include/_Office/2019_hb_32.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<Configuration>
|
||||||
|
<Add OfficeClientEdition="32" Channel="Current">
|
||||||
|
<Product ID="HomeBusiness2019Retail">
|
||||||
|
<Language ID="en-us" />
|
||||||
|
</Product>
|
||||||
|
</Add>
|
||||||
|
</Configuration>
|
||||||
7
.cbin/_include/_Office/2019_hb_64.xml
Normal file
7
.cbin/_include/_Office/2019_hb_64.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<Configuration>
|
||||||
|
<Add OfficeClientEdition="64" Channel="Current">
|
||||||
|
<Product ID="HomeBusiness2019Retail">
|
||||||
|
<Language ID="en-us" />
|
||||||
|
</Product>
|
||||||
|
</Add>
|
||||||
|
</Configuration>
|
||||||
7
.cbin/_include/_Office/2019_hs_32.xml
Normal file
7
.cbin/_include/_Office/2019_hs_32.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<Configuration>
|
||||||
|
<Add OfficeClientEdition="32" Channel="Current">
|
||||||
|
<Product ID="HomeStudent2019Retail">
|
||||||
|
<Language ID="en-us" />
|
||||||
|
</Product>
|
||||||
|
</Add>
|
||||||
|
</Configuration>
|
||||||
7
.cbin/_include/_Office/2019_hs_64.xml
Normal file
7
.cbin/_include/_Office/2019_hs_64.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
<Configuration>
|
||||||
|
<Add OfficeClientEdition="64" Channel="Current">
|
||||||
|
<Product ID="HomeStudent2019Retail">
|
||||||
|
<Language ID="en-us" />
|
||||||
|
</Product>
|
||||||
|
</Add>
|
||||||
|
</Configuration>
|
||||||
Loading…
Reference in a new issue