The package can be installed manually, but not from the console

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
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 24, 2019 - 09:51

Good morning,
I'm using version 1.7.4 of wapt community. I created a package for dialux-evo which works when launched via the "wapt-get install" command, but crashes when I add it as a dependency to a machine from the console:

Code: Select all

Installation de Dialux EvoTraceback (most recent call last):
  File "C:\wapt\common.py", line 3818, in install_wapt
    exitstatus = setup.install()
  File "c:\windows\temp\waptwtlytd\setup.py", line 9, in install
  File "C:\wapt\common.py", line 3774, in new_func
    return func(*args,**kwargs)
  File "C:\wapt\setuphelpers.py", line 4212, in install_exe_if_needed
    run(r'"%s" %s' % (exe,silentflags),accept_returncodes=accept_returncodes,timeout=timeout,pidlist=pidlist)
  File "C:\wapt\setuphelpers.py", line 1061, in run
    raise CalledProcessErrorOutput(proc.returncode,cmd,''.join(output))
CalledProcessErrorOutput: Command '"Setup.exe" /S:C:\\config.ini' returned non-zero exit status 5.
Output:
CalledProcessErrorOutput: Command '"Setup.exe" /S:C:\\config.ini' returned non-zero exit status 5.
Output:

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *

uninstallkey = []

def install():
    print('Installation de Dialux Evo')
    filecopyto(ur'./config.ini',ur'c:\config.ini')
    install_exe_if_needed("Setup.exe",'/S:C:\config.ini',key='DIALux',min_version=' ')

def uninstall():
    print('Suppression de Dialux Evo')
    run_notfatal(r'"C:\Windows\DIALux\uninstall.exe" "/U: C:\Program Files(x86)\DIALux\Uninstall\uninstall.xml" / S')
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 24, 2019 - 11:37

In my opinion, the installation is not supported under the system account:

You should try launching the installation using "psexec -s cmd".
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 24, 2019 - 12:39

Indeed, whether it's "setup.exe" or "setup.exe /S", the installation doesn't start when using "psexec -s cmd". Is there a workaround?
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 24, 2019 - 1:15 PM

Here are a few interesting links for a possible solution:

https://evo.support-de.dial.de/support/ ... 3%B6glich-

Another user who uses sccm and has the same problem:
https://forums.indigorose.com/forum/set ... n-an-error

I suggest trying the installation with a log file as output to see what's interfering with the setup.

The missing environment variable in the system account is a very likely cause.
Locked