new doc format (incomplete)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@873 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
845c5dfe6a
commit
3ead7e15ef
11 changed files with 665 additions and 0 deletions
35
Docs/src/script.but
Normal file
35
Docs/src/script.but
Normal file
|
@ -0,0 +1,35 @@
|
|||
\C{script} Script File Format
|
||||
|
||||
A NSIS Script File (.nsi) is just a text file with a series of commands.
|
||||
|
||||
\b Lines beginning with ; or # are comments.
|
||||
|
||||
\b Non-comment lines are in the form of 'command [parameters]'
|
||||
|
||||
\b Anything after a ; or # that is not in a parameter (i.e. in quotes or part of another string) is treated as a comment. (i.e. "File myfile ; this is the file" would work)
|
||||
|
||||
\b For parameters that are treated as numbers, use decimal (the number) or hexadecimal (with 0x prepended to it, i.e. 0x12345AB), or octal (numbers beginning with a 0 and no x).
|
||||
|
||||
\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 can be either single quotes, double quotes, or the backward single quote.
|
||||
|
||||
\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:
|
||||
|
||||
\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:
|
||||
|
||||
\c CreateShortCut "$SMPROGRAMS\NSIS\ZIP2EXE project workspace.lnk" \
|
||||
\c "$INSTDIR\source\zip2exe\zip2exe.dsw"
|
||||
\c
|
||||
\c MessageBox MB_YESNO|MB_ICONQUESTION \
|
||||
\c "Remove all files in your NSIS directory? (If you have anything \
|
||||
\c you created that you want to keep, click No)" \
|
||||
\c IDNO NoRemoveLabel
|
||||
|
||||
\b If a file named "nsisconf.nsi" in the same directory as makensis.exe exists, it will be included by default before any scripts (unless the /NOCONFIG command line parameter is used.
|
Loading…
Add table
Add a link
Reference in a new issue