Skip to content
⌘ NSIS Forum Archive

dynamic retrieval of version number

4 posts

abstractspoon#

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#
${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#
Or write another NSIS installer to handle it...


-Stu