diff --git a/SPTInstaller/Helpers/PreCheckHelper.cs b/SPTInstaller/Helpers/PreCheckHelper.cs
index f9f9d3b..166df6f 100644
--- a/SPTInstaller/Helpers/PreCheckHelper.cs
+++ b/SPTInstaller/Helpers/PreCheckHelper.cs
@@ -16,17 +16,17 @@ public static class PreCheckHelper
return null;
var uninstallStringValue = Registry.LocalMachine.OpenSubKey(registryInstall, false)
- ?.GetValue("UninstallString");
- var info = (uninstallStringValue is string key) ? new FileInfo(key) : null;
+ ?.GetValue("InstallLocation");
+ var info = (uninstallStringValue is string key) ? new DirectoryInfo(key) : null;
- return info?.DirectoryName;
+ return info?.FullName;
}
public static Result DetectOriginalGameVersion(string gamePath)
{
try
{
- string version = FileVersionInfo.GetVersionInfo(Path.Join(gamePath + "/EscapeFromTarkov.exe")).ProductVersion.Replace('-', '.').Split('.')[^2];
+ string version = FileVersionInfo.GetVersionInfo(Path.Join(gamePath, "/EscapeFromTarkov.exe")).ProductVersion.Replace('-', '.').Split('.')[^2];
return Result.FromSuccess(version);
}
catch (Exception ex)
diff --git a/SPTInstaller/SPTInstaller.csproj b/SPTInstaller/SPTInstaller.csproj
index 0b69354..a4e5e02 100644
--- a/SPTInstaller/SPTInstaller.csproj
+++ b/SPTInstaller/SPTInstaller.csproj
@@ -9,8 +9,8 @@
icon.ico
Assets\icon.ico
Debug;Release;TEST
- 2.24
- 2.24
+ 2.25
+ 2.25
SPT-AKI