Old 24th May 2013, 13:20   #1
miraz.zaidi
Junior Member
 
Join Date: Feb 2013
Posts: 43
Linker Plugin Issue

I want to create a link on License page. So I am creating a control and adding link using linker plugin. Everything is working fine, till I try to make the link control transparent.
In that case the installer just crashes.
I think its a bug in the Linker plugin. Has it been there already ?
Is there any fix/patch for it?

code:

Function LicPage_Show
FindWindow $R0 "#32770" "" $HWNDPARENT
System::Call 'User32::CreateWindowEx(i 0, t "STATIC", t "Visit NSIS homepage", i ${WS_CHILD}|${WS_VISIBLE}, i 165, i 205, i 100, i 20, i R0, i 666, i 0, i 0) i.R1'
CreateFont $1 $(^Font) $(^FontSize) "400"
SendMessage $R1 ${WM_SETFONT} $1 0
linker::link /NOUNLOAD $R1 "http://nsis.sourceforge.net"
SetCtlColors $R1 0xFFFFFF transparent
FunctionEnd

miraz.zaidi is offline   Reply With Quote
Old 27th May 2013, 05:34   #2
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 554
Send a message via ICQ to T.Slappy
No, at this moment there is no fix for it but you can easily modify Linker's sources.

P.S.: Do not use CreateWindowEx in your script, rather use ResHacker it is much safer.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Old 27th May 2013, 08:00   #3
miraz.zaidi
Junior Member
 
Join Date: Feb 2013
Posts: 43
Yeah. I have modified the Linker's source and now I am doing the transparent part before Linker and everything is working fine now.

BTW, what are the risks of using CreateWindowEx ?
I think its much convenient to use than carrying an extra MUI exe everywhere. No ?
miraz.zaidi is offline   Reply With Quote
Old 13th August 2013, 09:51   #4
T.Slappy
Major Dude
 
T.Slappy's Avatar
 
Join Date: Jan 2006
Location: Slovakia
Posts: 554
Send a message via ICQ to T.Slappy
Quote:
Originally Posted by miraz.zaidi View Post
Yeah. I have modified the Linker's source and now I am doing the transparent part before Linker and everything is working fine now.
As I did not find your (modified) version i uploaded my own (Linker 1.2) to wiki: http://nsis.sourceforge.net/Linker_plug-in where is the transparency problem fixed.

Cool looking installers with custom design: www.graphical-installer.com
Create Setup Pages easily: www.install-designer.com
Build installers in Visual Studio 2005-2019: www.visual-installer.com
or RAD Studio 2009, 2010, XE-10.4 Sydney: www.rad-installer.com
T.Slappy is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
link, linker plugin, nsis

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