Skip to content
⌘ NSIS Forum Archive

Icon and text on custom dialogs

2 posts

lightning19#

Icon and text on custom dialogs

On the "built-in" dialogs of the installer (license, directory), it displays the small image of the icon file and has a text field at the top (set via LicenseText and DirText).

Is there a way to get this same icon and text on the top of a custom dialog screen?
Anders#
The label is just a normal label.

nsDialogs provides a helper macro that lets you load the icon:

!include nsDialogs.nsh
${NSD_SetIconFromInstaller} $myiconcontrolhandle $theimagehandle