Quelqu'un a-t-il déjà tenté de créer un paquet SVGView d'Adobe ?
Je rencontre un problème : l'application s'installe correctement avec l'éditeur "PyScripter", mais lorsque je déploie le paquet, il ne s'installe pas. Auriez-vous une idée de ce qui pourrait causer ce problème ?
Je ne reçois aucun message d'erreur.
Code : Tout sélectionner
# -*- 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
import datetime
Timelog=(f"{datetime.datetime.today().strftime('%Y-%m-%d %H:%M:%S')}")
chemin_dir=makepath(programfiles32,"Common Files","Adobe","SVG Viewer 3.0")
chemin_application=makepath(programfiles32,"Common Files","Adobe","SVG Viewer 3.0")
chemin_Uninstall=makepath(programfiles32,"Common Files","Adobe","SVG Viewer 3.0","Uninstall","Winstall.exe")
def install():
version_install=get_file_properties("SVGView.exe")["ProductVersion"]
print(Timelog, "Version pret a etre installer",version_install)
if isdir(chemin_dir):
print(Timelog,"l'application est deja installée")
for soft in installed_softwares(name="Adobe SVG"):
print(Timelog,"Version deja installée",soft["version"])
print(Timelog, "Version du paquet",Version(control.get_software_version()))
if Version(soft["version"]) == Version(control.get_software_version()):
print(Timelog,"La bonne version est deja installée")
else:
print(Timelog,"Installing: SVGView.exe")
run(r'SVGView.exe /qn')
#run("Setup.bat")
#install_exe_if_needed('SVGView.exe',
# silentflags='/qn',
# key='',
# min_version='3.0'
#)
else:
print(Timelog,"Installing: SVGView.exe")
#run("Setup.bat")
run(r'SVGView.exe /qn')
#install_exe_if_needed('SVGView.exe',
# silentflags='/qn',
# key='',
# min_version='3.0'
#)
Brice
###############################
- Version de WAPT installée 2.6.0
- OS du serveur Linux et version Debian
- OS de la machine d'administration/création des paquets Windows 11