Deployment not working via system and administrator account

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
TomTom
Messages: 79
Registration: May 25, 2018 - 3:43 p.m.

December 6, 2021 - 11:32

Hello everyone,

I am having trouble deploying the Bartender label editing software in its 2019 version. I am unable to deploy it either with the system account or with the run_as_administrator command.
Here is my setup.py:

Code: Select all

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

"""
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
    if installed_softwares('BarTender 2019 R10'):
        print('Bartender 2019 already installed skipping...')
    else:
        print("Installing: %s" % control.package)
        run_as_administrator(r'"BT2019_R10_167038_Full.exe" FEATURE=BarTender PKC="XXXX-XXXX-XXXX-XXXX" BLS=<server>:<port> INSTALLSQL=false')
    #install_exe_if_needed('BT2019_R10_167038_Full.exe',
    #    silentflags='FEATURE=BarTender PKC="XXXX-XXXX-XXXX-XXXX" BLS=<server>:<port> INSTALLSQL=false',
    #    key='{CC605B77-CED6-400B-B41E-B592EB50D7C1}',
    #    min_version=control.get_software_version(),
    #    timeout=1200,
    #)

def uninstall():
    run_notfatal(r'MsiExec.exe /X{CC605B77-CED6-400B-B41E-B592EB50D7C1} /qn')

If an expert could point me in the right direction... I have dozens of posts to update and I can't see myself doing it manually.

Thanks in advance
Thomas
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

December 6, 2021 - 2:22 PM

Do you have the same problem when deploying it with a Psexec -i -s cmd?

We have a similar, temperamental package (EBP, to name it) and it's the SQL that's causing the problem in the system account.
TomTom
Messages: 79
Registration: May 25, 2018 - 3:43 p.m.

December 6, 2021 - 4:04 PM

Unfortunately, I can't test with psexec commands. It's blacklisted by our parent company...
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

December 7, 2021 - 9:19 AM

Even in a clean, offline virtual machine?
TomTom
Messages: 79
Registration: May 25, 2018 - 3:43 p.m.

December 21, 2021 - 9:15 AM

I haven't been able to test it yet (I admit I don't have much time to dedicate to it at the moment).
For now, I'm deploying it the "old-fashioned" way
. I'll see when I manage to free up some time.

Thanks anyway
WAPT version: 2.6.0.17392 (Enterprise Edition)
Server OS: Debian 12 "Bookworm"
Administration/package creation machine OS: Windows 11 24h2
Locked