Skip to content
⌘ NSIS Forum Archive

Change text custom

2 posts

Freezerman350#

Change text custom

Hello

I wanna know if is possible to change the text of my custom page base on the language for ex ( french / english)

in my ini I put the default text in french but if the person choose english at first i wanna know if i'm able to change it during the installation ...


THX !
Davion#
You leave the field in the ini which includes your text empty, and depending on the language the user has choosen, you fill it before showing the page

StrCmp $LANGUAGE "english" english french

english:
!insertmacro MUI_INSTALLOPTIONS_WRITE "CustomPage.ini" "Field 1" "State" "english text"
goto showpage

french:
!insertmacro MUI_INSTALLOPTIONS_WRITE "CustomPage.ini" "Field 1" "State" "texte français"

showpage:
....
further code
[EDIT]
btw Field1 should be a label of course and you have to save english or french into the var $LANGUAGE at the beginning of your installer 😁
[/EDIT]


I hope this helps - if there are any further questions, post it here or send me a PM

greets Dave