Old 19th August 2009, 19:27   #1
kniffte
Junior Member
 
Join Date: Jul 2009
Posts: 5
!define MUI_FINISHPAGE_RUN at run-time

Hello,

my installer incorporates a number of different options (nothing new, I guess...). As a result, in some cases MUI_FINISHPAGE_RUN is to be set, in some cases it isn't. This decision is to be made at run-time (there is no way to do this at compile-time).

- I tried to set MUI_FINISHPAGE_RUN = "", but this only leads to an empty command; the button is displayed anyway.
- I also tried to !undef MUI_FINISHPAGE_RUN, but that is not conditional to run-time result either.

Is there another way to do so?

Thanks in advance,

kniffte
kniffte is offline   Reply With Quote
Old 19th August 2009, 19:36   #2
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
http://forums.winamp.com/showthread....hreadid=289964
jpderuiter is offline   Reply With Quote
Old 20th August 2009, 15:44   #3
kniffte
Junior Member
 
Join Date: Jul 2009
Posts: 5
Hello jpderuiter,

Actually, http://forums.winamp.com/showthread...threadid=302774 helped me more ... but thank you anyway.



Bye,

kniffte

PS: I tried now 5 times to insert the address in a readable format, but the forum seems not to support that. The link refers to this forum's thread # 302774.
kniffte is offline   Reply With Quote
Old 20th August 2009, 17:45   #4
jpderuiter
Major Dude
 
Join Date: Feb 2007
Posts: 672
Quote:
Originally posted by kniffte
Hello jpderuiter,

Actually, http://forums.winamp.com/showthread...threadid=302774 helped me more ... but thank you anyway.



Bye,

kniffte

PS: I tried now 5 times to insert the address in a readable format, but the forum seems not to support that. The link refers to this forum's thread # 302774.
OK, it was the first topic I found that appeared to be usefull.
But you got the point anyway.

About the link:
To prevent SPAM links will only be visible from users with a certain amount of posts.
Other users still can see the link you provided by clicking the "Quote" button.
To prevent an URL being converted to a link you can also unselect "Automatically parse URLs" when you submit a post.
jpderuiter is offline   Reply With Quote
Old 21st August 2009, 09:35   #5
kniffte
Junior Member
 
Join Date: Jul 2009
Posts: 5
uuuuha.

Thanks for the hint ... I'll try that next time.

Have a good time.

kniffte
kniffte is offline   Reply With Quote
Old 24th August 2009, 21:33   #6
CrushBug
Senior Member
 
Join Date: May 2005
Posts: 119
Re: !define MUI_FINISHPAGE_RUN at run-time

Quote:
Originally posted by kniffte
Hello,

my installer incorporates a number of different options (nothing new, I guess...). As a result, in some cases MUI_FINISHPAGE_RUN is to be set, in some cases it isn't. This decision is to be made at run-time (there is no way to do this at compile-time).

- I tried to set MUI_FINISHPAGE_RUN = "", but this only leads to an empty command; the button is displayed anyway.
- I also tried to !undef MUI_FINISHPAGE_RUN, but that is not conditional to run-time result either.

Is there another way to do so?

Thanks in advance,

kniffte
I just ran into this exact situation last week. I am using MUI2, so I was able to do this.

I did this for my finish page:

PHP Code:
!define MUI_FINISHPAGE_RUN "$FinishEXE"
!define MUI_PAGE_CUSTOMFUNCTION_SHOW ShowFunction_Finish
!insertmacro MUI_PAGE_FINISH 
$FinishEXE is the variable that holds the full path to the executable I want to run off of the Finish page. If it is a quit or an abort, I set $FinishEXE to "".

The MUI_PAGE_CUSTOMFUNCTION_SHOW in this case is after the dialog items are rendered.

PHP Code:
Function ShowFunction_Finish

    
${If} $FinishEXE == ""
        
;no valuethus uncheck and hide the run checkbox
        
${NSD_Uncheck$mui.FinishPage.Run
        ShowWindow $mui
.FinishPage.Run ${SW_HIDE}
    ${EndIf}

FunctionEnd ;ShowFunction_Finish 
I hope that helps.
CrushBug 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