namespace SabreTools.Data.Models.WiseInstaller.Actions
{
///
/// Add to AUTOEXEC.BAT
///
/// This action edits Autoexec.bat, which is executed during startup, allowing you to add
/// commands that are executed before Windows loads.
///
/// Insert commands at a particular line number, or search the file for specific text and
/// insert the new line before, after, or in place of the existing line. The destination
/// computer is restarted after installation to force the new commands to take effect.
///
///
/// This action is called through Call DLL Function and is mapped to "f1".
///
///
public class AddToAutoexecBat : 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
///
///
/// Ignored because structure is shared with both
/// and
///
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; }
}
}