'Using nsExec to installing INF file. Log shows return value -10
I'm working on an installer that installs an inf file. I'm using the nsExec plugin.
My log is giving Return value: -10. What does a -10 error mean here? IF I enter the wrong path I can an expected value like "error" but I don't understand this -10 return value.
nsExec::ExecToStack '"My.exe" /a "The.inf"'
Pop $0 # return value/error/timeout
Pop $1 # printed text, up to ${NSIS_MAX_STRLEN}
DetailPrint '"My.exe" /a "The.inf"'
DetailPrint ""
DetailPrint " Return value: $0"
DetailPrint ""
If I do the example given in the nsExec plugin page, I get a return value of 0. So I assume -10 is an error of some kind, but not one I've encountered thus far.
The exe and inf files are custom to org.
Solution 1:[1]
Any number is the exit code from the process. -10 is the exit code of My.exe.
Only My.exe knows what -10 means. A negative number might be a HRESULT error code.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Anders |