Parfait, Merci beaucoup, j'ai pu terminer mon paquet. Pour info le voici :
def install():
global uninstallkey
global uninstallstring
exefilename = makepath(programfiles32,'InfraRecorder','infrarecorder.exe')
versionpaquet = control.version.split('-',1)[0]
softname = 'InfraRecorder'
check_installed = installed_softwares(softname)
if check_installed:
version = get_file_properties(exefilename)['ProductVersion']
if version > versionpaquet :
print(u'The software is already installed and its version is newer than the version of the package' )
return (0)
if version == versionpaquet :
print(u'The software is already installed' )
return (0)
print "closing infrarecorder"
print run_notfatal("taskkill /im infrarecorder.exe /f")
print"installing exe"
print run("ir053.exe /S /LANGUAGE=french")
check_installed_out = installed_softwares(softname)
if check_installed_out:
version = get_file_properties(exefilename)['ProductVersion']
if version < versionpaquet :
error('The output verification has found a old version of software')
if version == versionpaquet :
print(u'The software installation was successful')
return (0);
error('End audit did not find the software.')