How can change a text on a label in COMPONENTS PAG

2019-09-05 04:19发布

问题:

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...)