Archive: Cannot change ini fileds from installation


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


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.


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?

Check what's in the ini file?

Stu