SunToo
14th August 2012 09:53 UTC
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.
Anders
14th August 2012 22:12 UTC
Name can be a variable that you set in .onInit
SunToo
15th August 2012 06:11 UTC
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.
Anders
15th August 2012 06:23 UTC
Well, how often do you need to change it? Per page?
SunToo
15th August 2012 06:28 UTC
Just one time after .onInit.
MSG
15th August 2012 07:10 UTC
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?
Anders
15th August 2012 07:13 UTC
$(^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