Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   dynamic retrieval of version number (http://forums.winamp.com/showthread.php?t=230334)

abstractspoon 7th November 2005 10:09

dynamic retrieval of version number
 
rather than having to modify my install script each time i increment my executable version i was wondering if there was a way i could the result from $(GetFileVersion) and substitute it back in the PRODUCT_VERSION definition.

i checked out the documentation but when i tried to extrapolate from the given example to my specific situation i got compile errors.

any help, even if it's to say it can't be done, would be appreciated.

dan

Animaether 7th November 2005 10:37

${GetFileVersion} is probably a runtime macro, which can't set compiletime information (e.g. VIProductVersion)

You'll have to supply this externally via a define on the command-line to the compiler, or use your other software's compilation tools to modify the NSIS script explicitly.

Afrow UK 7th November 2005 12:42

Or write another NSIS installer to handle it...
http://nsis.sourceforge.net/Invoking...n_compile-time

-Stu

abstractspoon 7th November 2005 21:03

thanks stu. and thanks for not replying 'RTFM' ;)

dan


All times are GMT. The time now is 04:44.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.