Skip to content
⌘ NSIS Forum Archive

I want this in my installer

21 posts

VegetaSan#

I want this in my installer

I want this in my installer

ö = selected
o = not selected

I want this

ö Media Player Classic
.....o Set Ogm
.....o Set Mkv

In other words how do I set the Subsection selected and all the sections inside it not selected ???

Thanks, VegetaSan
KirillKr#

SubSection "MPC"
Section ""
; default
SectionEnd
Section /o "Set Ogm"

SectionEnd
Section /o "Set Mkv"

SectionEnd
SubSectionEnd
Or I don't right?
VegetaSan#
Nope it display this.....

____________________
ö = selected
o = not selected
____________________


o MPC
....o Set Ogm
....o Set Mkv

And I want this......

ö Media Player Classic
....o Set Ogm
....o Set Mkv
Joost Verburg#
You don't seem to get the whole idea of a tree. If none of the sections of the MPC category is selected MPC itself won't be selected too.
KirillKr#
Originally posted by Joost Verburg
What doesn't work? That code is totally correct.
Yes, code correct but this trully not work
KirillKr#
Originally posted by Joost Verburg
You should put it in one of the sections. A SubSection is only a group of sections.
How? Can you write example code?
Joost Verburg#
A SubSection is a group of sections. You should put the code in one of the sections inside the SubSection.
KirillKr#
Originally posted by Joost Verburg
A SubSection is a group of sections. You should put the code in one of the sections inside the SubSection.
Sorry, but I don't understand how I made this, which author's topic drowing his question.
VegetaSan#
Look I allread have it :

SubSection "MPC"
Section

Setoutpath $SYSDIR
File /a "D:\MPC\mplayercXP.exe"
SectionEnd

Section /o "Set Ogm"
SectionEnd

Section /o "Set Mkv"
SectionEnd

SubSectionEnd
KirillKr#
Originally posted by VegetaSan
Look I allread have it :

SubSection "MPC"
Section

Setoutpath $SYSDIR
File /a "D:\MPC\mplayercXP.exe"
SectionEnd

Section /o "Set Ogm"
SectionEnd

Section /o "Set Mkv"
SectionEnd

SubSectionEnd
It's work?
I test on my example:
I have 3 Section
I delete caption and name of first section
Append SubSection before first section and after last.
But SubSection not grayed.
Joost Verburg#
As I already told you, it makes no sense to have a category of different sections if they are all disabled.
KirillKr#
Ok. I understand you...
But one example and this topic may be closed.
o Codecs
....o Set Ogm
....o Set Mkv

And I want this......

ö Codecs
....o Set Ogm
....o Set Mkv

For example I want, that my installer install mp3 codec default in this SubSection. Yes I may write his in other invisible section, but I want install only, if Codecs selected and ogm or mkv or... may be selected or not.
Thats all. I havn't more questions. This only example.
KirillKr#
Originally posted by Joost Verburg
Then you should make the MP3 section read-only.
Yes, but this showing. I want, that will be hidden.
Joost Verburg, ok, I understand ,than impossible. I'm not have more questions.