Skip to content
⌘ NSIS Forum Archive

BrandingURL doesn't show on Welcome/Finish pages

8 posts

larrykluger#

BrandingURL doesn't show on Welcome/Finish pages

Hello,

The BrandingURL plugin

looks great on the Directory and other intermediate pages.

But it doesn't show on my Welcome or Finish pages.

Any tips?

Thanks,

Larry
bholliger#
Hi larrykluger!

This behaviour is by design. There is no branding label on the welcome and the finish page.

I suggest using

MUI_FINISHPAGE_LINK link_text
Text for a link on the which the user can click to view a website or file.

MUI_FINISHPAGE_LINK_LOCATION file/url
Website or file which the user can select to view using the link. You don't need to put quotes around the filename when it contains spaces.

to show an additional link on the finish page.

Have a nice day.

Cheers

Bruno
larrykluger#
Thanks Bruno,

Any tip for the Welcome page? That's where I really need it (To send the novice user to the right web page for additional information.)

Or do you know the steps for adding a new field of type 'link' to the Welcome page (MUI)?

I will try to dope it out.

Thanks and regards,

Larry
bholliger#edited
Hi larrykluger!

Yes, of course. You can do this by edit the ioSpecial.ini-file in the PRE function.


;--------------------------------
;Pages

!define MUI_PAGE_CUSTOMFUNCTION_PRE WelcomePageSetupLink
!insertmacro MUI_PAGE_WELCOME
:
:

Function WelcomePageSetupLink
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Settings" "Numfields" "4" ; increase counter
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 3" "Bottom" "122" ; limit size of the upper label
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Type" "Link"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "http://www.google.ch/"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Left" "120"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Right" "315"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Top" "123"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Bottom" "132"
FunctionEnd


Hope this works for you!

Have a nice day!

Cheers

Bruno
larrykluger#
Thank you very much Bruno,

I have done further work on this and have learned:


... in the 'pre' function
; specify different link text and url values:
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "Text" "${MY_URL_TEXT}"
!insertmacro MUI_INSTALLOPTIONS_WRITE "ioSpecial.ini" "Field 4" "State" "${MY_URL}"
;
... end of the 'pre' function


; Need to fix the background color of the new link control--
; this is done in a 'show' function
Function on_welcome_pg_show
; Thanks to pengyou
; Fix colors of added link control
; See http://forums.winamp.com/showthread....hreadid=205674
Push $0

GetDlgItem $0 $MUI_HWND 1203
SetCtlColors $0 "0000FF" "FFFFFF"

Pop $0
FunctionEnd
Regards from rainy NYC,

Larry
larrykluger#
Underline the url text?

Hi,

A question remains:

How to cause the text of a link control to be underlined?
Using an ampersand causes, at most, one character to be underlined. (For use with Alt key.)

A related question, getting the text set with MUI_FINISHPAGE_LINK to also be underlined.

Thanks for any ideas,

Larry
bholliger#
Hi Larry!

This will help you:

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


I added your and the underline code to the wiki page as well:


Have a nice day!

Cheers

Bruno