I just created a package for RAS Parallels, I tested the installation and uninstallation via pyscripter, without any problems.
Once the package is created, during deployment via wapt, the installation and auditing complete, but the software is not actually installed. Do you have any idea why?
In case you need it, the software installs in C:\Users\user\AppData\Roaming\ParallelsClient\
Thank you in advance for your help.
My package:
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("Installing: BL_RASClient.exe")
install_exe_if_needed('BL_RASClient.exe',
silentflags='/VERYSILENT /NORESTART',
key='',
min_version='20.2.25892'
)
def session_setup():
if not isdir(makepath('c:/Echanges')):
mkdirs('c:\\Echanges')
def uninstall():
print('Uninstalling BL_RASClient')
killalltasks(ensure_list(control.impacted_process))
uninstall_exe = makepath(user_appdata(), 'ParallelsClient', 'BasicClientInstaller.exe')
print('Using uninstaller:', uninstall_exe)
if isfile(uninstall_exe):
run(u'"{}" /verysilent'.format(uninstall_exe), timeout=300)
else:
print('Desinstallateur introuvable : {}'.format(uninstall_exe))
remove_tree(r'c:\Echanges', ignore_errors=True)
