2025-09-26 13:06:18 -04:00
|
|
|
namespace SabreTools.Data.Models.WiseInstaller.Actions
|
2025-09-26 12:09:34 -04:00
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Insert Line Into Text File
|
2025-10-30 23:54:22 -04:00
|
|
|
///
|
2025-09-26 12:09:34 -04:00
|
|
|
/// 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.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// This action is called through Call DLL Function and is mapped to "f25".
|
|
|
|
|
/// </remarks>
|
2025-10-30 23:54:22 -04:00
|
|
|
/// <see href="https://www.manualslib.com/manual/404969/Symantec-Wisescript-Editor-8-0-Reference-For-Wise-Package-Studio-V1-0.html"/>
|
2025-09-26 12:09:34 -04:00
|
|
|
public class InsertLineIntoTextFile : FunctionData
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Flags from the argument data
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>
|
|
|
|
|
/// 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)
|
|
|
|
|
/// </remarks>
|
|
|
|
|
public byte DataFlags { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Full path to the text file to edit
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? FileToEdit { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Text to insert into the file
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? TextToInsert { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Search for Text
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? SearchForText { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Comment Text
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string? CommentText { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Line number to insert text at, 0 for append to end
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int LineNumber { get; set; }
|
|
|
|
|
}
|
2025-10-30 23:54:22 -04:00
|
|
|
}
|