Skip to content
⌘ NSIS Forum Archive

Changing Dialog Items on the Fly

2 posts

ICONICS2000#

Changing Dialog Items on the Fly

Hello

Is there any way to change the Title bar text on the fly. In the Root directory where the EXE is located i have INI file!

When my installer runs if the INI file exist then i extract information about the install dir, name etc. if does not exist it goes with the defaults

I am using the Modern UI interface what i would like to do is to change the MUI_Version and MUI_PRODUCT depending on what values i retreive from the ini!

Any Ideas
kichik#
The simplest solution would be setting the caption with a variable and read the required title into that variable in .onInit. For example:

Caption "$1"

Function .onInit
ReadINIStr $1 $INSTDIR\anIni.ini installer title
FunctionEnd