Added ODT downloads
This commit is contained in:
parent
5c5fba103e
commit
ea4036e14d
11 changed files with 76 additions and 2 deletions
|
|
@ -177,5 +177,5 @@ popd
|
|||
if ($errors -gt 0) {
|
||||
wk_pause "Press Enter to exit..."
|
||||
} else {
|
||||
start "$bin\ConEmu\ConEmu.exe" -argumentlist @("-run", "$bin\Python\x32\python.exe", "$bin\Scripts\update_kit.py", "-new_console:c")
|
||||
start "$bin\ConEmu\ConEmu.exe" -argumentlist @("-run", "$bin\Python\x32\python.exe", "$bin\Scripts\update_kit.py", "-new_console:c") -verb Runas
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
# Wizard Kit: Functions - Build / Update
|
||||
## NOTE: This file is full of magic strings!
|
||||
|
||||
import requests
|
||||
|
||||
|
|
@ -441,6 +440,35 @@ def update_adobe_reader_dc():
|
|||
# Download
|
||||
download_generic(
|
||||
dest, 'Adobe Reader DC.exe', SOURCE_URLS['Adobe Reader DC'])
|
||||
|
||||
def update_office():
|
||||
# Remove existing folders
|
||||
remove_from_kit('_Office')
|
||||
|
||||
# Prep
|
||||
dest = r'{}\_Office'.format(global_vars['CBinDir'])
|
||||
include_path = r'{}\_include\_Office'.format(global_vars['CBinDir'])
|
||||
if os.path.exists(include_path):
|
||||
shutil.copytree(include_path, dest)
|
||||
|
||||
# Download and extract
|
||||
for year in ['2013', '2016']:
|
||||
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))
|
||||
|
||||
# Cleanup
|
||||
remove_from_temp('odt2013.exe')
|
||||
remove_from_temp('odt2016.exe')
|
||||
|
||||
## Misc ##
|
||||
def update_everything():
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@ SOURCE_URLS = {
|
|||
'HitmanPro64': 'https://dl.surfright.nl/HitmanPro_x64.exe',
|
||||
'HWiNFO32': 'http://app.oldfoss.com:81/download/HWiNFO/hw32_560.zip',
|
||||
'HWiNFO64': 'http://app.oldfoss.com:81/download/HWiNFO/hw64_560.zip',
|
||||
'Office Deployment Tool 2013': 'https://download.microsoft.com/download/6/2/3/6230F7A2-D8A9-478B-AC5C-57091B632FCF/officedeploymenttool_x86_4827-1000.exe',
|
||||
'Office Deployment Tool 2016': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_8529.3600.exe',
|
||||
'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip',
|
||||
'ProduKey64': 'http://www.nirsoft.net/utils/produkey-x64.zip',
|
||||
'Intel SSD Toolbox': r'https://downloadmirror.intel.com/27330/eng/Intel%20SSD%20Toolbox%20-%20v3.4.9.exe',
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ if __name__ == '__main__':
|
|||
# Installers
|
||||
print_info('\nInstallers')
|
||||
try_and_print(message='Adobe Reader DC...', function=update_adobe_reader_dc, other_results=other_results)
|
||||
try_and_print(message='MS Office...', function=update_office, other_results=other_results)
|
||||
print_info('\nNinite')
|
||||
for section in sorted(NINITE_SOURCES.keys()):
|
||||
print_success(' {}'.format(section))
|
||||
|
|
|
|||
7
.cbin/_include/_Office/365_32.xml
Normal file
7
.cbin/_include/_Office/365_32.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<Configuration>
|
||||
<Add OfficeClientEdition="32" Channel="Current">
|
||||
<Product ID="O365ProPlusRetail">
|
||||
<Language ID="en-us" />
|
||||
</Product>
|
||||
</Add>
|
||||
</Configuration>
|
||||
7
.cbin/_include/_Office/365_64.xml
Normal file
7
.cbin/_include/_Office/365_64.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<Configuration>
|
||||
<Add OfficeClientEdition="64" Channel="Current">
|
||||
<Product ID="O365ProPlusRetail">
|
||||
<Language ID="en-us" />
|
||||
</Product>
|
||||
</Add>
|
||||
</Configuration>
|
||||
7
.cbin/_include/_Office/hb_32.xml
Normal file
7
.cbin/_include/_Office/hb_32.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<Configuration>
|
||||
<Add OfficeClientEdition="32" Channel="Current">
|
||||
<Product ID="HomeBusinessRetail">
|
||||
<Language ID="en-us" />
|
||||
</Product>
|
||||
</Add>
|
||||
</Configuration>
|
||||
7
.cbin/_include/_Office/hb_64.xml
Normal file
7
.cbin/_include/_Office/hb_64.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<Configuration>
|
||||
<Add OfficeClientEdition="64" Channel="Current">
|
||||
<Product ID="HomeBusinessRetail">
|
||||
<Language ID="en-us" />
|
||||
</Product>
|
||||
</Add>
|
||||
</Configuration>
|
||||
7
.cbin/_include/_Office/hs_32.xml
Normal file
7
.cbin/_include/_Office/hs_32.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<Configuration>
|
||||
<Add OfficeClientEdition="32" Channel="Current">
|
||||
<Product ID="HomeStudentRetail">
|
||||
<Language ID="en-us" />
|
||||
</Product>
|
||||
</Add>
|
||||
</Configuration>
|
||||
7
.cbin/_include/_Office/hs_64.xml
Normal file
7
.cbin/_include/_Office/hs_64.xml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<Configuration>
|
||||
<Add OfficeClientEdition="64" Channel="Current">
|
||||
<Product ID="HomeStudentRetail">
|
||||
<Language ID="en-us" />
|
||||
</Product>
|
||||
</Add>
|
||||
</Configuration>
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -29,3 +29,4 @@
|
|||
.cbin/XMPlay/
|
||||
.cbin/XYplorerFree/
|
||||
.cbin/_Drivers/
|
||||
.cbin/_Office/
|
||||
|
|
|
|||
Loading…
Reference in a new issue