returned non-zero exit status 1152

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

February 7, 2017 - 5:12 PM

I am preparing a package for a Casio emulator, and I am stuck on error 1152 (= "Cannot start more than one instance of the specified program.").

For manual installation, I use the following command:
setup.exe /L"1036" /S /V" /QN ISX_INSTALLKEY=XXXX"

I don't know if I made a mistake with the quotation marks in the run? Or is that unrelated?

Code: Select all

# -*- coding: utf-8 -*-
# -----------------------------------------------------------------------
from setuphelpers import *
uninstallstring=''
uninstallkey=['{92A68E3F-F40B-472C-9F93-2729EBBF08DA}']

def install():
     print('Installation de Casio 35+ Manager+')
     run(r'casio\fx-Manager_PLUS\GRAPH_35+\setup.exe /L\"1036\" /S /V\" /QN ISX_INSTALLKEY=XXXX\"')

Error :
CalledProcessError: Command '('casio\\fx-Manager_PLUS\\GRAPH_35+\\setup.exe /L\\"1036\\" /S /V\\" /QN ISX_INSTALLKEY=XXXX\\"',)' returned non-zero exit status 1152
Gaelds
Messages: 254
Registration: Nov 22, 2015 - 08:37

May 4, 2017 - 2:43 PM

I finally found a solution for this Casio Graph 35+ package by using an MSI file that was extracted when the setup.exe was launched. Here is the working code (with a Casio education license):

Code: Select all

# -*- coding: utf-8 -*-
from setuphelpers import *
uninstallkey = []

def install():
    # if you want to modify the keys depending on environment (win32/win64... params..)
    global uninstallkey
    global uninstallstring
    softname = 'GRAPH 35+ Manager PLUS (School License)'
    versionsoft = control['version'].split('-',1)[0]
    check_installed_soft = installed_softwares(softname)
    if check_installed_soft:
             for uninstall in check_installed_soft:
                key=uninstall['key']
                if installed_softwares(uninstallkey=key):
                   if Version(uninstall['version']) < Version(versionsoft):
                         cmd = WAPT.uninstall_cmd(uninstall['key'])
                         run_notfatal(cmd)

    run_notfatal('GRAPH35PLUS.msi /L "1036" /qn ISX_INSTALLKEY=XXXXX')
Locked