build-upload

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
Bruno
Messages: 2
Registration: March 12, 2024 - 08:57

March 12, 2024 - 09:38

Good morning,
I get an error when I generate a .msi or .exe package template in the wapt console.
I am on version 2.4.0.14143

Explanation:

After manually configuring the setup.py file, I am unable to build the package.
The local installation works fine, but I get an error message when I run the command `run` on WAPT: `-i build-upload`
The goal of this operation is, of course, to deploy this package to the workstations.

Here is my setup:

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


def install():
    # Declaring local variables

    # Installing the software
    print("Installing: setup.exe")
    run('.\Setup /Configure .\Conf_OfficePro2019.xml')

Here is the error message:

Code: Select all

*** Remote Interpreter Reinitialized ***
Command Line : --use-gui -i build-upload "C:\waptdev\linwapt-office-pro-2019_16.0.11617.33601-11_windows_PROD\WAPT\.."
Using config file: C:\Users\bvincent.pc\AppData\Local\waptconsole\waptconsole.ini
Building packages 1 packages
FATAL ERROR : IndexError: list index out of range
Exit code:  3
>>>
Can you help me, please?
The command seems to work, but I must have forgotten a parameter.

THANKS.

Bruno
User avatar
dcardon
WAPT Expert
Messages: 1932
Registration: June 18, 2014 - 09:58
Location: Saint Sébastien sur Loire
Contact :

March 12, 2024 - 2:36 PM

Hi Bruno,

the best way is to do the build upload using the WAPT console (private repository tab, "import a package" button, expand it and click "Build and import a package into the repository"). We'll remove the build-upload from the PyScripter because there are too many reasons why it wouldn't work (context difference between the current user and the elevated user).

There are example packages for the Office suite on the store that you can edit if you want more examples of the package itself.

Regards,

Denis
Denis Cardon - Tranquil IT
Share your experiences on WAPT! Send us your blog and article URLs in the "Your Opinion of the forum, and we'll feature them on the WAPT
Bruno
Messages: 2
Registration: March 12, 2024 - 08:57

March 12, 2024 - 3:18 PM

Hello,

thank you for the feedback.
I will test this solution.

Have a good day.
Answer