PDA

View Full Version : Exe Version Compare between the latest Exe bundled in Installer and Client's Exe


Swapan Das
26th June 2006, 13:18
My issue is that I want to check my bundled Exes (more than one exe) versions of my latest Installer with the exes already running at client site. If client's exes are older than I will update the exes otherwise I will quit the Installation program. In case of first time installation, it will simply install the software (which is currently done by my installer).

Please note that I've tried with "VersionCompare" command and its giving correct ouput, but here I'm storing the latest exe's version no. manually to a variable in my script and then using 'VersionCompare'. I want some automated way by which the installer can automatically detect the version nos. of exes bundled in it, before extracting them physically.

CancerFace
26th June 2006, 13:46
Try GetDLLVersion (NSIS manual 4.9.3.5) which will give you the version numbers in the form a.b.c.d (in case you want to store a value in the registry) and VersionCompare as you suggested to see which EXE is newer.
CF

onad
27th June 2006, 16:15
See my MoreInfo plugin in the Wiki

kichik
30th June 2006, 09:30
I want some automated way by which the installer can automatically detect the version nos. of exes bundled in it, before extracting them physically.Use GetDLLVersionLocal.