[SOLVED] Microsoft Office 2016 Audit Issue

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
dj41ph4
Messages: 14
Registration: Oct 26, 2022 - 2:02 p.m.

October 31, 2022 - 2:03 PM

Good morning,

I'm having a problem at the end of the Microsoft Office installation

I have this error message in the package audit log

Here's my setup

Code: Select all

# -*- 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)
        
Here's my mistake

Code: Select all

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.
Can you help me?

Thank you in advance
Last edited by dj41ph4 on 01 Nov 2022 - 10:25, edited 1 time.
User avatar
t.heroult
Messages: 307
Registration: December 8, 2020 - 10:13 AM

October 31, 2022 - 2:25 PM

Hello
, it seems that this means the agent doesn't know where the setup.exe file is located.
Is it in the package?
In a subfolder of the package, or in the root directory?

Regards,
Tom
Server: WAPT Enterprise 2.6.1.17786 on Debian
Consoles: Windows 10 & 11
Infrastructure: Windows

Did you know? When parrotfish undergo smoltification, their osmoregulation mechanism is reversed!
dj41ph4
Messages: 14
Registration: Oct 26, 2022 - 2:02 p.m.

November 1, 2022 - 10:24 AM

The installation was correct, but there was still an auditing problem

I changed the code and haven't had any problems since

Code: Select all

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




User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

November 8, 2022 - 4:41 PM

Thanks dj41ph4 for your feedback,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Locked