# HG changeset patch # User Oleksandr Gavenko # Date 1274106081 -10800 # Node ID fa4c52109fd8c70905f95747c4a4a327feb9826e # Parent 977072a38f36c9941907a0f93e445031e9310bad About NSIS variables. diff -r 977072a38f36 -r fa4c52109fd8 nsis.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nsis.rst Mon May 17 17:21:21 2010 +0300 @@ -0,0 +1,57 @@ +-*- mode: outline; coding: utf-8 -*- + +* String. + +* Variables. + +Allowed chaacters for variable names: [a-z][A-Z][0-9] and '_'. + +** Macros definition. + +To define macro variable: + + !define NAME "STRING" + +To access to there value use such syntax: + + ${NAME} + +** Variable definition. + +To declare variable: + + Var NAME + +There are exist registers (predefined variable) through them passed args for +macros/functions/plug-ins: + + $0, $1, $2, $3, $4, $5, $6, $7, $8, $9, $R0, $R1, $R2, $R3, $R4, $R5, $R6, $R7, $R8, $R9 + +To assign value to variable use: + + StrCpy $NAME "STRING" + +To access to there value use such syntax: + + $NAME + +** Language strings. + +To declare multilingual string use: + + LangString NAME LANGUAGE_ID "STRING" + +For 'LANGUAGE_ID' use '${LANG_ENGLISH}', '${LANG_RUSSIAN}', etc. + +To access to there value use such syntax: + + $(NAME) + +** Standard language strings. + +You can see list of such var under Contrib\Language Files\*.nlf files, which +loaded by 'LoadLanguageFile'. + +To access to there value use such syntax: + + $(^NAME)