Added !if /FileExists

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6170 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2011-11-13 15:34:43 +00:00
parent a37905cc0c
commit 20dcb1923a
4 changed files with 37 additions and 2 deletions

View file

@ -61,6 +61,7 @@ The opposite of !ifdef. The lines will be compiled when the gflag has not been d
\S1{if} !if
\c [!] value [op value2]
\c [!] /FileExists "c:\path\file.exe"
This command, when paired with an !endif command, will tell the compiler whether or not to compile the lines in between the two lines. If value is non-zero, or the comparison of value and value2 depending on the operator results in true, the contained lines will be compiled. Otherwise, they will be skipped.
op can be either == or != (string comparison), <=, < > or >= (float comparison), & (bitwise AND comparison), && or || (boolean comparison).
@ -74,6 +75,10 @@ If [!] is set, return value will be switched from true to false and vice versa.
\c !error "neither should this"
\c !endif
\c !if /FileExists ".\cert.pfx"
\c !finalize '".\sign.bat" "%1"'
\c !endif
\S1{ifmacrodef} !ifmacrodef
\c gflag [bcheck gflag [...]]]