Page 1 of 1

Software versions

Published: March 30, 2015 - 3:24 PM
by jmeyer
Hello,

I installed WAPT a week ago and created a package for a program from an MSI file.
I found it strange to see a hyphen followed by a number in the version number when creating the package, as this doesn't appear either through Add/Remove Programs or in the list of software installed on the machine in the console by WAPT.
I was also surprised to see that the number after the hyphen changed during a second creation, even though I used the same MSI file.

What does the "-0" at the end of the version number, for example, represent?

Is it possible to check for the presence of a version without considering the software revision?
For example, can a program version "1.5.215" be detected just by the "1.5" to avoid installing a minor revision?

Thank you in advance.

Re: Software versions

Published: March 30, 2015 - 5:07 PM
by Frédéric Bonnier
Hello,
> What does the "-0" at the end of the version number, for example, correspond to?
Let's take the tis-firefox package 36.0.1-5.

36.0.1 corresponds to the version of Firefox packaged by WAPT
. -5 corresponds to the revision number of the tis-firefox package. With WAPT, software installations can be customized. If packages need to be recreated with different customizations, the software version number must not change, unlike the revision.

> Is it possible to check for the presence of a version without taking the software revision into account?
Yes, it is possible not to install (or to perform another operation) if a specific version is detected. This is done in the package's setup.py file (see the LibreOffice package).



Frédéric Bonnier

Re: Software versions

Published: March 30, 2015 - 5:19 PM
by jmeyer
Thank you for this information.
I'll look into the LibreOffice package and see what I can do.

For your information, my problem with version detection is that the software—an antivirus program I won't name—that I want to install uninstalls itself if the MSI file is run a second time.
This is quite annoying because WAPT thinks it has installed it when it has actually uninstalled it.
The software version and package revision double the chances of no longer having the software on the machines. :?