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
Using $INSTDIR onto MUI_FINISHPAGE
2 posts
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:
!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:
Hope that helps.
-Stu 🙂
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:
Now, on your WelcomePage, you will needd to set the text to:
Push $INSTDIR
Call ConvertBStoDBS
Pop $R0
!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:
Remember to include the ConvertBStoDBS function in your script as well!
!define MUI_CUSTOMFUNCTION_WELCOMEPAGE_PRE "DoConvertBStoDBS"
Function DoConvertBStoDBS
Push $INSTDIR
Call ConvertBStoDBS
Pop $R0
FunctionEnd
Hope that helps.
-Stu 🙂