NSIS:在标签中插入链接 [英] NSIS : Inserting links in label

查看:71
本文介绍了NSIS:在标签中插入链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有以下 nsDialog 标签:

Suppose I have following nsDialog label:

点击接受即表示我同意示例的许可协议和隐私政策.您可以访问需要使用个人信息的功能.如需了解更多信息,请下载示例的内容政策.

By clicking Accept I agree to the Example's License Agreement and Privacy Policy. You may access features that requires use of personal information. For more information, please download Example's Content Policy.

我想在这个标签中插入链接,如下所示:

I want to insert the links in this label like below:

点击接受即表示我同意示例的许可协议隐私政策.您可以访问需要使用个人信息的功能.如需更多信息,请下载示例的内容政策.*

By clicking Accept I agree to the Example's License Agreement and Privacy Policy. You may access features that requires use of personal information. For more information, please download Example's Content Policy.*

我可以使用 NSD_CreateLink 创建链接,但我不知道如何按照上述方法制作.

I am able to create links with NSD_CreateLink but I dont know how to make it as above.

推荐答案

像这样用 ${NSD_CreateLabel} 创建多个标签('|' 是分隔符):

Create several labels with ${NSD_CreateLabel} like this ( '|' is separator ):

              Label1             |    Label2     |Label3| Label4  |  Label5...

通过单击接受,我同意示例的 |许可协议 |和|隐私政策 |您可以访问...

By clicking Accept I agree to the Example's | License Agreement | and | Privacy Policy | You may access...

因此,您的文本将由几个单独的标签组成,这些标签一一放置以创建文本.

So your text will be composed from several separate labels placed one by one to create your text.

然后只需使用链接器插件(http://nsis.sourceforge.net/Linker_plug-in - 几天前我更新了它以支持透明文本)与那些应该是链接的标签:

Then simply use Linker plug-in (http://nsis.sourceforge.net/Linker_plug-in - few days ago I updated it to support transparent texts) with those labels which should be links:

Linker::link /NOUNLOAD $Label2Hwnd "http://www.unsigned-softworks.sk/"
Linker::link /NOUNLOAD $Label4Hwnd "http://www.graphical-installer.com/"

这篇关于NSIS:在标签中插入链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆