Seite 1 von 1

[GELÖST] Microsoft Office Pro 2016 Paket

Veröffentlicht: 8. Oktober 2021 – 16:01 Uhr
von olaplanche
Guten Morgen,

Ich teile mein Office Pro 2016-Paket.

Voraussetzungen:

Führen Sie den Befehl „setup.exe /admin“ aus, um eine MSP-Datei zu generieren, die im Ordner „updates“ des Setup-Ordners gespeichert wird, der alle Installationsdateien enthält. Der Setup-Ordner muss in das Paket kopiert werden.

Code: Alle auswählen

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = ['Office16.PROPLUS']

def install():
    print('installing wapt-office2016pro')
    install_exe_if_needed("%s\setup\setup.exe" % basedir,silentflags='',key='Office16.PROPLUS',min_version='16.0.4266.1001',timeout=1200)
    uninstallkey.remove('Office16.PROPLUS')

def uninstall():
    print('uninstalling wapt-office2016pro')
    import tempfile
    pathuninstallfile = makepath(tempfile.gettempdir(),'SilentUninstall.xml')
    data = r"""<Configuration Product="ProPlus"><Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" /></Configuration>"""
    fichier = open(pathuninstallfile, "w")
    fichier.write(data)
    fichier.close()
    run(r'"%s\Common Files\Microsoft Shared\OFFICE16\Office Setup Controller\setup.exe" /uninstall ProPlus /config %s' % (programfiles32,pathuninstallfile))
    remove_file(pathuninstallfile)

Betreff: [GELÖST] Microsoft Office Pro 2016 Paket

Veröffentlicht: 14. Oktober 2021 – 15:01 Uhr
von dcardon
Danke fürs Teilen, olaplanche!
Denis

Betreff: [GELÖST] Microsoft Office Pro 2016 Paket

Veröffentlicht: 28. Oktober 2021 - 11:50 Uhr
von olaplanche
Freut mich.

Der Code wurde so angepasst, dass er mit Python 3 kompatibel ist:

Die Zeile:

Code: Alle auswählen

data = ur"""<Configuration Product="ProPlus"><Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" /></Configuration>"""
wird zu:

Code: Alle auswählen

data = r"""<Configuration Product="ProPlus"><Display Level="none" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" /></Configuration>"""