Archive: Bug in MUI_INSTALLOPTIONS_WRITE?


Bug in MUI_INSTALLOPTIONS_WRITE?
Here's another small bug report for NSIS 2.06.

MUI_INSTALLOPTIONS_WRITE doesn't respect the NSIS conventions on special characters.

From my code:

; This shouldn't be needed (from my understanding of
; the NSIS docs) but without it a path "C:\tbar" appears
; as "C:<TAB>bar".
${StrRep} $0 $PathPrefix '\' '\\'
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSummary.ini" "Field 2" "Text" "$0"

Similarly, "\r\n" works but "$\r$\n" does not.

Kind regards,
Angus


I see that it's actually a bit more complicated. Sometimes it works as expected (C:\tbar appears as C:\tbar) and sometimes it doesn't (C:\tbar appears as C:<TAB>bar).

Attached is an archive that should unzip to
trial.nsi and trial.ini

See how the two Fields behave differently? Here I get:

A Path: C:<TAB>bar

[ C:\tbar ] [...]

Regards,
Angus


This is explained in the InstallOptions ReadMe and some conversion functions are provided there.

The ReadMe is installed in the Contrib\InstallOptions folder and can also be found at http://nsis.sourceforge.net/Contrib/...ns/Readme.html


OK, many thanks for the heads up.
Angus