- NSIS Discussion
- Details not viewed in MUI?
Archive: Details not viewed in MUI?
hawkmaster
21st April 2010 14:44 UTC
Details not viewed in MUI?
Hello,
I use this Finishing code:
---------------------------------------------
; Finish page
;!insertmacro MUI_PAGE_FINISH
!define MUI_FINISHPAGE_NOAUTOCLOSE
!define MUI_FINISHPAGE_LINK "http://www.test.org"
!define MUI_FINISHPAGE_LINK_LOCATION "http://www.test.org"
!define MUI_FINISHPAGE_TITLE_3LINES
!define MUI_FINISHPAGE_RUN
!define MUI_FINISHPAGE_RUN_FUNCTION LaunchJob
!define MUI_FINISHPAGE_RUN_NOTCHECKED
!define MUI_FINISHPAGE_RUN_TEXT "Starting 8"
!define MUI_FINISHPAGE_SHOWREADME "$INSTDIR\readme_de.txt"
!insertmacro MUI_PAGE_FINISH
Function LaunchJob
ExecShell "open" "http://localhost"
FunctionEnd
Section /o "Option" SecCore
SetDetailsView show
SectionEnd
--------------------------------------------
But I cannot see any Detail Button or log window
can somebody help me?
thanks a lot
hawk
kichik
21st April 2010 14:46 UTC
/o means the section is not selected by default which means its code is not executed. Use ShowInstDetails outside of a section for a simpler solution.
hawkmaster
21st April 2010 14:51 UTC
Thanks for your help,
I have this in my script.
include "MUI.nsh"
ShowInstDetails show
...
;finish page
But the detail button is not shown.
regards
hawk
kichik
22nd April 2010 10:00 UTC
Works fine for me. What button are you talking about exactly?
hawkmaster
22nd April 2010 10:56 UTC
Hi kichik,
thanks for your help.
I mean the "Show Details" button at the end of the installation
If you click on it, a Dos command like window shows what was extracted and more.
I saw this in the example script.
My test is now with a MUI script and I have a finishing page at the end which opens a readme.txt file.
So I am not sure, if in the modern interface is the "Show details" button is available?
regards
hawk
MSG
22nd April 2010 11:19 UTC
If you set ShowInstDetails to 'show', the details will always be shown automatically. Therefore it's logical that you don't see the button in that case. It may be that your installation is finished so quickly, you don't see the details properly before you jump to the finish page. You can tell MUI to not automatically jump to the finish page, see the MUI readme.
hawkmaster
22nd April 2010 11:27 UTC
Hi MSG,
thanks for your help.
<<If you set ShowInstDetails to 'show', the details will always be shown automatically.Therefore it's logical that you don't see the button in that case.>
hmm, I am a little bit confused :-)
Where are the Details shown if there is no button to open the details window?
MSG
22nd April 2010 11:58 UTC
I believe we're talking about different things. Can you make a screenshot of the details window you're talking about?
hawkmaster
22nd April 2010 13:58 UTC
Hi,
sorry in the moment I cannot upload an sceenshot to an url.
Afrow UK
22nd April 2010 14:16 UTC
Add it as an attachment.
Stu
hawkmaster
22nd April 2010 14:36 UTC
Details button
Here is the screenshot of the "Show details" button
I know this was not made with MUI, but this is what I mean.
Is this also possible with MUI?
Afrow UK
22nd April 2010 14:44 UTC
What you have in that screenshot is the default behaviour! Do not use ShowInstDetails or SetDetailsView.
Stu
hawkmaster
22nd April 2010 15:51 UTC
sorry Stu, I am new to NSIS.
I have read the documentation but it is not clear to me.
SetDetailsView.
"Sets whether or not the details of the install are shown"
but if the screenshot is the default behaviour, what is then the meaning of "Details" here?
showing the extracted files and command while installing?
regards
hawk
Afrow UK
22nd April 2010 16:19 UTC
It means the entire list view control. Clicking the Show Details button has the same effect as using SetDetailsView show (it is a run time instruction). ShowInstDetails show (a compile time instruction) ensures the list view control starts visible so the user does not have to click Show Details.
Stu
Smurge
8th April 2011 17:25 UTC
thank you! this info helped me too.
the code that do the trick was:
ShowInstDetails show
!define SetDetailsView show
i use modern skin and needed only the 1. row to make it always show the detail list.
what puzzels me is that the 1 need a !define and the other does not.
bye
Afrow UK
8th April 2011 19:15 UTC
Defining a constant called SetDetailsView does nothing. Not sure where you got that idea from. SetDetailsView is a run-time instruction that is used in a Section to override what was set with ShowInstDetails. This is obvious if you read the manual.
Stu
Smurge
8th April 2011 20:32 UTC
i got the idea from your post above.
Yes, it does nothing, indeed! I tried it in my script and the compiler doesnt complain about this Option, so i guessed it is just a leftover from an earlier NSIS version. I mentioned it only to give a complete abstract of the threat
i have read the manual.. partially ... and im far from knowing it by rote, like you do. but im just a beginner...
bye