简体   繁体   English

使用NUI的MUI2时,如何更改组件页面上标签上的文本?

[英]How can change a text on a label in COMPONENTS PAGE when using MUI2 for NSIS?

I want to add a link somewhere on the components page. 我想在组件页面的某处添加一个链接。 I tried the method presented here , while it is indeed working for the WELCOME PAGE, it causes the installer to crash when I'm adding it to the components page. 我尝试了此处介绍的方法,尽管该方法确实适用于“欢迎页面”,但是当我将其添加到组件页面时,它会导致安装程序崩溃。

The thing I want to add is a text that contains an underlined blue word which opens a url on the default browser when clicked on. 我要添加的内容是一个包含带下划线的蓝色字词的文本,单击该文本时会在默认浏览器上打开一个网址。 I want to add it to the existing components page. 我想将其添加到现有组件页面。

Thanks, 谢谢,

J Ĵ

I solved it using some help from the nsis forum the relevant links are: 我使用nsis论坛的一些帮助解决了该问题,相关链接为:

Add Link to Components Page and How to customize an existing MUI2 page (components) 将链接添加到组件页面以及如何自定义现有MUI2页面(组件)

The main issue is that in contrast to welcome/finish page, the components page is not a nsDialog page. 主要问题是,与“欢迎/完成”页面相比,“组件”页面不是nsDialog页面。 In order to dynamically add a label we have to use User32::CreateWindowEx. 为了动态添加标签,我们必须使用User32 :: CreateWindowEx。 I used the resource hacker to add a static label in order to get its position and use that as a guide for the new label I added (It's all explained in the links...) 我使用资源黑客添加了一个静态标签,以便获得其位置,并将其用作我添加的新标签的指南(所有这些都在链接中进行了说明...)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM