Skip to content

Commit 010f792

Browse files
committed
Add minor identifier for NSIS
1 parent a3118ce commit 010f792

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

BinaryObjectScanner/Packer/NSIS.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,13 @@ public class NSIS : IExecutableCheck<PortableExecutable>
1919
if (name.OptionalStartsWith("Nullsoft Install System"))
2020
return $"NSIS {name!.Substring("Nullsoft Install System".Length).Trim()}";
2121

22+
name = exe.AssemblyName;
23+
24+
if (name.OptionalStartsWith("Nullsoft.NSIS"))
25+
return "NSIS";
26+
2227
// Get the .data/DATA section strings, if they exist
23-
var strs = exe.GetFirstSectionStrings(".data") ?? exe.GetFirstSectionStrings("DATA");
28+
var strs = exe.GetFirstSectionStrings(".data") ?? exe.GetFirstSectionStrings("DATA");
2429
if (strs != null)
2530
{
2631
if (strs.Exists(s => s.Contains("NullsoftInst")))

0 commit comments

Comments
 (0)