Archive: Modern UI docu or InstallOptions docu


Modern UI docu or InstallOptions docu
Hi all,

In the Modern UI docu is written how you could use the InstallOptions for custom pages, but in the Examples\InstallOptions no .nsi file follow those rules for instance:
- in the Modern UI docu is written:
Use these macros to read or write INI file values:
!insertmacro MUI_INSTALLOPTIONS_READ $VAR "ioFile.ini" "Field #" "Name"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioFile.ini" "Field #" "Name" "Value"

- but in the samples from the Examples\InstallOptions
;Get Install Options dialog user input
ReadINIStr ${TEMP1} "$PLUGINSDIR\test.ini" "Field 2" "State"
The same way is described in the InstallOptions docu.

So which one should be followed? Is there any difference or both of above will always lead to the same behaviour?

Thanks,
Viv


The InstallOptions examples don't use the Modern UI, so they don't use those macros. There is a Modern UI example which uses InstallOptions in Examples\Modern UI\InstallOptions.nsi.

There is no difference between the two methods. The Modern UI macros are only there to make it easier.


Thanks kichik for your answer. I assumed it is so, but wanted to be sure.

Viv