[RESOLVED] General question about packages

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
Alexis83
Messages: 5
Registration: Apr 16, 2019 - 5:48 p.m.

May 7, 2020 - 5:10 PM

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!
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

May 11, 2020 - 10:16

Hello,
it all depends on how you configure your package.
If you use the `install exe if needed` option with the `min version` parameter, it will only install if the already installed version is older.
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

May 11, 2020 - 11:12

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:

Code: Select all

    install_exe_if_needed("Firefox Setup 71.0.exe",'-ms',key='Mozilla Firefox 71.0 (x64 fr)',min_version='71.0')
or that

Code: Select all

 install_exe_if_needed("Firefox Setup 71.0.exe",'-ms',key='Mozilla Firefox 71.0 (x64 fr)',min_version='71.0')
The package is reinstalling itself over version 76 when it shouldn't.
Did I miss something?
User avatar
vcardon
WAPT Expert
Messages: 278
Registration: Oct 06, 2017 - 10:55 p.m.
Location: Nantes, France

May 11, 2020 - 11:37

florentR2 wrote: May 11, 2020 - 11:12 The package is reinstalling over version 76 when it shouldn't.
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
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

May 11, 2020 - 11:42

install_exe_if_needed will install a newer version of your software if the version on your machine is older.
In my test, I already have version 76 installed.
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?
Alexis83
Messages: 5
Registration: Apr 16, 2019 - 5:48 p.m.

May 11, 2020 - 2:11 PM

Thanks for the replies.
So it seems possible :)
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 11, 2020 - 2:38 PM

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!
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

May 11, 2020 - 3:28 PM

Okay, noted.
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')
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 11, 2020 - 3:30 PM

Absolutely, but the uninstallkey is still necessary ;)
florentR2
Messages: 100
Registration: February 13, 2020 - 5:23 PM

May 11, 2020 - 3:42 PM

sfonteneau wrote: May 11, 2020 - 3:30 PM 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?
Locked