Old 21st April 2010, 13:44   #1
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
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
hawkmaster is offline   Reply With Quote
Old 21st April 2010, 13:46   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
/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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 21st April 2010, 13:51   #3
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
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
hawkmaster is offline   Reply With Quote
Old 22nd April 2010, 09:00   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Works fine for me. What button are you talking about exactly?

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 22nd April 2010, 09:56   #5
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
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
hawkmaster is offline   Reply With Quote
Old 22nd April 2010, 10:19   #6
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
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.
MSG is offline   Reply With Quote
Old 22nd April 2010, 10:27   #7
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
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?
hawkmaster is offline   Reply With Quote
Old 22nd April 2010, 10:58   #8
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
I believe we're talking about different things. Can you make a screenshot of the details window you're talking about?
MSG is offline   Reply With Quote
Old 22nd April 2010, 12:58   #9
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
Hi,
sorry in the moment I cannot upload an sceenshot to an url.
hawkmaster is offline   Reply With Quote
Old 22nd April 2010, 13:16   #10
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Add it as an attachment.

Stu
Afrow UK is offline   Reply With Quote
Old 22nd April 2010, 13:36   #11
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
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?
Attached Thumbnails
Click image for larger version

Name:	details.gif
Views:	213
Size:	34.1 KB
ID:	46815  
hawkmaster is offline   Reply With Quote
Old 22nd April 2010, 13:44   #12
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
What you have in that screenshot is the default behaviour! Do not use ShowInstDetails or SetDetailsView.

Stu
Afrow UK is offline   Reply With Quote
Old 22nd April 2010, 14:51   #13
hawkmaster
Junior Member
 
Join Date: Aug 2005
Posts: 36
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
hawkmaster is offline   Reply With Quote
Old 22nd April 2010, 15:19   #14
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 8th April 2011, 16:25   #15
Smurge
Junior Member
 
Join Date: Apr 2008
Posts: 21
thank you! this info helped me too.

the code that do the trick was:
code:
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
Smurge is offline   Reply With Quote
Old 8th April 2011, 18:15   #16
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 8th April 2011, 19:32   #17
Smurge
Junior Member
 
Join Date: Apr 2008
Posts: 21
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
Smurge is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump