mirror of
https://github.com/SabreTools/BinaryObjectScanner.git
synced 2026-02-15 05:36:03 +00:00
24 lines
667 B
C#
24 lines
667 B
C#
using BinaryObjectScanner.Interfaces;
|
|
using SabreTools.IO.Extensions;
|
|
using SabreTools.Serialization.Wrappers;
|
|
|
|
namespace BinaryObjectScanner.Packer
|
|
{
|
|
public class WinRARSFX : IExecutableCheck<PortableExecutable>
|
|
{
|
|
/// <inheritdoc/>
|
|
public string? CheckExecutable(string file, PortableExecutable exe, bool includeDebug)
|
|
{
|
|
string? name = exe.AssemblyDescription;
|
|
|
|
if (name.OptionalContains("WinRAR archiver"))
|
|
return "WinRAR SFX";
|
|
|
|
if (exe.FindDialogByTitle("WinRAR self-extracting archive").Count > 0)
|
|
return "WinRAR SFX";
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|