Deployment not working via system and administrator account
Published: December 6, 2021 - 11:32 AM
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:
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
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')
Thanks in advance
Thomas