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; }