Página 1 de 1

[RESUELTO] Problema de auditoría de Microsoft Office 2016

Publicado: 31 de octubre de 2022 - 14:03
por dj41ph4
Buen día,

Tengo un problema al final de la instalación de Microsoft Office

Tengo este mensaje de error en el registro de auditoría del paquete

Aquí está mi configuración

Código: Seleccionar todo

# -*- 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)
        
Aquí está mi error

Código: Seleccionar todo

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.
¿Me puedes ayudar?

gracias de antemano

Re: Problema de auditoría de Microsoft Office 2016

Publicado: 31 de octubre de 2022 - 14:25
por t.heroult
Hola
, parece que esto significa que el agente no sabe dónde se encuentra el archivo setup.exe. ¿
Está dentro del paquete? ¿
En una subcarpeta del paquete o en el directorio raíz?

Saludos,
Tom

Re: Problema de auditoría de Microsoft Office 2016

Publicado: 1 de noviembre de 2022 - 10:24 a. m.
por dj41ph4
La instalación fue correcta, pero todavía había un problema de auditoría

Cambié el código y no he tenido ningún problema desde entonces

Código: Seleccionar todo

# -*- 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')





Re: [RESUELTO] Problema de auditoría de Microsoft Office 2016

Publicado: 8 de noviembre de 2022 - 16:41
por dcardon
Gracias dj41ph4 por tus comentarios,

Denis.