OverviewExamples
SetupData.WriteToLogFile ( |
boolean AddTimestamp = true ) |
SetupData.WriteToLogFile("ERROR: " .. Application.GetLastError(), true);
Outputs the current application error to the install or uninstall log file.
err = Application.GetLastError();
if err ~= 0 then
sMessage = "####################\r\n" .. "ERROR " .. err .. ": " .. _tblErrorMessages[err] .. "\r\n####################\r\n";
SetupData.WriteToLogFile(sMessage, false);
end
If an error occurs, outputs a nicely-formatted string into the install or uninstall log file.
See also: Related Actions