Archive: Stupid question RE: version # in titlebar (MUI)


Stupid question RE: version # in titlebar (MUI)
Desired result: "My Program 1.1.1" in the titlebar, but only product name "My Program" as var for other areas in app.

I've just upgraded NSIS from 2.0b to 2.09 and in the former version I could just do this:

!define MUI_PRODUCT "My Program"
!define MUI_VERSION "1.1.00"

And the titlebar would Say "My Program 1.1.1"

Then I could just use the first var all over my installer when needed, eliminating the version #, so that future versions of my app won't all have thier own install folders named after the program and version number.

The new version of NSIS only allows this:

Name "My Program"

So if I add a version number to that line, and I use the Name var for everything, the version number would show as well. (I don't want that). And if I leave out the version number in the name, then the titlebar doesn't alert the user that they have a specific version when runnig it.

Do I need to create a whole separate variable just for this now or am I missing something?

I'm just now learning the ropes of this NSIS stuff, I hope I made my request understandable. :)

TIA


Just add your own defines like before:

!define Product "My Program"
!define Version "1.1.1"
Name "${Product} ${Version}"

-Stu


For the titlebar use Caption.


summary:
the way afrow told you is the way you do NOT want to have, at it changes EVERYTHING related to $(^Name).

the way joost mentioned is the rigt one. merge both ways:

!define PRODUCT_NAME "My Program"
!define PRODUCT_VERSION "1.1.1"
Name "${PRODUCT_NAME}"
Caption "${PRODUCT_NAME} ${PRODUCT_VERSION}"


Worked great. Thanks everyone!