!system and !execute can store the exit code in a define
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6461 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
3337a6d606
commit
8d7dd2cf9f
7 changed files with 37 additions and 23 deletions
|
@ -89,7 +89,7 @@ This command will issue an error to the script compiler and will stop execution
|
|||
|
||||
\S1{execute} !execute
|
||||
|
||||
\c command
|
||||
\c command [compare comparevalue | symbol]
|
||||
|
||||
This command will execute 'command' using a call to CreateProcess(). Unlike \R{system}{!system}, it does not use the command line processor, so input/output redirection and commands like 'cd', 'dir' and 'type' can not be used. Currently, the only known advantage of \R{execute}{!execute} over \R{system}{!system} is that it does not give trouble when the current working directory is specified using UNC.
|
||||
|
||||
|
@ -115,9 +115,9 @@ This option will execute 'command' using a call to system() after the output EXE
|
|||
|
||||
\S1{system} !system
|
||||
|
||||
\c command [compare comparevalue]
|
||||
\c command [compare comparevalue | symbol]
|
||||
|
||||
This command will execute 'command' using a call to system(), and if the return value compared (using 'compare') to 'comparevalue' is false, execution will halt. 'compare' can be '<' or '>' or '<>' or '='.
|
||||
This command will execute 'command' using a call to system(). You can store the return value in a define ('symbol') or halt execution if the return value compared (using 'compare') to 'comparevalue' is false. 'compare' can be '<' or '>' or '<>' or '='.
|
||||
|
||||
\c !system '"%WINDIR%\notepad.exe" "${NSISDIR}\license.txt"'
|
||||
\c !system 'echo !define something > newinclude.nsh'
|
||||
|
|
|
@ -24,6 +24,8 @@ Released on ?, 2014
|
|||
|
||||
\b !system will decode child output as OEMCP if GetConsoleOutputCP() == GetOEMCP()
|
||||
|
||||
\b !system and !execute can store the exit code in a define
|
||||
|
||||
\b !execute supports comparing the exit code with the same syntax as !system
|
||||
|
||||
\H{v3.0a2} 3.0 Alpha 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue