[RESOLVED] OBS Studio package fix

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
Benoit
Messages: 43
Registration: June 26, 2023 - 11:52
Location: Tarbes

April 27, 2026 - 1:53 PM

wapt enterprise 2.6.1.17705
server: debian 12
Package machine: Win 11

Good morning,

Could you please correct the uninstall() function present in the OBS studio package from the store? https://wapt.tranquil.it/store/fr/detai ... _PROD.wapt

Code: Select all

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

impacted_third_party_processes = [
    "msedge",
    "msedgewebview2",
    "Rocket.Chat",
    "Teams",
    "msteams",
    "LogiTune",
    "NVIDIA Broadcast",
]


def install():
    bin_name = glob.glob("OBS-Studio-*.exe")[0]
    try:
        install_exe_if_needed(
            bin_name,
            silentflags="/S",
            key="OBS Studio",
            min_version=control.get_software_version(),
            killbefore=impacted_third_party_processes if force else [],
        )
    except Exception as e:
        if e.returncode == 6:
            for p in impacted_third_party_processes:
                if isrunning(p):
                    print(f"{p} is running")
            error(
                'Installation failed with "exit status 6"\nIt means that there is a program running that may be using OBS Virtual Camera\nYou can force install this package if you want to try killing them before'
            )


def uninstall():
    remove_programs_menu_folder("OBS Studio")
Last edited by Benoit on Apr 28, 2026 - 3:37 PM, edited 1 time.
italbot
Messages: 61
Registration: Sep 26, 2023 - 3:50 p.m.

April 27, 2026 - 4:05 PM

Hello,

Could you tell me what problem you're encountering during uninstallation? When I test it myself, the software uninstalls correctly.

Sincerely,

Ingrid
Tranquil IT
Benoit
Messages: 43
Registration: June 26, 2023 - 11:52
Location: Tarbes

April 28, 2026 - 08:09

Hello,
when I test the uninstall() function from VS Code, it only removes the shortcut from the Start menu; it doesn't uninstall the software.

Regards,
italbot
Messages: 61
Registration: Sep 26, 2023 - 3:50 p.m.

April 28, 2026 - 09:14

Hello,

Yes, I tested it using the system account on my end. From VS Code or PyScripter, could you run `remove` instead of `uninstall` to test the software uninstallation? This should run both the script specified in the `uninstall()` function and the uninstallation of the registry key.

Regards,

Ingrid
Tranquil IT
Locked