SetupData.WriteToLogFile

SetupData.WriteToLogFile ( 

string  Text,

boolean AddTimestamp = true )

Example 1

SetupData.WriteToLogFile("ERROR: " .. Application.GetLastError(), true);

Outputs the current application error to the install or uninstall log file.

Example 2

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