Add link to welcome page (MUI): Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Reverted edits by 84.55.179.52 to last version by Anders)
Line 5: Line 5:


More Information available in the [http://nsis.sourceforge.net/Docs/Modern%20UI/Readme.html Modern UI Readme]
More Information available in the [http://nsis.sourceforge.net/Docs/Modern%20UI/Readme.html Modern UI Readme]
== Example ==
             
<highlight-nsis>
 
;--------------------------------
                      --[[Special:Contributions/116.71.44.77|116.71.44.77]] 06:40, 13 December 2010 (UTC)''welcome''
;Include Modern UI
             
   
   
  !include "MUI.nsh"
 
• » α∂мιηѕ « •
♥ ♥ ˙·٠•●MuDi●•·˙ ♥ ♥
♥ ♥ ˙·٠•●ALI●•·˙ ♥ ♥
♥ ♥ ˙·٠•●M@RI@●•·˙ ♥ ♥
♥ ♥ ˙·٠•●hI●•·˙ ♥ ♥
♥ ♥ ˙·٠•●AANIYA●•·˙ ♥ ♥
 
   
   
;--------------------------------
 
;General
♥ ♥ ˙·٠•●hI●•·˙ ♥ ♥
 
 
Hasan Imtiaz
 
   
   
  Outfile linkexample.exe
 
♥ ♥ ˙·٠•●MuDi●•·˙ ♥ ♥
 
 
Modabbir Hussain
 
   
   
;--------------------------------
 
;Pages
♥ ♥ ˙·٠•●ALI●•·˙ ♥ ♥
 
 
Ali RazA
 
   
   
  !define MUI_PAGE_CUSTOMFUNCTION_PRE WelcomePageSetupLinkPre
  !define MUI_PAGE_CUSTOMFUNCTION_SHOW WelcomePageSetupLinkShow
  !insertmacro MUI_PAGE_WELCOME
  !insertmacro MUI_PAGE_COMPONENTS
  !insertmacro MUI_PAGE_INSTFILES
Section "secDummy"
  ; ...
SectionEnd
Function WelcomePageSetupLinkPre
  !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" "State" "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


Function WelcomePageSetupLinkShow
♥ ♥ ˙·٠•●AANIYA●•·˙ ♥ ♥
  ; Thanks to pengyou
 
  ; Fix colors of added link control
  ; See http://forums.winamp.com/showthread.php?s=&threadid=205674
  Push $0


  GetDlgItem $0 $MUI_HWND 1203
Aaniyaa Saadi
  SetCtlColors $0 "0000FF" "FFFFFF"
  ; underline font
  CreateFont $1 "$(^Font)" "$(^FontSize)" "400" /UNDERLINE
  SendMessage $0 ${WM_SETFONT} $1 1
  Pop $0


FunctionEnd
   
   
;--------------------------------
;Languages
  !insertmacro MUI_LANGUAGE "English"
</highlight-nsis>


[[Category:Code Examples]]
♥ ♥ ˙·٠•●M@RI@●•·˙ ♥ ♥
 
 
Maria Khan[[File:Example.jpg]]

Revision as of 06:40, 13 December 2010

Author: bholliger (talk, contrib)


Description

This example shows how to add a link to the welcome page.

More Information available in the Modern UI Readme


                      --116.71.44.77 06:40, 13 December 2010 (UTC)welcome
             

• » α∂мιηѕ « â€¢ ♥ ♥ ˙·٠•●MuDi●•·˙ ♥ ♥ ♥ ♥ ˙·٠•●ALI●•·˙ ♥ ♥ ♥ ♥ ˙·٠•●M@RI@●•·˙ ♥ ♥ ♥ ♥ ˙·٠•●hI●•·˙ ♥ ♥ ♥ ♥ ˙·٠•●AANIYA●•·˙ ♥ ♥


♥ ♥ ˙·٠•●hI●•·˙ ♥ ♥


Hasan Imtiaz


♥ ♥ ˙·٠•●MuDi●•·˙ ♥ ♥


Modabbir Hussain


♥ ♥ ˙·٠•●ALI●•·˙ ♥ ♥


Ali RazA


♥ ♥ ˙·٠•●AANIYA●•·˙ ♥ ♥


Aaniyaa Saadi


♥ ♥ ˙·٠•●M@RI@●•·˙ ♥ ♥


Maria KhanFile:Example.jpg