Fixed ODT sections

* Fixes issue #86
This commit is contained in:
2Shirt 2019-01-11 12:59:12 -07:00
parent 6246393894
commit ad1d7d71f2
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
12 changed files with 78 additions and 26 deletions

View file

@ -151,6 +151,7 @@ goto Exit
call "%bin%\Scripts\init_client_dir.cmd" /Office
set "_odt=False"
if %L_PATH% equ 2016 (set "_odt=True")
if %L_PATH% equ 2019 (set "_odt=True")
if "%_odt%" == "True" (
goto LaunchOfficeODT
) else (
@ -161,7 +162,7 @@ if "%_odt%" == "True" (
rem Prep
set "args=-aoa -bso0 -bse0 -bsp0 -p%ARCHIVE_PASSWORD%"
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 "source=%cbin%\_Office.7z"

View file

@ -656,23 +656,22 @@ def update_office():
if os.path.exists(include_path):
shutil.copytree(include_path, dest)
for year in ['2016']:
# Download and extract
name = 'odt{}.exe'.format(year)
url = 'Office Deployment Tool {}'.format(year)
download_to_temp(name, SOURCE_URLS[url])
cmd = [
r'{}\odt{}.exe'.format(global_vars['TmpDir'], year),
r'/extract:{}\{}'.format(global_vars['TmpDir'], year),
'/quiet',
]
run_program(cmd)
shutil.move(
r'{}\{}'.format(global_vars['TmpDir'], year),
r'{}\_Office\{}'.format(global_vars['CBinDir'], year))
# Download and extract
_odt = 'odt.exe'
_out_path = r'{}\odt'
download_to_temp('odt.exe', SOURCE_URLS['Office Deployment Tool'])
cmd = [
odt,
r'/extract:{}\odt'.format(global_vars['TmpDir']),
'/quiet',
]
run_program(cmd)
shutil.move(
_out_path,
r'{}\_Office'.format(global_vars['CBinDir']))
# Cleanup
remove_from_temp('odt{}.exe'.format(year))
# Cleanup
remove_from_temp(odt.exe)
def update_classic_start_skin():

View file

@ -360,36 +360,60 @@ LAUNCHERS = {
'Home and Business 2016 (x32)': {
'L_TYPE': 'Office',
'L_PATH': '2016',
'L_ITEM': 'hb_32.xml',
'L_ITEM': '2016_hb_32.xml',
'L_NCMD': 'True',
},
'Home and Business 2016 (x64)': {
'L_TYPE': 'Office',
'L_PATH': '2016',
'L_ITEM': 'hb_64.xml',
'L_ITEM': '2016_hb_64.xml',
'L_NCMD': 'True',
},
'Home and Student 2016 (x32)': {
'L_TYPE': 'Office',
'L_PATH': '2016',
'L_ITEM': 'hs_32.xml',
'L_ITEM': '2016_hs_32.xml',
'L_NCMD': 'True',
},
'Home and Student 2016 (x64)': {
'L_TYPE': 'Office',
'L_PATH': '2016',
'L_ITEM': 'hs_64.xml',
'L_ITEM': '2016_hs_64.xml',
'L_NCMD': 'True',
},
'Office 365 2016 (x32)': {
'Home and Business 2019 (x32)': {
'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_NCMD': 'True',
},
'Office 365 2016 (x64)': {
'Office 365 2019 (x64)': {
'L_TYPE': 'Office',
'L_PATH': '2016',
'L_PATH': '2019',
'L_ITEM': '365_64.xml',
'L_NCMD': 'True',
},

View file

@ -27,7 +27,7 @@ SOURCE_URLS = {
'NirCmd32': 'https://www.nirsoft.net/utils/nircmd.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',
'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',
'ProduKey64': 'http://www.nirsoft.net/utils/produkey-x64.zip',
'PuTTY': 'https://the.earth.li/~sgtatham/putty/latest/w32/putty.zip',

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="32" Channel="Current">
<Product ID="HomeBusiness2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="64" Channel="Current">
<Product ID="HomeBusiness2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="32" Channel="Current">
<Product ID="HomeStudent2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>

View file

@ -0,0 +1,7 @@
<Configuration>
<Add OfficeClientEdition="64" Channel="Current">
<Product ID="HomeStudent2019Retail">
<Language ID="en-us" />
</Product>
</Add>
</Configuration>