From 523e670cc57b138fabef04d96d451b9ce352d4f3 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Wed, 3 Sep 2025 11:24:21 -0400 Subject: [PATCH] ONE MORE TIME --- BinaryObjectScanner/Packer/WiseInstaller.cs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/BinaryObjectScanner/Packer/WiseInstaller.cs b/BinaryObjectScanner/Packer/WiseInstaller.cs index 253a5d90..9a666c3c 100644 --- a/BinaryObjectScanner/Packer/WiseInstaller.cs +++ b/BinaryObjectScanner/Packer/WiseInstaller.cs @@ -1,6 +1,4 @@ -using System; -using System.IO; -using BinaryObjectScanner.Interfaces; +using BinaryObjectScanner.Interfaces; using SabreTools.Serialization.Wrappers; namespace BinaryObjectScanner.Packer @@ -11,9 +9,16 @@ namespace BinaryObjectScanner.Packer /// public string? CheckExecutable(string file, NewExecutable nex, bool includeDebug) { - // If the overlay header can be found - if (nex.FindWiseOverlayHeader() > -1) - return "Wise Installation Wizard Module"; + try + { + // If the overlay header can be found + if (nex.FindWiseOverlayHeader() > -1) + return "Wise Installation Wizard Module"; + } + catch + { + // Ignore the error for now + } return null; }