Setup Factory 10

SetupData.WriteToLogFile

SetupData.WriteToLogFile

This is the first topic This is the last topic  

SetupData.WriteToLogFile

This is the first topic This is the last topic  

OverviewExamples

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


Learn More: Indigo Rose Software - Setup Factory - Buy Now - Contact Us