WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > MUI Finish page - how to show 'show readme' and 'reboot' at the same time
  Last Thread   Next Thread
Author
Thread Post New Thread    Post A Reply
justme123
Junior Member

Registered: Jul 2009
From:

MUI Finish page - how to show 'show readme' and 'reboot' at the same time

Hi,

i'm creating an installer that requires a reboot and i want to add a checkbox to the finish page that allows to create a shortcut.

In the main section there is "SetRebootFlag true" and the finish page is created with

code:
!define MUI_FINISHPAGE_SHOWREADME !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED !define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut" !define MUI_FINISHPAGE_SHOWREADME_FUNCTION createDesktopShortcut !define MUI_FINISHPAGE_REBOOTLATER_DEFAULT !insertmacro MUI_PAGE_FINISH


But the finish page only displays the reboot radiogroup.

If i disable reboot support with '!define MUI_FINISHPAGE_NOREBOOTSUPPORT', it shows the checkbox.

I checked Contrib\Modern UI 2\Pages\Finish.nsh and it looks like the calculations for positioning the reboot radiogroup doesn't take the option checkboxes (readme / run) into account.
Is there any way to reorganize the boxes without changing Finish.nsh?

regards,
justme123

Quick Link | Report this post to a moderator | IP: Logged

justme123 is offline Old Post 10-12-2009 11:31 AM
Click Here to See the Profile for justme123 Click here to Send justme123 a Private Message Find more posts by justme123 Add justme123 to your buddy list Edit/Delete Message Reply w/Quote
jpderuiter
Senior Member

Registered: Feb 2007
From:

This post should get you started:
http://forums.winamp.com/showthread...threadid=264181

Quick Link | Report this post to a moderator | IP: Logged

jpderuiter is offline Old Post 10-12-2009 02:13 PM
Click Here to See the Profile for jpderuiter Click here to Send jpderuiter a Private Message Find more posts by jpderuiter Add jpderuiter to your buddy list Edit/Delete Message Reply w/Quote
justme123
Junior Member

Registered: Jul 2009
From:

Thanks for the pointer to that Thread. Reads like it's what i need.

Unfortunatly it doesn't seem to do the trick with MUI2's finish page and reboot.

Maybe i'm using the wrong fieldindex?
I assume there are 5 fields in a finish page (image, header,text,rebootnow,rebootlater) so using field 6 as in that example should work, but it does not :/

As a workaround, i've created a new custom page with a checkbox for the shortcut. Overkill for a single checkbox, but it looks like there are more to come anyways.

ps. i know about sections/components, but the components page layout is a bit cluttered. If anyone knows how to strip it down to just a list of checkboxes (no description pane that eats half the horizontal space, no additional border) i'd be happy to use that.

Quick Link | Report this post to a moderator | IP: Logged

justme123 is offline Old Post 10-12-2009 03:57 PM
Click Here to See the Profile for justme123 Click here to Send justme123 a Private Message Find more posts by justme123 Add justme123 to your buddy list Edit/Delete Message Reply w/Quote
All times are GMT. The time now is 09:39 PM. Post New Thread    Post A Reply
  Last Thread   Next Thread
WINAMP.COM | Forums : Powered by vBulletin version 2.3.9 WINAMP.COM | Forums > Developer Center > NSIS Discussion > MUI Finish page - how to show 'show readme' and 'reboot' at the same time
Show Printable Version
 | 
Email this Page
 | 
Subscribe to this Thread

Forum Jump:
 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is off
vB code is ON
Smilies are ON
[IMG] code is ON