Skip to content
⌘ NSIS Forum Archive

swap icon/checkboxes on runtime?

4 posts

Yathosho#

swap icon/checkboxes on runtime?

this might seem like an odd question, but i was wondering if it was possible to swap the (displayed) icon and/or the checkboxes of an installer at runtime. i know it's possible for the license.
Anders#
the icon should be easy enough, call LoadImage with the system plugin and a simple window message to set it, it has probably already been done, search the forum/wiki for LoadImage

As far as checkboxes go, they are loaded into a imagelist IIRC, so you can just use the imagelist api with the system plugin
Yathosho#
i found this, but this only works with a second icon resource. i'm a bit clueless how to use this with full/path/to/icon.ico
Anders#
LoadImage has a flag that tells it to load from a file (nsdialog.nsh might have code that does it, you could look there, or learn win32 🙂 )