# -*- coding: utf-8 -*-
from setuphelpers import *
# registry key(s) where WAPT will find how to remove the application(s)
uninstallkey = ["eBeamDeviceService_is1"]
# command(s) to launch to remove the application(s)
uninstallstring = []
# list of required parameters names (string) which can be used during install
required_params = []
def install():
# if you want to modify the keys depending on environment (win32/win64... params..)
global uninstallkey
global uninstallstring
softname = 'eBeam Device Service 2.5.0.18'
check_installed = installed_softwares(softname)
# si cette liste globale n est pas vide, on check chaque logiciel
if check_installed:
print(u'The software is already installed and its version is newer than the version of the package' )
return (0);
for tbi in ('eBeamDeviceServiceMain.exe','eBeamDeviceServiceUI.exe','eBeamDevice.exe'):
if isrunning(tbi):
print ("closing %s" % tbi)
killalltasks(tbi)
print('installing tis-ebeamdeviceservice')
run(r'"eBeamDeviceServiceSetup.exe" /VERYSILENT')