diff --git a/Docs/src/script.but b/Docs/src/script.but index aec929ea..93ec4b03 100644 --- a/Docs/src/script.but +++ b/Docs/src/script.but @@ -16,15 +16,18 @@ A NSIS Script File (.nsi) is just a text file with a series of commands. \b To represent strings that have spaces, use quotes. -\b quotes only have the property of containing a parameter if they begin the parameter. +\b Quotes only have the property of containing a parameter if they begin the parameter. -\b quotes can be either single quotes, double quotes, or the backward single quote. +\b Quotes can be either single quotes, double quotes, or the backward single quote. + +\b You can escape quotes using $\\. \b Examples: \c MessageBox MB_OK "I'll be happy" ; this one puts a ' inside a string \c MessageBox MB_OK 'And he said to me "Hi there!"' ; this one puts a " inside a string -\c MessageBox MB_OK `And he said to me "I'll be fucked!"` ; this one puts both ' and "s inside a string: +\c MessageBox MB_OK `And he said to me "I'll be fucked!"` ; this one puts both ' and "s inside a string +\c MessageBox MB_OK "$\\"A quote from a wise man$\\" said the wise man" ; this one shows escaping of quotes \b To extend a command over multiple lines, use a backslash (\\) at the end of the line, and the next line will effectively be concatenated the end of it. For example: