From 96a6af3c18e902210f22ec25618820452303a9f5 Mon Sep 17 00:00:00 2001 From: pointfeev Date: Thu, 6 Apr 2023 20:11:43 -0400 Subject: [PATCH] improve tasklist find --- CreamInstaller/CreamInstaller.csproj | 2 +- CreamInstaller/Forms/UpdateForm.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CreamInstaller/CreamInstaller.csproj b/CreamInstaller/CreamInstaller.csproj index 5bb3669..67e2879 100644 --- a/CreamInstaller/CreamInstaller.csproj +++ b/CreamInstaller/CreamInstaller.csproj @@ -4,7 +4,7 @@ net7.0-windows True Resources\ini.ico - 4.8.0.0 + 4.8.1.0 2021, pointfeev (https://github.com/pointfeev) CreamInstaller Automatic DLC Unlocker Installer & Configuration Generator diff --git a/CreamInstaller/Forms/UpdateForm.cs b/CreamInstaller/Forms/UpdateForm.cs index 41eea21..6004675 100644 --- a/CreamInstaller/Forms/UpdateForm.cs +++ b/CreamInstaller/Forms/UpdateForm.cs @@ -198,7 +198,7 @@ internal sealed partial class UpdateForm : CustomForm StringBuilder commands = new(); commands.AppendLine(CultureInfo.InvariantCulture, $"\nTASKKILL /F /T /PID {Program.CurrentProcessId}"); commands.AppendLine(CultureInfo.InvariantCulture, $":LOOP"); - commands.AppendLine(CultureInfo.InvariantCulture, $"TASKLIST | FIND \"{Program.CurrentProcessId}\""); + commands.AppendLine(CultureInfo.InvariantCulture, $"TASKLIST | FIND \" {Program.CurrentProcessId}\" "); commands.AppendLine(CultureInfo.InvariantCulture, $"IF NOT ERRORLEVEL 1 ("); commands.AppendLine(CultureInfo.InvariantCulture, $" TIMEOUT /T 1"); commands.AppendLine(CultureInfo.InvariantCulture, $" GOTO LOOP");