Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 24th April 2008, 15:11   #1
SueVB
Junior Member
 
Join Date: Apr 2008
Location: Germany, Hessen
Posts: 4
Unhappy Problem with skipping custom pages and text of the Next/Install button

Hi @ all,

I was not able to find a solution for my problem within tutorials, examples etc., now I hope someone can help me.

These are my installer pages:

!insertmacro MUI_PAGE_WELCOME
Page custom CustomPageVersion CustomLeaveVersion
!insertmacro MUI_PAGE_COMPONENTS
Page custom CustomPageTM CustomLeaveTM
Page custom CustomPageServer CustomLeaveServer
Page custom CustomPageWF CustomLeaveWF
Page custom CustomPageDB CustomLeaveDB
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH

Based on user's selection the pages CustonPageWF and CustomPageDB are shown or skipped. Every time they are skipped there is no INSTALL button on the last shown custom page (CustomPageServer). Instead the text of the button stays "Next". Showing all pages the button's text on the last custom page shows correctly "Install".

Does anybody know, how the button text is set? How does NSIS know that CustomPageDB is the last one before MUI_PAGE_INSTFILES? Am I able to control this from my script?

Thank's in advance.

Sue
SueVB is offline   Reply With Quote
Old 24th April 2008, 18:14   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
NSIS doesn't know what you skip or don't skip and the button texts are set automatically in build time. You can manually set the buttons using GetDlgItem and SendMessage.
code:
GetDlgItem $0 $HWNDPARENT 1
SendMessage $0 ${WM_SETTEXT} 0 "STR:$(^InstallBtn)"


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 24th April 2008, 19:02   #3
SueVB
Junior Member
 
Join Date: Apr 2008
Location: Germany, Hessen
Posts: 4
Thank you - that's exactly what I was looking for!

Btw: Is there a list of the IDs for the other standard controls?

Sue
SueVB is offline   Reply With Quote
Old 24th April 2008, 19:12   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
See Contrib\Language files\English.nlf for other standard language strings.

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 24th April 2008, 19:31   #5
SueVB
Junior Member
 
Join Date: Apr 2008
Location: Germany, Hessen
Posts: 4
Thanks again, that file is very helpful and more than I asked for.

But...if I remember rightly not long ago I found a tutorial or a posting where someone listed all the IDs (HWNDs) of the standard controls. He argued that these controls have static IDs. Unfortunately I did not save the link.

Sue
SueVB is offline   Reply With Quote
Old 24th April 2008, 19:37   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
http://nsis.svn.sourceforge.net/view....h?view=markup

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 24th April 2008, 21:52   #7
SueVB
Junior Member
 
Join Date: Apr 2008
Location: Germany, Hessen
Posts: 4
Thank's a lot for your help!
Hope I can pay back one time.

Sue
SueVB 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