Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 17th November 2011, 12:25   #1
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 24
Using CreateControl method with MUI2

Hello,

I am creating an installer using MUI2 pages. My installer has 4 pages:

1. Welcome page
2. User options page (Custom page)
3. Directory page
4. Install files page.

My question is regarding the second custom page. In the custom page I have to create controls like radio button, drop list, check box etc. I tried building them using the {NSD_CreateRadioButton}, ${NSD_CreateDropList} and ${NSD_CreateCheckBox}. When I compile the script it gives error saying "Invalid Command" for all the above mentioned {NSD_Create*}.

Why MUI2 custom page does not support the {NSD_Create*} commands as it is built using nsDialogs?

Later I tried using nsDialogs::CreateControl to create my own controls but for except STATIC labels and EDIT control, I am not able to get the above mentioned controls to display on my custom window. I googled and searched the forum for Create control examples but did not find many except for STATIC and EDIT controls.

Can anyone please let me know how to use CreateControl method to create a radio button, drop list and check box.

Thanks in advance !!
prakashjv is offline   Reply With Quote
Old 17th November 2011, 13:32   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
Post some code. There is no reason for the error unless you have not typed them correctly.

Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK is offline   Reply With Quote
Old 18th November 2011, 10:29   #3
prakashjv
Junior Member
 
Join Date: Oct 2011
Posts: 24
It was my mistake. As I was updating my script, I did not notice that header file is not pointing to MUI2. That was the reason for me to ge the invalid command error. Now it is working for me.

Thanks for the reply!!
prakashjv is offline   Reply With Quote
Reply
Go Back   Winamp 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