!execute supports comparing the exit code with the same syntax as !system

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6460 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2014-04-13 14:45:02 +00:00
parent 45b87a7dc5
commit 3337a6d606
4 changed files with 31 additions and 29 deletions

View file

@ -91,7 +91,7 @@ This command will issue an error to the script compiler and will stop execution
\c command
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. \R{execute}{!execute} also ignores the return value of the executed command. 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.
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.
On POSIX platforms, \R{execute}{!execute} will use system() just like \R{system}{!system}.

View file

@ -24,6 +24,8 @@ Released on ?, 2014
\b !system will decode child output as OEMCP if GetConsoleOutputCP() == GetOEMCP()
\b !execute supports comparing the exit code with the same syntax as !system
\H{v3.0a2} 3.0 Alpha 2
Released on December 24th, 2013