Old 29th March 2003, 19:49   #1
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
Lightbulb /NOCUSTOM and /COMPONENTSONLYONCUSTOM combination

This is a feature request, open for discussion:

I recall that KiCHiK said that a combination of /COMPONENTSONLYONCUSTOM and /NOCUSTOM is not possible. But it would be nice if it would be possible, so that the user can ONLY select an installation type. No custom component-box shown, no 'Custom' option in the installation types list.

That brings up another suggestion or feature request or whatever.
When one creates a custom IO page with, for example, three radiobuttons: 'Full installation', 'Medium installation' and 'Minimum installation', that the script can set the selected installation type by himself, instead op setting it trough the combobox at the top of the component selection page.

B.t.w. Some month ago, when I tested the /NOCUSTOM and /COMPONENTSONLYONCUSTOM combination, it seemed to work, but only in that specific order. When I used /COMPONENTSONLYONCUSTOM first, it didn't work. I ask KiCHiK if this was a bug, and he said that is isn't: it is just not possible. Then I recreated that script that was supposed to do it, and it didn't work. I tought: My mistake, I didn't pay enough attention.
Now that I try it again, it works again! Attached is the *MODIFIED* makensis.nsi script on which I tested it.

My apologies for the long post. I hope that everyone can understand what I'm writing. If it is nonsence to someone, please tell me .

- Daniël

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 29th March 2003, 19:51   #2
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
Oops !
I forgot the attachment! Here it is!

Especially look at this following block. No other changes where made.
PHP Code:
InstType "Full (w/ Source and Contrib)"
InstType "Normal (w/ Contrib, w/o Source)"
InstType "Lite (w/o Source or Contrib)"
InstType /NOCUSTOM
InstType 
/COMPONENTSONLYONCUSTOM 
Attached Files
File Type: nsi makensis.nsi (31.5 KB, 354 views)

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 29th March 2003, 19:56   #3
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
http://forums.winamp.com/showthread....ht=%2FNOCUSTOM

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
Old 29th March 2003, 20:00   #4
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
I completely missed that last post. Okay.

But what about the second request?

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 29th March 2003, 20:03   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
I don't see the problem there. You want to create three radio buttons and select one. Where's the problem?

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
Old 29th March 2003, 20:09   #6
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
No. I want to create some radio buttons, then let the user select one. Then the script sets the selected sections according to the selected radiobutton. But instead of writing lines and lines of Section selection and deselection code, I'd like to see a script instruction that sets the selected InstType, which sets the right sections.

I hope I'm clear now. In my first post, I wrote: "I hope that everyone can understand what I'm writing. If it is nonsense to someone, please tell me ." And it seems that I AM writing nonsense!

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink is offline   Reply With Quote
Old 29th March 2003, 20:11   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Add a feature request at SF project page.

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
Old 29th March 2003, 20:13   #8
virtlink
Major Dude
 
virtlink's Avatar
 
Join Date: Sep 2002
Location: At [4C69:6E6B]
Posts: 561
I will. Thanks for understanding me!

"I'll quote you when you say something memorable."
- Claudia Pelsmaeker
virtlink 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