Archive: Saving preference values


Saving preference values
Hello
During the installation of my software, the user have to specify the path
where Mplayer is installed.The corresponding script is the following :

...
!define MUI_DIRECTORYPAGE_VARIABLE $Mplayervar
!define MUI_PAGE_HEADER_TEXT $(HEADER_TEXT)
!define MUI_PAGE_HEADER_SUBTEXT $(HEADER_SUBTEXT)
!define MUI_DIRECTORYPAGE_TEXT_TOP $(TEXT_TOP)
!define MUI_DIRECTORYPAGE_TEXT_DESTINATION $(TEXT_DESTINATION)
!define MUI_PAGE_CUSTOMFUNCTION_PRE ConfPath
...
FileOpen $6 $INSTDIR\params.ini w
FileWrite $6 $Mplayervar
...


The problem is that this path is stored with "\" (for example : "c:\Program files\MPlayer").
Is it possible to store it with an "/" or double "\"

thanks

Use StrReplace from the Wiki or WordReplace from the manual.

Stu


Thanks, resolved.