abstractspoon
7th November 2005 11:09 UTC
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 11:37 UTC
${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 13:42 UTC
Or write another NSIS installer to handle it...
http://nsis.sourceforge.net/Invoking...n_compile-time
-Stu
abstractspoon
7th November 2005 22:03 UTC
thanks stu. and thanks for not replying 'RTFM' ;)
dan