namespace SabreTools.Data.Models.WiseInstaller.Actions
{
///
/// Insert Line Into Text File
///
/// This action edits a text file on the destination computer. Use it to edit configuration files
/// that cannot be edited by Edit INI File, Add Device to System.ini, Add Command to
/// Config.sys, or Add Command to Autoexec.bat.
///
///
/// This action is called through Call DLL Function and is mapped to "f25".
///
///
public class InsertLineIntoTextFile : FunctionData
{
///
/// Flags from the argument data
///
///
/// Encoded as a string, binary representation in script file.
/// Expected flags:
/// - Case Sensitive (0x01)
/// - Insert Action (unknown)
/// - Match Criteria (unknown)
/// - Ignore White Space (unknown)
/// - Make Backup File (unknown)
///
public byte DataFlags { get; set; }
///
/// Full path to the text file to edit
///
public string? FileToEdit { get; set; }
///
/// Text to insert into the file
///
public string? TextToInsert { get; set; }
///
/// Search for Text
///
public string? SearchForText { get; set; }
///
/// Comment Text
///
public string? CommentText { get; set; }
///
/// Line number to insert text at, 0 for append to end
///
public int LineNumber { get; set; }
}
}