Archive: dynamic retrieval of version number


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


${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.


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

-Stu


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

dan