Skip to content
⌘ NSIS Forum Archive

Cannot change ini fileds from installation

4 posts

kmudrovcic#

Cannot change ini fileds from installation

I wanna have language specific strings in the installation. I already have .ini files, but i want to change it during the installation, depending of language chosen.

I've tried with:

!insertmacro MUI_INSTALLOPTIONS_WRITE "register.ini" "Field 1" "Text" "$(first_name)"

Also I've tried with WriteIniStr before and after:
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "register.ini"

But with no success.

What am i doing wrong?

Is there any other way to change fields in .ini files depending on the language chosen.

Thanks
Afrow UK#
Using the INSTALLOPTIONS_WRITE macro is the correct way. Make sure you are using it after the ini file has been extracted though of course.
kmudrovcic#
Originally posted by Afrow UK
Using the INSTALLOPTIONS_WRITE macro is the correct way. Make sure you are using it after the ini file has been extracted though of course.
Thanks, but I've already tried to use INSTALLOPTIONS_WRITE after EXTRACT and nothing has changed. Is there something more i should do?