Hello everyone,
there's a Python command on WAPT that I can't remember.
The idea is to create a package that doesn't create an uninstallation key in the registry by default. What's the command that allows you to register a key that will ultimately serve more as an installation tag than as an uninstallation key?
I used it in the past but I've forgotten how.
Thanks for your help.
Patrice
[SOLVED] Creating a pseudo-uninstall key in the registry
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
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
Good morning,
There is indeed the following function which allows you to create a key in the registry:
Next, you need to remember to delete this key in the uninstall() function using the function registry_deletekey(root, path, keyname, force=False, recursive=False)
Is your goal simply to check if the software is properly installed?
Sincerely,
Ingrid
There is indeed the following function which allows you to create a key in the registry:
Code: Select all
register_uninstall(
uninstallkey,
uninstallstring=None,
win64app=None,
quiet_uninstall_string=None,
install_location=None,
display_name=None,
display_version=None,
publisher=None,
icon=None,
installed_size=None,
) Is your goal simply to check if the software is properly installed?
Sincerely,
Ingrid
Tranquil IT
-
Patrice_minagri
- Messages: 59
- Registration: Oct 21, 2016 - 4:56 p.m.
Ah, great, thank you.
That's exactly what I was looking for. Indeed, with some home installations, there isn't necessarily an entry in the registry.
At least, in this specific case, it allows us to know whether or not a computer has received a particular installation.
That's exactly what I was looking for. Indeed, with some home installations, there isn't necessarily an entry in the registry.
At least, in this specific case, it allows us to know whether or not a computer has received a particular installation.
WAPT 2.6.1.17787
