The Inno Setup log file does not, by default, include the setup exit code. I am looking for a way to include this in the log file. I am assuming this would be done using the Log
function and including it in the DeinitializeSetup
event. Something like this:
procedure DeinitializeSetup();
begin
Log('Exit code: ' + ExitCode);
end;
What I don't know, and cannot seem to find, is how to return the setup exit code, so that I can use it in the Log
function. Is this the best way to do this and how do I return the setup exit code?
IntializeSetup
has exited due to Windows Updates requiring a reboot. – Robert WigleyExitProcess
, the process is aborted immediately. No Pascal Code is called after, not even theDeinitializeSetup
. – Martin PrikrylExitProcess
. – Martin Prikryl