Page 1 of 1

build-upload

Published: March 12, 2024 - 09:38
by Bruno
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

Re: build-upload

Published: March 12, 2024 - 2:36 PM
by dcardon
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

Re: build-upload

Published: March 12, 2024 - 3:18 PM
by Bruno
Hello,

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

Have a good day.