link support
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5345 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
917820dc29
commit
c7c7bec9ec
1 changed files with 25 additions and 1 deletions
|
@ -364,7 +364,7 @@ Header file for creating custom installer pages with nsDialogs
|
|||
!insertmacro __NSD_ControlCase Label
|
||||
!insertmacro __NSD_ControlCase Icon
|
||||
!insertmacro __NSD_ControlCase Bitmap
|
||||
!insertmacro __NSD_ControlCase Link
|
||||
!insertmacro __NSD_ControlCaseEx Link
|
||||
!insertmacro __NSD_ControlCase Button
|
||||
!insertmacro __NSD_ControlCase GroupBox
|
||||
!insertmacro __NSD_ControlCase CheckBox
|
||||
|
@ -484,5 +484,29 @@ Header file for creating custom installer pages with nsDialogs
|
|||
${EndIf}
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function ${UNINSTALLER_FUNCPREFIX}Link
|
||||
|
||||
${NSD_CreateLink} $R3u $R4u $R5u $R6u $R7
|
||||
Pop $R9
|
||||
|
||||
nsDialogs::SetUserData /NOUNLOAD $R9 $R1 # remember field id
|
||||
|
||||
${NSD_OnClick} $R9 ${UNINSTALLER_FUNCPREFIX}OnLink
|
||||
|
||||
FunctionEnd
|
||||
|
||||
Function ${UNINSTALLER_FUNCPREFIX}OnLink
|
||||
|
||||
Pop $R0
|
||||
|
||||
nsDialogs::GetUserData /NOUNLOAD $R0
|
||||
Pop $R1
|
||||
|
||||
ReadINIStr $R1 $0 "Field $R1" STATE
|
||||
|
||||
ExecShell "" $R1
|
||||
|
||||
FunctionEnd
|
||||
|
||||
!macroend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue