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

前提是你 提交于 2019-12-12 04:42:47

问题


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


回答1:


I solved it using some help from the nsis forum the relevant links are:

Add Link to Components Page and How to customize an existing MUI2 page (components)

The main issue is that in contrast to welcome/finish page, the components page is not a nsDialog page. In order to dynamically add a label we have to use 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...)



来源:https://stackoverflow.com/questions/7706477/how-can-change-a-text-on-a-label-in-components-page-when-using-mui2-for-nsis

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!