HI
How can I avoid show the ReadMe file ( !define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\$(MUIReadMe)" ) depends on componentes selection
TIA
Avoid ShowReadMe
7 posts
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,
See MUI documentation,
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
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.
If you anyway want to skip the readme check box then you should add 2 finish pages 1st with readme checkbox and 2nd without, and use page's custom function pre to determine which of these 2 has to be displayed according to the selected components.
I've suggested to read the manual to find out if this feature could help you.
As you can see this feature is useful when you want to display different read me files depending on selected components.!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
If you anyway want to skip the readme check box then you should add 2 finish pages 1st with readme checkbox and 2nd without, and use page's custom function pre to determine which of these 2 has to be displayed according to the selected components.
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
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?
does the above example cover you?
Yes RW as usual, your samples are great!!