The search returned 8 results

by Thierry Rapp
February 6, 2025 - 10:33
Forum: WAPT Packages
Subject: [SOLVED] tis-openwebstart audit
Answers: 4
Views : 5002

Re: tis-openwebstart Audit

Hello,
I just ran the test and the audit correctly fails when the package is no longer present on the machine.
A quick follow-up question: is there a way to automatically reinstall the package when the audit fails?
by Thierry Rapp
February 4, 2025 - 9:23 AM
Forum: WAPT Packages
Subject: [SOLVED] tis-openwebstart audit
Answers: 4
Views : 5002

[SOLVED] tis-openwebstart audit

Hello,

The openwebstart package audit doesn't seem to be working.
When the program is manually uninstalled from the machine, the audit remains OK.

Regards,
Thierry Rapp

WAPT 2.6.0.16795
Server Ubuntu 22.04
OS win10 Educ 22h2
by Thierry Rapp
July 4, 2023 - 9:54 AM
Forum: WAPT Packages
Subject: Use of audit data
Answers: 0
Views : 3099

Use of audit data

Hello,

I was inspired by the laps-by-wapt package and in the console I added an audit data entry.
The `read_audit_data_set` function returns an empty list.


`bios_passwd = []`

`def install():
audit()
print(bios_passwd)`


`def audit():
bios_passwd = WAPT.read_audit_data_set("bios","passwd ...`)
by Thierry Rapp
June 9, 2023 - 08:43
Forum: WAPT Packages
Subject: [SOLVED] Handling the return code for uninstall
Answers: 8
Views : 5073

Re: Handling return code for uninstall

An exception occurred: SystemExit (note: full exception trace is shown but execution is paused at: _run_module_as_main)
3
File "C:\Program Files (x86)\wapt\wapt-get.py", line 817, in main
print("=== Error removing packages ===\n%s" % "\n".join([" %s" % p for p in errors]))
File "C ...
by Thierry Rapp
June 9, 2023 - 07:46
Forum: WAPT Packages
Subject: [SOLVED] Handling the return code for uninstall
Answers: 8
Views : 5073

Re: Handling return code for uninstall

I'm restarting the installation.

The program is uninstalled correctly; it's just triggering an exception.
by Thierry Rapp
June 9, 2023 - 07:42
Forum: WAPT Packages
Subject: [SOLVED] Handling the return code for uninstall
Answers: 8
Views : 5073

Re: Handling return code for uninstall

Removing C:\waptdev\insastg-cesar_2022.0.2-2_windows_PROD ...
2023-06-09 07:39:07,072 CRITICAL Critical error during uninstall: CalledProcessErrorOutput: Command 'C:\\PROGRA~3\\UNINST~1\\{7261A~1\\Setup.exe /remove /q' returned non-zero exit status 12.
Output:
No package removed !
FATAL ERROR...
by Thierry Rapp
June 8, 2023 - 10:50
Forum: WAPT Packages
Subject: [SOLVED] Handling the return code for uninstall
Answers: 8
Views : 5073

Re: Handling return code for uninstall

I tested it:

The Uninstall method executed directly works.
The remove method still returns an error.


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

app_uninstall_key = '{7261A53C-9352-45D1-8DE0-B326E177CA84}'

def install():
# Declaring local variables
fichier_lic=makepath ...
by Thierry Rapp
June 8, 2023 - 09:45
Forum: WAPT Packages
Subject: [SOLVED] Handling the return code for uninstall
Answers: 8
Views : 5073

[SOLVED] Handling return code for uninstall

Hello,
I have a piece of software that installs correctly and enters the silent uninstallation key, but the return code is not 0.
What are the best practices for this type of problem?

Thank you in advance,
Thierry Rapp