Archive: How to read the version number of a file and set OutFile..


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


http://nsis.sourceforge.net/Invoking...n_compile-time

Stu


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 !! :D