From a1275ada05b96fad9e9004e834d0fc17e25aaddf Mon Sep 17 00:00:00 2001 From: rainwater Date: Fri, 6 Sep 2002 20:16:10 +0000 Subject: [PATCH] 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 --- Docs/src/attributes.but | 2 +- Docs/src/build.bat | 2 +- Docs/src/sections.but | 26 ++++++++++++++++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 Docs/src/sections.but diff --git a/Docs/src/attributes.but b/Docs/src/attributes.but index 551962d3..1e31a761 100644 --- a/Docs/src/attributes.but +++ b/Docs/src/attributes.but @@ -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. diff --git a/Docs/src/build.bat b/Docs/src/build.bat index b53cbbc3..4fe713e3 100644 --- a/Docs/src/build.bat +++ b/Docs/src/build.bat @@ -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 diff --git a/Docs/src/sections.but b/Docs/src/sections.but new file mode 100644 index 00000000..b9143c61 --- /dev/null +++ b/Docs/src/sections.but @@ -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. + + + + +