![]() |
#1 |
Junior Member
Join Date: Feb 2017
Posts: 19
|
Get actual error code if ExecWait fails?
Hello,
I am interested in getting the actual Windows error code if ExecWait fails. In the docs it is said "ExecWait sets the error flag if an error occurs". As far as I can see, the error flag has 2 values: set and unset, and I need the Windows error code. If I call GetLastError using System, will it returned the actual Windows error code that ExecWait triggered? Regards, Alex |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
|
No you cannot call GetLastError with the system plugin because the last error can change inside the system plugin code.
You must call CreateProcess yourself: PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|