SVGView Package
Published: April 7, 2025 - 10:27 AM
Good morning,
Has anyone ever tried to create an Adobe SVGView package?
I'm having a problem: the application installs correctly with the "PyScripter" editor, but when I deploy the package, it doesn't install. Do you have any idea what might be causing this problem?
I am not receiving any error messages.
Sincerely,
Brice
###############################
- Installed WAPT version 2.6.0
- Linux server OS and Debian version
- Operating system of the administration machine/Windows 11 package creation
Has anyone ever tried to create an Adobe SVGView package?
I'm having a problem: the application installs correctly with the "PyScripter" editor, but when I deploy the package, it doesn't install. Do you have any idea what might be causing this problem?
I am not receiving any error messages.
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
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
###############################
- Installed WAPT version 2.6.0
- Linux server OS and Debian version
- Operating system of the administration machine/Windows 11 package creation