Old 15th March 2005, 06:26   #1
deroel
Junior Member
 
Join Date: Mar 2005
Posts: 14
Change setting in finish page

I have this code

!define MUI_WELCOMEFINISHPAGE_CUSTOMFUNCTION_INIT CheckValues

!insertmacro MUI_PAGE_FINISH

Inside checkvalues function I have these next lines:

!define MUI_FINISHPAGE_SHOWREADME ""
!define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Here is the text"

So, I want to add checkbox and its text if the user select specific values, but define intruction doesn't work.

How can i do it?

Thanks...
deroel is offline   Reply With Quote
Old 15th March 2005, 16:10   #2
scully13
Senior Member
 
Join Date: Apr 2004
Posts: 130
I don't believe those settings will work from within the function. The function wouldn't be executed until run time. You need them read in during the compile. Move those 3 defines up above the !insertmacro MUI_PAGE_FINISH and then you can remove the INIT define and CheckValues function completely if it doesn't do anything else.
scully13 is offline   Reply With Quote
Old 15th March 2005, 16:14   #3
deroel
Junior Member
 
Join Date: Mar 2005
Posts: 14
But i want to change that settings in run time, so i cannot do it.

How can i change the settings for finish page at run time?

Thanks for the reply
deroel is offline   Reply With Quote
Old 15th March 2005, 17:20   #4
scully13
Senior Member
 
Join Date: Apr 2004
Posts: 130
What exactly do you want to change? The text, which readme to show or possibly not show anything in certain cases?
scully13 is offline   Reply With Quote
Old 15th March 2005, 17:33   #5
deroel
Junior Member
 
Join Date: Mar 2005
Posts: 14
By default nothung, then in certain cases, add the checkbox with the text.
deroel is offline   Reply With Quote
Old 15th March 2005, 17:49   #6
scully13
Senior Member
 
Join Date: Apr 2004
Posts: 130
I put together an example for you using the Basic.nsi example script. You will need to change some things around but it will give you the idea. You'll also need to use $2 or another variable that will get set at some point so that it knows if it show show or hide. You could also change the text that shows if you modify the INI file from that function.
Attached Files
File Type: nsi showreadme.nsi (2.5 KB, 137 views)
scully13 is offline   Reply With Quote
Old 15th March 2005, 19:42   #7
Picman
Junior Member
 
Join Date: Mar 2005
Posts: 1
Can you let us know how to change the text in the final page readme checkbox via the "ini"?
Picman is offline   Reply With Quote
Old 15th March 2005, 20:01   #8
scully13
Senior Member
 
Join Date: Apr 2004
Posts: 130
Sure, after checking the documentation I found out that I really needed to add a PRE function to change the text. Here's the same example with the text change added.
Attached Files
File Type: nsi showreadme.nsi (2.8 KB, 149 views)
scully13 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