Archive: Using $INSTDIR onto MUI_FINISHPAGE


Using $INSTDIR onto MUI_FINISHPAGE
I found information about editing the text onto the MUI_WELCOMEPAGE and next I tried the following:

!define MUI_TEXT_FINISH_INFO_TEXT "To remove this installation please run Unistall.exe\r\ninto directory $INSTDIR\r\n\r\n"

Now it does work but in runtime the installation path does not show the back slashes, which is very spitefull.

So what I mean is that I see "C:Program FilesMyDir" instead of "C:\Program Files\MyDir"

Can anyone help me on that


Use \\ instead of \.
If you are writing to the ini file $INSTDIR, then you will need to use my back slash to double back slash converter.
Here: http://nsis.sourceforge.net/archive/...ances=0,11,122

Use like so:


Push $INSTDIR
Call ConvertBStoDBS
Pop $R0

Now, on your WelcomePage, you will needd to set the text to:
!define MUI_TEXT_FINISH_INFO_TEXT "To remove this installation please run Unistall.exe\r\ninto directory $R0\r\n\r\n"


You will need to Call ConvertBStoDBS before the WelcomePage loads, so use it in a function like so:

!define MUI_CUSTOMFUNCTION_WELCOMEPAGE_PRE "DoConvertBStoDBS"
Function DoConvertBStoDBS
Push $INSTDIR
Call ConvertBStoDBS
Pop $R0
FunctionEnd


Remember to include the ConvertBStoDBS function in your script as well!

Hope that helps.

-Stu :)