fixed little typos and updated variables section

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2140 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
flizebogen 2003-02-09 19:40:18 +00:00
parent 7789543c62
commit b7a0bbabcc
4 changed files with 9 additions and 6 deletions

View file

@ -25,10 +25,11 @@ Creates (recursively if necessary) the specified directory. The error flag is \\
Creates a shortcut 'link.lnk' that links to 'target.file', with optional parameters 'parameters'.
The icon used for the shortcut is 'icon.file,icon_index_number'; for default icon settings use empty strings for both icon.file and icon_index_number.
start_options should be one of: \e{SW_SHOWNORMAL}, \e{SW_SHOWMAXIMIZED}, \e{SW_SHOWMINIMIZED}, or an empty string.
keyboard_shortcut should be in the form of 'flag|c' where flag can be a combination (using |) of: \e{ALT}, \e{CONTROL}, \e{EXT}, or \e{SHIFT}. c is the character to use (a-z, A-Z, 0-9, F1-F24, etc). Note that no spaces are allowed in this string. A good example is "ALT|CONTROL|F8". $OUTDIR is used for the working directory.
keyboard_shortcut should be in the form of 'flag|c' where flag can be a combination (using |) of: \e{ALT}, \e{CONTROL}, \e{EXT}, or \e{SHIFT}. c is the character to use (a-z, A-Z, 0-9, F1-F24, etc). Note that no spaces are allowed in this string. A good example is "ALT|CONTROL|F8". $OUTDIR is used for the working directory. You can change it by using SetOutPath (See \k{setoutpath}) before creating the Shortcut.
description should be the description of the shortcut, or comment as it is called under XP.
The error flag is set if the shortcut cannot be created (i.e. the path does not exist, or some other error).
\S2{getdllversion} GetDLLVersion
\c filename user_var(high dword output) user_var(low dword output)

View file

@ -41,7 +41,7 @@ Use:
As of version 2 NSIS fully supports multiple languages. An installer can have more than one language. Each string in the installer can be easily translated, and so can script strings such as messages in a message box.
Each installer has one or more language table which holds refernces to strings in the strings table. To create a language table all you need to do is use LoadLanguageFile (See \k{loadlanguagefile}), define strings used in your installer for that language such as Name and Caption, message box, install type, and other strings using LangString or LangStringUP (See \k{langstring}) and you have built your installer a language table.
Each installer has one or more language table which holds references to strings in the strings table. To create a language table all you need to do is use LoadLanguageFile (See \k{loadlanguagefile}), define strings used in your installer for that language such as Name and Caption, message box, install type, and other strings using LangString or LangStringUP (See \k{langstring}) and you have built your installer a language table.
For an example of usage see \W{../Examples/languages.nsi}{languages.nsi}.

View file

@ -38,4 +38,4 @@ This command inserts a subsection. The subsection must be close with SubSectionE
\S2{ssubsectionend} SubSectionEnd
Closes a subsection opened with SubSection.
Closes a subsection opened with SubSection.

View file

@ -2,6 +2,8 @@
\S1{var1} Modifiable Variables Used in Instructions
Note: All Variables provided by NSIS are case sensitive.
\e{$INSTDIR}
The installation directory ($INSTDIR is modifiable using StrCpy, ReadRegStr, ReadINIStr, etc. - This could be used, for example, in the .onInit function to do a more advanced detection of install location).
@ -44,7 +46,7 @@ The location of the installer executable. (technically you can modify this varia
\e{$\{NSISDIR\}}
A symbol that contains the path where NSIS is installed. Detected at compile time. Useful if you want to call resources that are in NSIS directory e.g. Icons, UI's...
A symbol that contains the path where NSIS is installed. Detected at compile time. Useful if you want to call resources that are in NSIS directory e.g. Icons, UI's...
\e{$WINDIR}
@ -60,7 +62,7 @@ The system temporary directory (usually C:\\windows\\temp but detected at runtim
\e{$STARTMENU}
The start menu folder (useful in adding start menu items using CreateShortCut)
The start menu folder (useful in adding start menu items using CreateShortCut). The context of this variable (All Users or Current user) depends on the SetShellVarContext setting. The default is the current user.
\e{$SMPROGRAMS}
@ -108,4 +110,4 @@ This code will set the name of the installer to "Test Program $\{VERSION\}". The
\c !define VERSION "V.1.0"
\c Name "Test Program ${VERSION}"
This code sets the name of the installer to "Test Program V.1.0"
This code sets the name of the installer to "Test Program V.1.0"