Page 1 of 1

SVGView Package

Published: April 7, 2025 - 10:27 AM
by Mugit
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.

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'
        #)
Sincerely,
Brice

###############################

- Installed WAPT version 2.6.0
- Linux server OS and Debian version
- Operating system of the administration machine/Windows 11 package creation

Re: SVGView Package

Published: April 7, 2025 - 2:27 PM
by blemoigne
Hello,
The difference between the two is that PyScripter is launched as administrator, while the package deployment via the agent is launched as the system account. It's quite possible that it's trying to install things in AppData, which isn't available to the system account. You'd need to find a flag to install it SystemWide (e.g., for executables, usually /ALLUSERS, and for MSI files, ALLUSERS=1).

Good afternoon,
Bertrand

Re: SVGView Package

Published: April 8, 2025 - 8:56 AM
by Mugit
Hello,

Thank you for your reply.
Do you have another suggestion, as this didn't work?

Regards,
Brice

################################

- WAPT version installed: 2.6.0
- Server OS: Linux and Debian version
- Administration/package creation machine OS: Windows 11

Re: SVGView Package

Published: April 8, 2025 - 2:47 PM
by blemoigne
Can you create a ticket and call us? It might not seem like much, but it will be easier to do it live with the file.