added part of the sections docs

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@944 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
rainwater 2002-09-06 20:16:10 +00:00
parent 95e8dade95
commit a1275ada05
3 changed files with 28 additions and 2 deletions

View file

@ -278,7 +278,7 @@ Sets whether or not the installer's icon is in the upper left corner of the inst
\S{axpstyle} XPStyle
XPStyle on|off
XPStyle \e{on|off}
Sets whether or not an XP manifest will be added to the installer. Default value is off. This affects the uninstaller too.

View file

@ -1,4 +1,4 @@
bin\halibut.exe config.but intro.but usage.but script.but attributes.but compilerflags.but history.but license.but
bin\halibut.exe config.but intro.but usage.but script.but attributes.but compilerflags.but sections.but history.but license.but
@del *.hlp
@del *.cnt
@copy Contents.html index.html

26
Docs/src/sections.but Normal file
View file

@ -0,0 +1,26 @@
\H{sections} Sections
Each NSIS installer contains one or more Sections. Each These sections are created, modified, and ended with the following commands.
\b Each section contains zero or more instructions.
\b Sections are executed in order by the resulting installer, and if ComponentText is set, the user will have the option of disabling/enabling each section.
\b If a section's name is 'Uninstall', then it is a special Uninstall Section.
\S{ssection} Section
Section \e{([/e] [section_name] [section index output]}
Begins annd opens a new section. If section_name is empty, omitted, or begins with a -, then it is a required section and the user will not see it, nor have the option of disabling it. If the section name is 'Uninstall', then it is a special Uninstall Section. If section index output is specified, the parameter will be !defined with the section index (that can be used for SectionSetText etc. If the section name begins with a !, the section will be displayed as bold. If /e is present, the sub sections of the section will be expanded by default.
\S{ssectionin} SectionIn
SectionIn \e{insttype_index [insttype_index] [RO]}
This command specifies which Install Types (see InstType) the current section defaults to the enabled state in. Multiple SectionIn commands can be specified (they are combined). If you specify RO as a parameter, then the section will be Read-Only, meaning it will always be set to install.