[SOLVED] UNC path as msi argument

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
Locked
cefinformatique
Messages: 31
Registration: May 26, 2023 - 2:25 p.m.

May 30, 2023 - 3:04 PM

Good morning,

I am trying to install a "DR" software which requires the following arguments:
- PATHRENSEIGNE='"1"'
- TYPEINSTALL"="PORTABLE"
- EXE="C:\EIC\DR\Application"
- DATA="C:\EIC\DR\Application\DATA"
- NETWORKDATA="\\myserver\SRV\DRData"

So I created the setup.py file as follows:

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
uninstallkey = ["{61D2EDA6-1B60-49A2-9167-159BA73B2897}"]

def install():
        # Declaring local variables
        install_laptop_properties = {
            "PATHRENSEIGNE":'"1"',
            "TYPEINSTALL":'"PORTABLE"',
            "EXE":"C:\EIC\DR\Application",
            "DONNEES":"C:\EIC\DR\Application\DONNEES'",
            "DONNEESRESEAU":"\\monserveur\SRV\DRData'",
        }
        # Installing the software
        print("Installation: DR")
        install_msi_if_needed('DR.msi', properties = install_laptop_properties)
Unfortunately, I get the following error:

Code: Select all

CRITICAL Fatal error in install script: CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "DR.msi" PATHRENSEIGNE="1" TYPEINSTALL="PORTABLE" EXE=C:\\EIC\\DR\\Application\ DONNEES=C:\\EIC\\DR\\Application\\DONNEES DONNEESRESEAU=\\\\fichiers.wizzyoo.info\\WZY\\DRData' returned non-zero exit status 1603.
So I have two questions:
- Does the fact that the backslashes are doubled pose a problem for the installation?
- How can I add a /L*v "log.log" option to get the msi installation logs?
Last edited by cefinformatique on May 31, 2023 - 09:04, edited 1 time.
cefinformatique
Messages: 31
Registration: May 26, 2023 - 2:25 p.m.

May 30, 2023 - 4:08 PM

If I use:

Code: Select all

"EXE":r'C:\EIC\DR\Application',
instead of :

Code: Select all

"EXE":"C:\EIC\DR\Application",
It works under VSCodium, however I still get the following error during package installation with WAPT:

Code: Select all

Installation: DR
Installing: DR.msi (5.7.0302)
Traceback (most recent call last):
  File "C:\Program Files (x86)\wapt\common.py", line 4074, in install_wapt
    exitstatus = setup.install()
  File "C:\WINDOWS\TEMP\waptz5r69e_d\setup.py", line 55, in install
  File "C:\Program Files (x86)\wapt\common.py", line 4024, in new_func
    return func(*args, **kwargs)
  File "C:\Program Files (x86)\wapt\setuphelpers_windows.py", line 1449, in install_msi_if_needed
    run(r'msiexec /norestart /q /i "%s" %s' % (msi, props), accept_returncodes=accept_returncodes, timeout=timeout, pidlist=pidlist)
  File "C:\Program Files (x86)\wapt\waptutils.py", line 2112, in run
    raise CalledProcessErrorOutput(proc.returncode, cmd, ''.join(output))
waptutils.CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "DR.msi" PATHRENSEIGNE=1 TYPEINSTALL=POSTE TYPEPOSTE=2 EXE=C:\\EIC\\DR\\Application DONNEES=\\\\monserveur\\SRV\\DRData' returned non-zero exit status 1603.
Output:

CalledProcessErrorOutput: Command 'msiexec /norestart /q /i "DR.msi" PATHRENSEIGNE=1 TYPEINSTALL=POSTE TYPEPOSTE=2 EXE=C:\\EIC\\DR\\Application DONNEES=\\\\monserveur\\SRV\\DRData' returned non-zero exit status 1603.
Output:
cefinformatique
Messages: 31
Registration: May 26, 2023 - 2:25 p.m.

May 31, 2023 - 09:04

I ultimately think the problem lies with the software itself, so it's unrelated to the WAPT package.

In any case, I've bypassed the requirement to specify arguments in the setup.py file by generating an MST response file instead.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 31, 2023 - 09:45

In the arguments you have DATA which points to a server using UNC.

Is it possible that the data needs to be accessible by the machine at the time of installation for the installation to work?
Locked