Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 26th June 2006, 13:18   #1
Swapan Das
Senior Member
 
Join Date: Nov 2005
Location: Kolkata (Calcutta),India
Posts: 106
Exe Version Compare between the latest Exe bundled in Installer and Client's Exe

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.
Swapan Das is offline   Reply With Quote
Old 26th June 2006, 13:46   #2
CancerFace
Senior Member
 
Join Date: Apr 2006
Posts: 289
Send a message via ICQ to CancerFace
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
CancerFace is offline   Reply With Quote
Old 27th June 2006, 16:15   #3
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
See my MoreInfo plugin in the Wiki

"Just do it"
onad is offline   Reply With Quote
Old 30th June 2006, 09:30   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
Quote:
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump