SVGView Package

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Answer
Mugit
Messages: 8
Registration: Sep 27, 2024 - 3:14 p.m.

April 7, 2025 - 10:27

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
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

April 7, 2025 - 2:27 PM

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
Mugit
Messages: 8
Registration: Sep 27, 2024 - 3:14 p.m.

April 8, 2025 - 8:56 AM

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
User avatar
blemoigne
Messages: 178
Registration: July 17, 2020 - 11:29

April 8, 2025 - 2:47 PM

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.
Answer