Installation check
Published: October 27, 2018 - 7:36 PM
- Installed WAPT version (1.6.2.7 Enterprise)
- Server OS (Linux) and version (Debian Strech)
- Operating system of the administration/package creation machine (Windows 10)
Good morning,
We will soon be implementing WAPT in our park, however I am encountering a problem with some of my packages.
Some of my packages have command lines after installation (run or install_exe_if_needed) for copying files, creating registry keys, etc
To avoid rewriting certain data and losing configuration on already installed machines, I copied part of the code from a package to verify that the software is properly installed.
I tried several methods but some packages won't install
1.
2.
I prefer code 1 because it checks the installed version, so if I need to update my software, the update won't happen because it will detect that the software is already installed. However, I'm encountering a problem: when I uninstall the software and then test my script, it does nothing except print the output.
When I print my variable, it is empty; my script should perform the installation.
Do you have a simpler method for deployment on workstations already in place?
I'm reaching out to you because I've been racking my brains for several weeks trying to find a solution, and the production launch date is fast approaching
Thank you.
- Server OS (Linux) and version (Debian Strech)
- Operating system of the administration/package creation machine (Windows 10)
Good morning,
We will soon be implementing WAPT in our park, however I am encountering a problem with some of my packages.
Some of my packages have command lines after installation (run or install_exe_if_needed) for copying files, creating registry keys, etc
To avoid rewriting certain data and losing configuration on already installed machines, I copied part of the code from a package to verify that the software is properly installed.
I tried several methods but some packages won't install
1.
Code: Select all
def install():
global uninstallkey
from common import Wapt
softname = 'DameWare Remote Support'
check_installed_out = installed_softwares(softname)
Software = [ soft for soft in installed_softwares(softname) if Version(soft['version']) < Version('12.0.6002.5') ]
if Software:
print('installing futur-DameWareRS')
run('DameWareRS.exe /args "/qn reboot=reallysuppress SILENT=yes INSTALLSTANDALONE=0 CENTRALSERVERHOSTNAME=*****.****.***.fr CENTRALSERVERPORT=6133"')
else:
print('already installed')Code: Select all
def install():
softname = 'DameWare Remote Support'
check_installed_out = installed_softwares(softname)
if not check_installed_out:
print('installing futur-DameWareRS')
run('DameWareRS.exe /args "/qn reboot=reallysuppress SILENT=yes INSTALLSTANDALONE=0 CENTRALSERVERHOSTNAME=*****.*****.****.fr CENTRALSERVERPORT=6133"')
else:
print('already installed')When I print my variable, it is empty; my script should perform the installation.
Do you have a simpler method for deployment on workstations already in place?
I'm reaching out to you because I've been racking my brains for several weeks trying to find a solution, and the production launch date is fast approaching
Thank you.