Seite 1 von 1

[GELÖST] Problem mit der Microsoft Office 2016-Überprüfung

Veröffentlicht: 31. Oktober 2022 – 14:03 Uhr
von dj41ph4
Guten Morgen,

Ich habe ein Problem am Ende der Microsoft Office-Installation

Ich erhalte diese Fehlermeldung im Paket-Audit-Log

Hier ist mein Setup

Code: Alle auswählen

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

r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

"""
# Declaring global variables - Warnings: 1) WAPT context is only available in package functions; 2) Global variables are not persistent between calls


def install():
    # Declaring local variables
 
    # Installing the software
    print("Installation Office 2016 VDB")
run('"setup.exe" /adminfile VDB.MSP', timeout = 1200)
        
Hier ist mein Fehler

Code: Alle auswählen

Auditing OFFICE2016
Audit aborted due to exception: Command '"setup.exe" /adminfile VDB.MSP' returned non-zero exit status 1.
Output:'"setup.exe"' n'est pas reconnu en tant que commande interne
ou externe, un programme exécutable ou un fichier de commandes.
Können Sie mir helfen?

Vielen Dank im Voraus

Betreff: Microsoft Office 2016-Überwachungsproblem

Veröffentlicht: 31. Oktober 2022 – 14:25 Uhr
von t.heroult
Hallo
, es scheint, als ob der Agent den Speicherort der setup.exe-Datei nicht kennt.
Befindet sie sich im Paket?
In einem Unterordner des Pakets oder im Stammverzeichnis?

Viele Grüße,
Tom

Betreff: Microsoft Office 2016-Überwachungsproblem

Veröffentlicht: 1. November 2022 - 10:24 Uhr
von dj41ph4
Die Installation war korrekt, aber es gab trotzdem ein Problem bei der Überprüfung

Ich habe den Code geändert und seitdem keine Probleme mehr gehabt

Code: Alle auswählen

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

uninstallkey = []
softname = 'Microsoft Office Standard 2016'
pgmsoffice = programfiles



def install():

    if not installed_softwares(softname):
        print('Installation Office 2016')
        cmd = '"setup.exe" /adminfile "silent.msp"'
    else:
        print('Repair and add component to ' + softname)
        cmd = 'msiexec.exe /p silent.msp'

    run(cmd,timeout=1200,accept_returncodes=[1641,3010,0])

    if not installed_softwares(softname):
        error(' %s has been installed but the uninstall key can not be found' % softname)

    #Activation
    pathosppvbs32 = makepath(pgmsoffice,'Microsoft Office','Office16','OSPP.VBS')
    if 'ERROR' in run('cscript "%s" /dstatus'  % pathosppvbs32):
        print("Running activation of " + softname)
        resultact = run('cscript "%s" /act' % pathosppvbs32)

        if 'ERROR' in run('cscript "%s" /dstatus'  % pathosppvbs32):
            error('Activation did not work : ' + resultact)
    else:
        print('Already activated Product')





Betreff: [GELÖST] Microsoft Office 2016-Überwachungsproblem

Veröffentlicht: 8. November 2022 – 16:41 Uhr
von dcardon
Danke dj41ph4 für dein Feedback,

Denis