mmleyr
2nd July 2007 15:45 UTC
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. :(
Red Wine
2nd July 2007 16:37 UTC
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.
Anders
2nd July 2007 18:32 UTC
use the MUI_INSTALLOPTIONS_WRITE macro, then you don't need to specify the path, only the filename
mmleyr
3rd July 2007 07:12 UTC
2 Red Wine
strange... with $PLUGINSDIR it works fine.
2 Anders
ok, i'll try.
Thx for the answers. c(_)
Best regards.