Old 31st October 2007, 15:54   #1
Freddie9000
Junior Member
 
Join Date: Oct 2007
Posts: 8
How to read the version number of a file and set OutFile..

Hi,

I have to read the file version of our exe and set it as postfix for our setup.exe, like setup_1.0.0.0.exe.
I get the entire version via GetDllVersion in the .onInit-callback, but I need this version string for the OutFile Makro, but I can't call OutFile in .onInit.
I only can read the version in a global variable like VERSION and can show a message box with that info....

I only want this information as caption in my installer like "Out Program 1.0.0.0".

Is there anybody who can help ? I guess yes ;-)


Cheers,
Freddie
Freddie9000 is offline   Reply With Quote
Old 31st October 2007, 15:58   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
http://nsis.sourceforge.net/Invoking...n_compile-time

Stu
Afrow UK is offline   Reply With Quote
Old 1st November 2007, 14:55   #3
Freddie9000
Junior Member
 
Join Date: Oct 2007
Posts: 8
Talking

ok, I see. There is no easy / directly way... So I try it with that "hack" ;-)

Cheers and many thanks!!
Freddie

post scriptum
Works great, for filename and for caption !!

Last edited by Freddie9000; 1st November 2007 at 15:26.
Freddie9000 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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