Avoid ShowReadMe
HI
How can I avoid show the ReadMe file ( !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\$(MUIReadMe)" ) depends on componentes selection
TIA
Archive: Avoid ShowReadMe
Avoid ShowReadMe
HI
How can I avoid show the ReadMe file ( !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\$(MUIReadMe)" ) depends on componentes selection
TIA
That's should be managed if you use MUI_FINISHPAGE_SHOWREADME_FUNCTION function_name and within the function show the read me depending on components selection and moreover show other read me regarding to selected components.
See MUI documentation,
http://nsis.sourceforge.net/Docs/Mod...UI/Readme.html
Thanks RW, but this MUI documentation is not enough to me
Why the warning??
Part of my actual code
-------------------------------
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\$(MUIReadMe)"
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_FINISH
-------------------------------
Code with you suggest
--------------------------------
!insertmacro MUI_PAGE_INSTFILES
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION VerifyComponents
!define MUI_FINISHPAGE_TITLE_3LINES
!insertmacro MUI_PAGE_FINISH
Function VerifyComponents
SectionGetFlags ${Sec01} $R7
StrCmp $R7 9 vcShow
SectionGetFlags ${Sec02} $R7
StrCmp $R7 9 vcShow
Goto vcSkip
vcShow:
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\$(MUIReadMe)"
vcSkip:
FunctionEnd
--------------------------------
The compiler shows me a warning
1 warning:
install function "VerifyComponents" not referenced - zeroing code (992-1002) out
Actually this isn't what I've suggested :)
I've suggested to read the manual to find out if this feature could help you.
!define MUI_FINISHPAGE_SHOWREADME
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION VerifyComponents
!insertmacro MUI_PAGE_FINISH
......................................
Function VerifyComponents
SectionGetFlags ${Sec01} $R7
StrCmp $R7 9 vcShow
SectionGetFlags ${Sec02} $R7
StrCmp $R7 9 vcShow
Goto vcSkip
vcShow:
ExecShell open "$INSTDIR\readme_case_selected"
vcSkip:
ExecShell open "$INSTDIR\readme_case_NOT_selected"
FunctionEnd
RW, sorry for my poor english, i never try to say you suggest my bad part of code.
I read the documentation but how i say above this doc is two simple.
Thanks Again
hey! no need for sorry at any rate :)
does the above example cover you?
Yes RW as usual, your samples are great!!