Page 1 of 1

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

Published: May 24, 2019 - 09:51
by gaelds
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')

Re: Package installs manually but not from the console

Published: May 24, 2019 - 11:37
by sfonteneau
In my opinion, the installation is not supported under the system account:

You should try launching the installation using "psexec -s cmd".

Re: Package installs manually but not from the console

Published: May 24, 2019 - 12:39
by gaelds
Indeed, whether it's "setup.exe" or "setup.exe /S", the installation doesn't start when using "psexec -s cmd". Is there a workaround?

Re: Package installs manually but not from the console

Published: May 24, 2019 - 1:15 PM
by sfonteneau
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.