Hello,
I discovered the WAPT solution some time ago and I'm planning to do a proof of concept (POC).
I haven't found the answer (perhaps I haven't searched properly...).
I'd like to know if WAPT packages automatically replace software installed on a PC.
For example, if Firefox is installed on a PC, will the package pushed by WAPT uninstall the previously installed version of Firefox?
Thank you for your answers!
[RESOLVED] General question about 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
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
After a few tests, I confess I don't understand how min_version works
For example, I installed Firefox 76.0, then created a package with an older version 71 like this:
or that
The package is reinstalling itself over version 76 when it shouldn't.
Did I miss something?
For example, I installed Firefox 76.0, then created a package with an older version 71 like this:
Code: Select all
install_exe_if_needed("Firefox Setup 71.0.exe",'-ms',key='Mozilla Firefox 71.0 (x64 fr)',min_version='71.0')Code: Select all
install_exe_if_needed("Firefox Setup 71.0.exe",'-ms',key='Mozilla Firefox 71.0 (x64 fr)',min_version='71.0')Did I miss something?
In your situation, WAPT worked as expected: you requested to install version 71 as a replacement for version 76.
install_exe_if_needed will install a newer version of your software if the version on your machine is older.
If the version on your machine is the same as the package version, then the package will only report to the server that your software is up to date without installing it, because the operation will have been rendered unnecessary.
Vincent
Vincent CARDON
Tranquil IT
Tranquil IT
In my test, I already have version 76 installed.install_exe_if_needed will install a newer version of your software if the version on your machine is older.
The version of the WAPT package being 71 It's older and shouldn't be installed?
Or do we need to proceed differently so that it doesn't install an older version over a newer one?
- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
For Firefox, it's a bit different.
The Firefox uninstall key contains the Firefox version number.
So if the software's uninstall key isn't present, then the installation is restarted!
The Firefox uninstall key contains the Firefox version number.
So if the software's uninstall key isn't present, then the installation is restarted!
Okay, noted.
Here's how I get around this, for example, with version 76 already installed
Here's how I get around this, for example, with version 76 already installed
Code: Select all
softname ='Mozilla Firefox'
listFF=installed_softwares(softname)
#print(listFF[0]['version'])
versionInstalled=listFF[0]['version']
versionPackage='71.0'
if versionInstalled >= versionPackage:
print('version installée supérieur a celle du package')
else:
install_exe_if_needed("Firefox Setup 71.0.exe",'-ms',key='',min_version='71.0')- sfonteneau
- WAPT Expert
- Messages: 2318
- Registered: July 10, 2014 - 11:52 PM
- Contact :
Absolutely, but the uninstallkey is still necessary 
Is this necessary for WAPT to consider that the software has been installed correctly?
Or just advice on how to uninstall via WAPT if needed?
