Page 1 of 1

Deployment not working via system and administrator account

Published: December 6, 2021 - 11:32 AM
by TomTom
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

Re: Non-functional deployment via system and administrator account

Published: Dec 6, 2021 - 2:22 PM
by florentR2
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.

Re: Non-functional deployment via system and administrator account

Published: Dec 6, 2021 - 4:04 PM
by TomTom
Unfortunately, I can't test with psexec commands. It's blacklisted by our parent company...

Re: Non-functional deployment via system and administrator account

Published: Dec 7, 2021 - 09:19
by florentR2
Even in a clean, offline virtual machine?

Re: Non-functional deployment via system and administrator account

Published: Dec 21, 2021 - 09:15
by TomTom
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