Archive: WriteINIStr problem


WriteINIStr problem
Hello once again. =)

Problem is i need to modify the .ini file to make it display, for example, 123. code is :

!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioA.ini"
WriteINIStr $TEMP\ioA.ini 'Field 2' State '"123"'
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "ioA.ini"

instead of displaying 123 it shows empty string.

what's the problem. please help.

Thx.

Best regards.

PS used search with WriteINIStr and found 356 entries but nothing to solve my problem. :(


Provided that the ioa.ini is a valid InstallOptions file which has a writable filed 2 the only problem I can see is $TEMP, you should replace it with $PLUGINSDIR.


use the MUI_INSTALLOPTIONS_WRITE macro, then you don't need to specify the path, only the filename


2 Red Wine

strange... with $PLUGINSDIR it works fine.

2 Anders
ok, i'll try.

Thx for the answers. c(_)

Best regards.