Old 13th September 2007, 00:17   #1
onu
Junior Member
 
Join Date: Sep 2007
Posts: 1
nsDialogs - Beautiful, but difficult for new NSIS user

I'm new to the entire NSIS system. Actually, this has been my first experience in stack programming, amongst other firsts. I've dealt with most of my issues and would like to thank all who have contributed to this project. I've been able to get all the functionality I've wanted out of NSIS after just a couple days use.

However, now I'm trying to make my installer smarter, and prettier. nsDialogs has been the easiest (for me) to understand when it comes to making things happen. I have an easy time creating dialogs, controls, and responding to user/system input. It really has been great.

However, being completely new to NSIS altogether, I appear to be missing pieces of the puzzle that experienced users are taking for granted.

For example I'm simply trying to create an Icon with NSD_CreateIcon. So to create the control I know I must specify the following:
PHP Code:
${NSD_CreateIconxywidthheighttext 
However, I can't figure out how to associate an icon with that control so I can actually see something.

Now I realize that nsDialogs was released very recently and documentation and examples are sparse. Yet, more experienced users seem to be able to infer a lot of previous knowledge into its usage, and I don't have that luxury. So I was wondering if someone could point me in the direction of the material I'm missing.

Telling me how to create my icon would help a little, but directing me to the knowledge base on which one would discover this for themselves would help a lot.

Thank You.
onu is offline   Reply With Quote
Old 13th September 2007, 07:35   #2
CancerFace
Senior Member
 
Join Date: Apr 2006
Posts: 289
Send a message via ICQ to CancerFace
Although not nsDialogs related, there is this wiki page which might help a bit with adding extra icons to your installer.

The principle for showing them on an nsDialogs page would be the same: load the icon, get a handle on the control and display the icon.
CF
CancerFace is offline   Reply With Quote
Old 14th September 2007, 17:56   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Examples\nsDialogs\welcome.nsi shows you how to load an image and set it to a control. You can take that code and replace IMAGE_BITMAP with IMAGE_ICON. In the future there'd be a simple macro that does this. While nsDialogs allows you to tinker at Win32 API level with everything, it still provides a set of macros that allow non-win32-devs to easily use it. It's not complete yet and will probably never be as it should just keep growing.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump