feat(installer): full RynthCore + RynthSuite installer with user-chosen folders

- RynthCore.iss: one installer for the launcher/engine/Loot Editor and RynthSuite
  (RynthAi plugin, Monster Editor), with a second folder page for RynthSuite
  (/SUITEDIR= for silent installs), HKA Software\Rynth CoreDir/SuiteDir values and
  cleanup of 0.4.x / RynthBundle leftovers that broke the 2026-10-04 reinstall
- RynthInstallPaths: env var -> HKCU -> HKLM (32-bit) -> C:\Games default resolver,
  linked into launcher, engine, loader, injector and status agent; replaces every
  hard-coded C:\Games\RynthCore / RynthSuite path
- Launcher consumes PendingPluginRegistration on start (adds the installed RynthAi
  DLL, prunes rows for files the installer removed, syncs engine.json)
- Build-Installer.ps1: Monster Editor publish, core/suite staging, deps.json staging
  check, previous-release archiving, versioned RynthCore-Setup-<ver>.exe
- Release 2026.10.4.2 (previous 2026.10.4.1)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
BlankenshipG 2026-10-04 14:30:28 -04:00
commit f5002902c9
23 changed files with 689 additions and 116 deletions

View file

@ -97,7 +97,8 @@ public static class EntryPoint
catch { }
// Set up the unified log sink BEFORE anything else so all
// subsequent failures are captured in C:\Games\RynthCore\Logs.
// subsequent failures are captured in <CoreDir>\Logs (installer-chosen;
// resolved here on the init worker, never under the loader lock).
LogPaths.EnsureLogDirectory();
if (_initCount <= 1)
{

View file

@ -23,6 +23,7 @@ using System.Runtime.InteropServices;
using ImGuiNET;
using RynthCore.Engine.D3D9;
using RynthCore.Engine.Plugins;
using RynthCore.Install;
namespace RynthCore.Engine.ImGuiBackend;
@ -131,8 +132,8 @@ internal static class EngineFrameController
// between launches. Allocated once, kept alive for the process lifetime.
try
{
const string iniPath = @"C:\Games\RynthSuite\RynthAi\imgui.ini";
System.IO.Directory.CreateDirectory(@"C:\Games\RynthSuite\RynthAi");
string iniPath = System.IO.Path.Combine(RynthInstallPaths.RynthAiDir, "imgui.ini");
System.IO.Directory.CreateDirectory(RynthInstallPaths.RynthAiDir);
IntPtr iniPtr = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(iniPath);
unsafe { io.NativePtr->IniFilename = (byte*)iniPtr; }
RynthLog.Render($"EngineFrameController: imgui.ini pinned to {iniPath}");

View file

@ -10,6 +10,7 @@ using System.Runtime.InteropServices;
using ImGuiNET;
using RynthCore.Engine.D3D9;
using RynthCore.Engine.Plugins;
using RynthCore.Install;
namespace RynthCore.Engine.ImGuiBackend;
@ -89,8 +90,8 @@ internal static class ImGuiController
// between launches. Allocated once, kept alive for the process lifetime.
try
{
const string iniPath = @"C:\Games\RynthSuite\RynthAi\imgui.ini";
System.IO.Directory.CreateDirectory(@"C:\Games\RynthSuite\RynthAi");
string iniPath = System.IO.Path.Combine(RynthInstallPaths.RynthAiDir, "imgui.ini");
System.IO.Directory.CreateDirectory(RynthInstallPaths.RynthAiDir);
IntPtr iniPtr = System.Runtime.InteropServices.Marshal.StringToHGlobalAnsi(iniPath);
unsafe { io.NativePtr->IniFilename = (byte*)iniPtr; }
RynthLog.Render($"ImGuiController: imgui.ini pinned to {iniPath}");

View file

@ -21,13 +21,15 @@
using System;
using System.IO;
using RynthCore.Install;
namespace RynthCore.Engine;
internal static class LogPaths
{
/// <summary>Unified log directory for all RynthCore components.</summary>
internal const string LogDirectory = @"C:\Games\RynthCore\Logs";
// Installer-chosen RynthCore folder (registry Software\Rynth\CoreDir; falls back to C:\Games\RynthCore).
internal static readonly string LogDirectory = RynthInstallPaths.CoreLogsDir;
/// <summary>Shared launch/orchestration log (injector + launcher + per-engine session pointer).</summary>
internal const string SharedLogFileName = "RynthCore.log";

View file

@ -119,4 +119,9 @@
SkipUnchangedFiles="true" />
</Target>
<ItemGroup>
<!-- Install-location resolver (installer-chosen RynthCore / RynthSuite folders). -->
<Compile Include="..\RynthCore.App\RynthInstallPaths.cs" Link="Shared\RynthInstallPaths.cs" />
</ItemGroup>
</Project>

View file

@ -20,6 +20,7 @@ using Avalonia.Layout;
using Avalonia.Media;
using Avalonia.Threading;
using RynthCore.Engine.Plugins;
using RynthCore.Install;
namespace RynthCore.Engine.UI.Panels;
@ -955,7 +956,7 @@ internal static class MetaPanel
string n = ps.SaveName.Trim();
if (!string.IsNullOrEmpty(n))
{
string path = @$"C:\Games\RynthSuite\RynthAi\MetaFiles\{n}.af";
string path = System.IO.Path.Combine(RynthInstallPaths.RynthAiDir, "MetaFiles", $"{n}.af");
Send(new MetaCmd { Op = "save_file", Path = path });
}
ps.ShowSaveInput = false;