Skip to content
⌘ NSIS Forum Archive

dynamically add version number to "name"

3 posts

micahel#

dynamically add version number to "name"

Hi,

do you know how I can add a generated string to the "name" attribute ?
My goal is to add the version number to the name attribute dynamically in the form like:

name "MY SOFTAPP ${VERSION}"

with !define VERSION "$1" (or something similar).

Any ideas?

Thanks!
Michael
Joost Verburg#edited
It you want to put the define in your script, put the define above the Name command and it will work.

It you want to set the define using a command line parameter of the compiler, see http://nsis.sourceforge.net/site/ind...&tx_faq_faq=17.