Archive: How to set installer name after .onInit


How to set installer name after .onInit
Hi,
is there any way to set the content of the installer attribute "Name" after the method .onInit to adapt the caption of all Windows.

Note: I don't want to set the whole caption of the windows, just the "Name" part to maintain the language dependent part ("Setup", "Installation de" ...) added by NSIS. So

SendMessage $HWNDPARENT ${WM_SETTEXT} 0 "STR:Title"

is not what I'm looking for.


Name can be a variable that you set in .onInit


Hi Anders,
changing the variable value after .onInit has no impact on the caption of the windows. It only changes the text within the pages that use the name.


Well, how often do you need to change it? Per page?


Just one time after .onInit.


Couldn't you grab the text currently displayed on the menubar with wm_gettext or something, and cut off the software name to get the language-dependent part?


$(^SetupCaption) is the default caption and it is just "$(^Name) Setup", you can find the rest of the strings @ http://nsis.svn.sourceforge.net/view...n=&view=markup and you can now build a string for use with WM_SETTEXT