static UltraISOUtility() { if (File.Exists(EXE_BASE_PATH + ".lnk")) { sExePath = ShortcutResolver.ResolveShortcut(EXE_BASE_PATH + ".lnk"); if (!File.Exists(sExePath)) { sExePath = null; } } if (sExePath == null && File.Exists(EXE_BASE_PATH + ".exe")) { sExePath = EXE_BASE_PATH + ".exe"; } }
static UltraISOUtility() { string[] catcherfiles; catcherfiles = System.IO.Directory.GetFiles($"{EXE_BASE_PATH_PARENT}{Path.DirectorySeparatorChar}{EXE_BASE_PATH_CHILD}", "*.lnk"); if (catcherfiles.Length > 0) { if (File.Exists(catcherfiles[0])) { sExePath = ShortcutResolver.ResolveShortcut(catcherfiles[0]); if (!File.Exists(sExePath)) { sExePath = null; } } } catcherfiles = System.IO.Directory.GetFiles($"{EXE_BASE_PATH_PARENT}{Path.DirectorySeparatorChar}{EXE_BASE_PATH_CHILD}", "*.exe"); if (catcherfiles.Length > 0) { if (sExePath == null && File.Exists(catcherfiles[0])) { sExePath = catcherfiles[0]; } } }