feat: SK backlog from test through 2026.11.22.48 (Trade Shop + inventory/loot/chat/nav)
Squash of test/main-merge-2026-10-25 onto aelrynth main 2026.11.19.1 for the standing sk PR. Includes Trade Shop Storefront, loot checklist editor, chat routing, window placements, and related engine work. See Changelog/2026-11-22-sk-backlog-test-merge.md.
This commit is contained in:
parent
3fafd29133
commit
c6e8bb8dbf
438 changed files with 39545 additions and 1271 deletions
|
|
@ -1,7 +1,18 @@
|
|||
; RynthCore + RynthAi Installer
|
||||
; Build with: Build-Installer.ps1 (requires Inno Setup 6)
|
||||
; RynthCore + RynthSuite full installer
|
||||
; Build with: Build-Installer.ps1 (requires Inno Setup 6) — it builds every component from source
|
||||
; (launcher, engine, loader, RynthAi plugin, Loot Editor, Monster Editor) and stages them under
|
||||
; installer\staging\core and installer\staging\suite before invoking ISCC on this file.
|
||||
; Source: https://jrsoftware.org/isdl.php
|
||||
;
|
||||
; Install locations are user-defined:
|
||||
; * RynthCore folder ({app}) — the standard "Select Destination Location" page
|
||||
; * RynthSuite folder ({code:GetSuiteDir}) — a second folder page right after it
|
||||
; Both are recorded under HKA\Software\Rynth (CoreDir / SuiteDir); the engine, launcher and plugins
|
||||
; resolve every path from there (RynthInstallPaths.cs), so neither folder has to be under C:\Games.
|
||||
; Silent installs: /DIR="<core folder>" /SUITEDIR="<suite folder>".
|
||||
; Prerequisite: when the .NET 10 Desktop Runtime (x86) is missing, the "installdotnet" task (on by default)
|
||||
; downloads it from Microsoft and installs it before the files are copied. A failure is reported, never fatal.
|
||||
;
|
||||
; NOTE: No ISPP (#define / {#...}) macros are used in this file.
|
||||
; Build-Installer.ps1 replaces the AppVersion placeholder via text substitution
|
||||
; before invoking ISCC, so the preprocessor has nothing to expand.
|
||||
|
|
@ -9,13 +20,17 @@
|
|||
; APPVERSION_PLACEHOLDER=0.0.0
|
||||
|
||||
[Setup]
|
||||
; Same AppId as every earlier RynthCore / RynthBundle installer, so this upgrades them in place.
|
||||
AppId={{A8B4C2D1-E3F5-4678-9ABC-DEF012345678}
|
||||
AppName=RynthCore
|
||||
AppVerName=RynthCore + RynthSuite 0.0.0
|
||||
AppVersion=0.0.0
|
||||
AppPublisher=RynthCore
|
||||
AppPublisherURL=https://aelrynth.com/git/rynth/RynthCore
|
||||
AppPublisherURL=https://aelrynth.com/rynth.html
|
||||
UninstallDisplayName=RynthCore + RynthSuite
|
||||
DefaultDirName=C:\Games\RynthCore
|
||||
DisableDirPage=no
|
||||
UsePreviousAppDir=yes
|
||||
DefaultGroupName=RynthCore
|
||||
DisableProgramGroupPage=yes
|
||||
OutputDir=Output
|
||||
|
|
@ -28,62 +43,172 @@ WizardStyle=modern
|
|||
; the chosen install folder requires it (e.g. C:\Games\).
|
||||
PrivilegesRequired=lowest
|
||||
PrivilegesRequiredOverridesAllowed=dialog
|
||||
; 32-bit app; works on 32/64-bit Windows
|
||||
ArchitecturesAllowed=x86 x64 arm64
|
||||
; Close a running launcher / editors before replacing their files.
|
||||
CloseApplications=yes
|
||||
; 32-bit app; works on 32/64-bit Windows (HKA registry writes land in the 32-bit view,
|
||||
; which is exactly where RynthInstallPaths reads HKLM from).
|
||||
ArchitecturesAllowed=x86compatible
|
||||
ArchitecturesInstallIn64BitMode=
|
||||
|
||||
[Languages]
|
||||
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||
|
||||
[Types]
|
||||
Name: "full"; Description: "Full install (RynthCore + RynthSuite)"
|
||||
Name: "core"; Description: "RynthCore only"
|
||||
Name: "custom"; Description: "Custom"; Flags: iscustom
|
||||
|
||||
[Components]
|
||||
Name: "core"; Description: "RynthCore launcher, engine and Loot Editor"; Types: full core custom; Flags: fixed
|
||||
Name: "rynthai"; Description: "RynthSuite: RynthAi plugin (installed and registered with the launcher)"; Types: full
|
||||
Name: "monstereditor"; Description: "RynthSuite: Monster Editor"; Types: full
|
||||
; RynthSuite companion plugins: on in a Full install, each registered with the launcher like RynthAi.
|
||||
Name: "suite"; Description: "RynthSuite: Companion plugins"; Types: full
|
||||
Name: "suite\rynthoracle"; Description: "RynthOracle - quests, quest timers, markers, character, fellowship"; Types: full
|
||||
Name: "suite\rynthilt"; Description: "RynthILT - Infinite Leaftide features (hub, progression, banking, bounties)"; Types: full
|
||||
Name: "suite\rynthinventory"; Description: "RynthInventory - inventory, item counts and global manage"; Types: full
|
||||
Name: "suite\rynthsort"; Description: "RynthSort - inventory sorting"; Types: full
|
||||
; Server plugins (RynthServers): RynthCore loads only the one for the server you connect to.
|
||||
Name: "suite\rynthachard"; Description: "RynthAChard - server plugin for AChard (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthaelrynth"; Description: "RynthAelrynth - server plugin for Aelrynth (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthcoldeve"; Description: "RynthColdeve - server plugin for Coldeve (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthconquest"; Description: "RynthConquest - server plugin for Conquest (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthderptide"; Description: "RynthDerptide - server plugin for Derptide (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthdreamweave"; Description: "RynthDreamWeave - server plugin for DreamWeave (loads only on that server)"; Types: full
|
||||
Name: "suite\ryntheversong"; Description: "RynthEversong - server plugin for Eversong (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthfrostace"; Description: "RynthFrostACE - server plugin for FrostACE (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthfrostcull"; Description: "RynthFrostcull - server plugin for Frostcull (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthleafdawn"; Description: "RynthLeafDawn - server plugin for LeafDawn (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthleafdawning"; Description: "RynthLeafdawning - server plugin for Leafdawning (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthlevistras"; Description: "RynthLevistras - server plugin for Levistras (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthportalstorm"; Description: "RynthPortalStorm - server plugin for PortalStorm (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthreefcull"; Description: "RynthReefcull - server plugin for Reefcull (loads only on that server)"; Types: full
|
||||
Name: "suite\rynthsundering"; Description: "RynthSundering - server plugin for Sundering (loads only on that server)"; Types: full
|
||||
Name: "suite\rynththistlecrown"; Description: "RynthThistlecrown - server plugin for Thistlecrown (loads only on that server)"; Types: full
|
||||
Name: "suite\rynththreads"; Description: "RynthThreads - server plugin for DreamWeave's Threads (loads only on that server)"; Types: full
|
||||
; Experimental plugins: unchecked by default in every install type (ticking one switches to Custom).
|
||||
Name: "experimental"; Description: "RynthSuite: Experimental plugins (work in progress)"
|
||||
Name: "experimental\rynthchat"; Description: "RynthChat - replacement chat window (classifies and owns game chat)"
|
||||
Name: "experimental\rynthjuice"; Description: "RynthJuice - floating damage/heal numbers and kill bursts"
|
||||
Name: "experimental\rynthnav"; Description: "RynthNav - navmesh pathing and portal routing (needs baked NavData tiles)"
|
||||
Name: "experimental\rynthtracker"; Description: "RynthTracker - per-session kill tracker"
|
||||
Name: "experimental\rynthvision"; Description: "RynthVision - unclimbable slope, water and radar-range overlays"
|
||||
Name: "experimental\ubrythai"; Description: "ub-Rythai - Utility Belt tools ported to RynthCore (XP meter, portal gems, chat automation)"
|
||||
|
||||
[Tasks]
|
||||
Name: desktopicon; Description: "Create a &desktop shortcut"; GroupDescription: "Additional icons:"
|
||||
; Only offered when the runtime is missing. RynthCore and its tools are self-contained / NativeAOT and run
|
||||
; without it; it is installed for framework-dependent add-ons and tools. Skip silently with /MERGETASKS="!installdotnet".
|
||||
Name: installdotnet; Description: "Download and install the Microsoft .NET 10 Desktop Runtime (x86, about 55 MB; may ask for administrator approval)"; GroupDescription: "Prerequisites:"; Check: DotNet10DesktopMissing
|
||||
|
||||
; Files left by older layouts (the 0.4.x RynthBundle put a framework-dependent launcher, the engine
|
||||
; and plugins straight into {app}). Mixing those with a newer launcher is what broke 2026-10-04's
|
||||
; reinstall (RynthCore.App.Avalonia.dll from 0.4.7 + a newer deps.json → missing DesktopLog).
|
||||
; Only loose top-level binaries/metadata are removed; every file the new build needs is copied back
|
||||
; by [Files] right after. User data (Logs, AcClient, NavData, DecalBridge, ...) is never touched.
|
||||
[InstallDelete]
|
||||
Type: files; Name: "{app}\*.dll"
|
||||
Type: files; Name: "{app}\*.json"
|
||||
Type: files; Name: "{app}\*.pdb"
|
||||
Type: files; Name: "{app}\*.exp"
|
||||
Type: files; Name: "{app}\*.lib"
|
||||
Type: files; Name: "{app}\*.previous"
|
||||
Type: files; Name: "{app}\RynthCore.App.Avalonia.exe"
|
||||
Type: files; Name: "{app}\RynthCore-Prerequisites.txt"
|
||||
Type: files; Name: "{app}\Runtime\*.dll"
|
||||
Type: files; Name: "{app}\Runtime\*.json"
|
||||
Type: files; Name: "{app}\Runtime\*.pdb"
|
||||
Type: files; Name: "{app}\Runtime\RynthCore.Injector.exe"
|
||||
Type: filesandordirs; Name: "{app}\Runtime\Plugins"
|
||||
|
||||
; Program files
|
||||
[Files]
|
||||
; Launcher + engine runtime + Loot Editor go to {app} (default C:\Games\RynthCore\)
|
||||
; overwritereadonly: a file left read-only on the player's PC is replaced without a question
|
||||
; (a /SILENT update can't answer one); the build clears ReadOnly on everything staged, and Setup
|
||||
; doesn't give installed files any attributes, so nothing lands read-only.
|
||||
; This includes {app}\Headless (experimental): rynth-headless.exe with its own 64-bit .NET runtime and
|
||||
; Headless\plugins\<Name>\ (the 64-bit plugin builds it runs), staged by Build-Installer.ps1. Nothing
|
||||
; there is ever loaded by a game client; the x86 plugins below are unchanged.
|
||||
Source: "staging\app\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly
|
||||
; overwritereadonly (every line): a file left read-only on the player's PC is replaced without a
|
||||
; question (a /SILENT update can't answer one); the build clears ReadOnly on everything staged, and
|
||||
; Setup doesn't give installed files any attributes, so nothing lands read-only.
|
||||
; RynthCore: launcher, Runtime\ (engine, loader, native deps), Tools\LootEditor, release.txt
|
||||
Source: "staging\core\*"; DestDir: "{app}"; Components: core; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly
|
||||
|
||||
; Plugin DLL goes to its canonical home next to plugin data dirs.
|
||||
; Engine does NOT auto-scan this folder — user adds the full DLL path in the
|
||||
; launcher's Plugins tab to enable the plugin. See BUILD.md "Deploy RynthAi Plugin".
|
||||
Source: "staging\plugins\RynthAi\RynthCore.Plugin.RynthAi.dll"; DestDir: "C:\Games\RynthSuite\RynthAi"; Flags: ignoreversion overwritereadonly
|
||||
; RynthSuite: the RynthAi plugin lives next to its data folders in the chosen Suite folder.
|
||||
Source: "staging\suite\RynthAi\RynthCore.Plugin.RynthAi.dll"; DestDir: "{code:GetSuiteDir}\RynthAi"; Components: rynthai; Flags: ignoreversion overwritereadonly
|
||||
; Monster Editor: RynthAi's dashboard launches it from <RynthAi>\MonsterEditor\.
|
||||
Source: "staging\suite\RynthAi\MonsterEditor\*"; DestDir: "{code:GetSuiteDir}\RynthAi\MonsterEditor"; Components: monstereditor; Flags: ignoreversion recursesubdirs createallsubdirs overwritereadonly
|
||||
|
||||
; Data directories (created once; never removed on uninstall)
|
||||
; Companion plugins: each in its own <RynthSuite>\<Name>\ folder, like the experimental ones below.
|
||||
Source: "staging\suite\RynthOracle\RynthCore.Plugin.RynthOracle.dll"; DestDir: "{code:GetSuiteDir}\RynthOracle"; Components: suite\rynthoracle; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthILT\RynthCore.Plugin.RynthILT.dll"; DestDir: "{code:GetSuiteDir}\RynthILT"; Components: suite\rynthilt; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthInventory\RynthCore.Plugin.RynthInventory.dll"; DestDir: "{code:GetSuiteDir}\RynthInventory"; Components: suite\rynthinventory; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthSort\RynthCore.Plugin.RynthSort.dll"; DestDir: "{code:GetSuiteDir}\RynthSort"; Components: suite\rynthsort; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthAChard\RynthCore.Plugin.RynthAChard.dll"; DestDir: "{code:GetSuiteDir}\RynthAChard"; Components: suite\rynthachard; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthAelrynth\RynthCore.Plugin.RynthAelrynth.dll"; DestDir: "{code:GetSuiteDir}\RynthAelrynth"; Components: suite\rynthaelrynth; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthColdeve\RynthCore.Plugin.RynthColdeve.dll"; DestDir: "{code:GetSuiteDir}\RynthColdeve"; Components: suite\rynthcoldeve; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthConquest\RynthCore.Plugin.RynthConquest.dll"; DestDir: "{code:GetSuiteDir}\RynthConquest"; Components: suite\rynthconquest; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthDerptide\RynthCore.Plugin.RynthDerptide.dll"; DestDir: "{code:GetSuiteDir}\RynthDerptide"; Components: suite\rynthderptide; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthDreamWeave\RynthCore.Plugin.RynthDreamWeave.dll"; DestDir: "{code:GetSuiteDir}\RynthDreamWeave"; Components: suite\rynthdreamweave; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthEversong\RynthCore.Plugin.RynthEversong.dll"; DestDir: "{code:GetSuiteDir}\RynthEversong"; Components: suite\ryntheversong; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthFrostACE\RynthCore.Plugin.RynthFrostACE.dll"; DestDir: "{code:GetSuiteDir}\RynthFrostACE"; Components: suite\rynthfrostace; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthFrostcull\RynthCore.Plugin.RynthFrostcull.dll"; DestDir: "{code:GetSuiteDir}\RynthFrostcull"; Components: suite\rynthfrostcull; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthLeafDawn\RynthCore.Plugin.RynthLeafDawn.dll"; DestDir: "{code:GetSuiteDir}\RynthLeafDawn"; Components: suite\rynthleafdawn; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthLeafdawning\RynthCore.Plugin.RynthLeafdawning.dll"; DestDir: "{code:GetSuiteDir}\RynthLeafdawning"; Components: suite\rynthleafdawning; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthLevistras\RynthCore.Plugin.RynthLevistras.dll"; DestDir: "{code:GetSuiteDir}\RynthLevistras"; Components: suite\rynthlevistras; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthPortalStorm\RynthCore.Plugin.RynthPortalStorm.dll"; DestDir: "{code:GetSuiteDir}\RynthPortalStorm"; Components: suite\rynthportalstorm; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthReefcull\RynthCore.Plugin.RynthReefcull.dll"; DestDir: "{code:GetSuiteDir}\RynthReefcull"; Components: suite\rynthreefcull; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthSundering\RynthCore.Plugin.RynthSundering.dll"; DestDir: "{code:GetSuiteDir}\RynthSundering"; Components: suite\rynthsundering; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthThistlecrown\RynthCore.Plugin.RynthThistlecrown.dll"; DestDir: "{code:GetSuiteDir}\RynthThistlecrown"; Components: suite\rynththistlecrown; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthThreads\RynthCore.Plugin.RynthThreads.dll"; DestDir: "{code:GetSuiteDir}\RynthThreads"; Components: suite\rynththreads; Flags: ignoreversion overwritereadonly
|
||||
|
||||
; Experimental plugins: each in its own <RynthSuite>\<Name>\ folder (the layout the launcher already uses).
|
||||
Source: "staging\suite\RynthChat\RynthCore.Plugin.RynthChat.dll"; DestDir: "{code:GetSuiteDir}\RynthChat"; Components: experimental\rynthchat; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthJuice\RynthCore.Plugin.RynthJuice.dll"; DestDir: "{code:GetSuiteDir}\RynthJuice"; Components: experimental\rynthjuice; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthNav\RynthCore.Plugin.RynthNav.dll"; DestDir: "{code:GetSuiteDir}\RynthNav"; Components: experimental\rynthnav; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthTracker\RynthCore.Plugin.RynthTracker.dll"; DestDir: "{code:GetSuiteDir}\RynthTracker"; Components: experimental\rynthtracker; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\RynthVision\RynthCore.Plugin.RynthVision.dll"; DestDir: "{code:GetSuiteDir}\RynthVision"; Components: experimental\rynthvision; Flags: ignoreversion overwritereadonly
|
||||
Source: "staging\suite\UbRythai\RynthCore.Plugin.UbRythai.dll"; DestDir: "{code:GetSuiteDir}\UbRythai"; Components: experimental\ubrythai; Flags: ignoreversion overwritereadonly
|
||||
; RynthNav reads <RynthCore>\NavData. Starter portal list only; a newer one from RynthNav.PortalGraph is kept.
|
||||
Source: "staging\navdata\portals.tsv"; DestDir: "{app}\NavData"; Components: experimental\rynthnav; Flags: onlyifdoesntexist uninsneveruninstall
|
||||
|
||||
; RynthAi data directories (created once; never removed on uninstall - they hold user profiles)
|
||||
;
|
||||
; Permissions: users-modify (2026-10-13). The game client never runs elevated, and RynthAi saves
|
||||
; Permissions: users-modify (upstream 2026-10-13). The game client never runs elevated, and RynthAi saves
|
||||
; metas, navs, loot and settings profiles in these folders. An "install for all users" (elevated)
|
||||
; Setup creates them as an administrator; on a PC whose C:\ permissions aren't Windows' defaults,
|
||||
; such folders are read-only for everyone else and RynthAi's saves failed. users-modify gives the
|
||||
; Users group Modify, inherited by everything inside, every time Setup runs (also on an update, so
|
||||
; it repairs older installs when that update runs elevated). A non-elevated Setup can only change
|
||||
; folders its user owns; where it can't, Setup logs "Failed to set permissions" and carries on
|
||||
; (not an error), and the launcher's Recovery Actions > Fix folder permissions does it instead.
|
||||
; Users group Modify, inherited by everything inside, every time Setup runs. A non-elevated Setup
|
||||
; can only change folders its user owns; where it can't, Setup logs "Failed to set permissions"
|
||||
; and carries on, and the launcher's Recovery Actions > Fix folder permissions does it instead.
|
||||
[Dirs]
|
||||
Name: "{app}"; Permissions: users-modify
|
||||
Name: "C:\Games\RynthSuite"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\NavProfiles"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\LootProfiles"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\MetaFiles"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\MetaProfiles"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\SettingsProfiles"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\SettingsProfiles\ACEmulator"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\LuaScripts"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\Logs"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\pvars"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "C:\Games\RynthSuite\RynthAi\ItemGiver"; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{app}"; Permissions: users-modify
|
||||
Name: "{code:GetSuiteDir}"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\NavProfiles"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\LootProfiles"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\MetaFiles"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\MetaProfiles"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\SettingsProfiles"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\SettingsProfiles\ACEmulator"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\MonsterProfiles"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\LuaScripts"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\Logs"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\pvars"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\ItemGiver"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
Name: "{code:GetSuiteDir}\RynthAi\AutoVendor"; Components: rynthai; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
; RynthNav tiles baked by RynthNav.Baker (default --out) go here; kept on uninstall.
|
||||
Name: "{app}\NavData"; Components: experimental\rynthnav; Permissions: users-modify; Flags: uninsneveruninstall
|
||||
|
||||
; Install locations for the engine / launcher / plugins (see RynthInstallPaths.cs), plus a one-shot
|
||||
; hand-off the launcher consumes on next start to add the plugin to its Plugins list.
|
||||
; HKA = HKCU for a per-user install, HKLM for an all-users (elevated) install.
|
||||
[Registry]
|
||||
Root: HKA; Subkey: "Software\Rynth"; ValueType: string; ValueName: "CoreDir"; ValueData: "{app}"; Flags: uninsdeletevalue uninsdeletekeyifempty
|
||||
Root: HKA; Subkey: "Software\Rynth"; ValueType: string; ValueName: "SuiteDir"; ValueData: "{code:GetSuiteDir}"; Flags: uninsdeletevalue uninsdeletekeyifempty
|
||||
Root: HKA; Subkey: "Software\Rynth"; ValueType: string; ValueName: "PendingPluginRegistration"; ValueData: "{code:GetPendingPlugins}"; Check: HasPendingPlugins; Flags: uninsdeletevalue
|
||||
|
||||
; Shortcuts
|
||||
[Icons]
|
||||
; Start Menu
|
||||
Name: "{group}\RynthCore"; Filename: "{app}\RynthCore.exe"; WorkingDir: "{app}"; Comment: "Launch RynthCore and inject into Asheron's Call"
|
||||
Name: "{group}\Loot Editor"; Filename: "{app}\Tools\LootEditor\RynthCore.LootEditor.exe"; WorkingDir: "{app}\Tools\LootEditor"; Comment: "Edit VTank-style loot profiles"
|
||||
Name: "{group}\Monster Editor"; Filename: "{code:GetSuiteDir}\RynthAi\MonsterEditor\RynthCore.MonsterEditor.exe"; WorkingDir: "{code:GetSuiteDir}\RynthAi\MonsterEditor"; Components: monstereditor; Comment: "Edit RynthAi monster profiles"
|
||||
Name: "{group}\RynthSuite Folder"; Filename: "{code:GetSuiteDir}"; Components: rynthai
|
||||
Name: "{group}\Uninstall RynthCore"; Filename: "{uninstallexe}"
|
||||
|
||||
; Optional Desktop shortcut (created only when the desktopicon task is checked)
|
||||
|
|
@ -112,6 +237,28 @@ Filename: "{app}\RynthCore.exe"; WorkingDir: "{app}"; Flags: nowait runasorigina
|
|||
Filename: "{app}\RynthCore.exe"; Parameters: "--decal-bridge-unregister"; Flags: runhidden waituntilterminated; RunOnceId: "RynthCoreDecalBridgeUnregister"
|
||||
|
||||
[Code]
|
||||
const
|
||||
DefaultSuiteDir = 'C:\Games\RynthSuite';
|
||||
{ One pinned .NET 10 Desktop Runtime build (x86 to match RynthCore's x86 binaries), checked against its
|
||||
SHA-256 before it runs: a download swapped on the way (or at a mirror) is refused, not run elevated.
|
||||
A moving "latest" link can't be pinned. To move to a newer build, take the url from
|
||||
https://builds.dotnet.microsoft.com/dotnet/release-metadata/10.0/releases.json (windowsdesktop,
|
||||
win-x86 .exe), check the download against the SHA-512 listed there, and put its SHA-256 here.
|
||||
Any 10.x already installed is kept (IsDotNet10DesktopX86Installed); Microsoft Update patches it later. }
|
||||
DotNetDesktopUrl = 'https://builds.dotnet.microsoft.com/dotnet/WindowsDesktop/10.0.12/windowsdesktop-runtime-10.0.12-win-x86.exe';
|
||||
DotNetDesktopSha256 = '57c1d40967b73785b9ef95de5f0878e9264423228971a71eb362c03ae01937f5';
|
||||
DotNetDesktopFile = 'windowsdesktop-runtime-10.0.12-win-x86.exe';
|
||||
DotNetManualUrl = 'https://dotnet.microsoft.com/download/dotnet/10.0';
|
||||
|
||||
var
|
||||
SuiteDirPage: TInputDirWizardPage;
|
||||
DotNetDownloadPage: TDownloadWizardPage;
|
||||
{ Set once the .NET step ran (interactive: on leaving the Ready page; silent: in PrepareToInstall). }
|
||||
DotNetHandled: Boolean;
|
||||
{ True once the user (or /SUITEDIR / a previous install) chose the Suite folder explicitly;
|
||||
until then it follows the RynthCore folder as a sibling "RynthSuite" folder. }
|
||||
SuiteDirPinned: Boolean;
|
||||
|
||||
function CmdLineParamExists(const Value: string): Boolean;
|
||||
var
|
||||
I: Integer;
|
||||
|
|
@ -125,6 +272,353 @@ begin
|
|||
end;
|
||||
end;
|
||||
|
||||
{ Returns the value of a /NAME=value command-line switch, or '' when absent. }
|
||||
function CmdLineParamValue(const Name: string): string;
|
||||
var
|
||||
I: Integer;
|
||||
Prefix: string;
|
||||
begin
|
||||
Result := '';
|
||||
Prefix := '/' + Name + '=';
|
||||
for I := 1 to ParamCount do
|
||||
if CompareText(Copy(ParamStr(I), 1, Length(Prefix)), Prefix) = 0 then
|
||||
begin
|
||||
Result := RemoveQuotes(Copy(ParamStr(I), Length(Prefix) + 1, MaxInt));
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
{ Suite folder recorded by an earlier install in the SAME install mode (HKA: HKCU per-user, HKLM all-users),
|
||||
or ''. Never adopt the other mode's folder: two installs sharing a Suite folder would delete each other's
|
||||
files on uninstall. }
|
||||
function RegisteredSuiteDir: string;
|
||||
begin
|
||||
Result := '';
|
||||
if not RegQueryStringValue(HKA, 'Software\Rynth', 'SuiteDir', Result) then
|
||||
Result := '';
|
||||
end;
|
||||
|
||||
{ Default Suite folder for a given RynthCore folder: its sibling "RynthSuite". }
|
||||
function SiblingSuiteDir(const CoreDir: string): string;
|
||||
begin
|
||||
Result := AddBackslash(ExtractFileDir(RemoveBackslashUnlessRoot(CoreDir))) + 'RynthSuite';
|
||||
end;
|
||||
|
||||
// {code:GetSuiteDir}: the chosen RynthSuite folder, without a trailing backslash.
|
||||
function GetSuiteDir(Param: string): string;
|
||||
begin
|
||||
if SuiteDirPage = nil then
|
||||
Result := DefaultSuiteDir
|
||||
else if WizardSilent and not SuiteDirPinned then
|
||||
{ Silent installs never run NextButtonClick: follow /DIR= with a sibling RynthSuite folder. }
|
||||
Result := SiblingSuiteDir(WizardDirValue)
|
||||
else
|
||||
Result := RemoveBackslashUnlessRoot(Trim(SuiteDirPage.Values[0]));
|
||||
end;
|
||||
|
||||
// Number of entries in ExperimentalPluginName; keep in sync with the [Components]/[Files] experimental rows.
|
||||
const
|
||||
ExperimentalCount = 6;
|
||||
|
||||
// Experimental plugin names; component "experimental\<lowercase name>" installs <Suite>\<Name>\RynthCore.Plugin.<Name>.dll.
|
||||
function ExperimentalPluginName(Index: Integer): string;
|
||||
begin
|
||||
case Index of
|
||||
0: Result := 'RynthChat';
|
||||
1: Result := 'RynthJuice';
|
||||
2: Result := 'RynthNav';
|
||||
3: Result := 'RynthTracker';
|
||||
4: Result := 'RynthVision';
|
||||
5: Result := 'UbRythai';
|
||||
else
|
||||
Result := '';
|
||||
end;
|
||||
end;
|
||||
|
||||
function ExperimentalSelected(Index: Integer): Boolean;
|
||||
begin
|
||||
Result := WizardIsComponentSelected('experimental\' + Lowercase(ExperimentalPluginName(Index)));
|
||||
end;
|
||||
|
||||
// Number of entries in SuitePluginName; keep in sync with the [Components]/[Files] suite rows.
|
||||
const
|
||||
SuitePluginCount = 21;
|
||||
|
||||
// Companion plugin names; component "suite\<lowercase name>" installs <Suite>\<Name>\RynthCore.Plugin.<Name>.dll.
|
||||
function SuitePluginName(Index: Integer): string;
|
||||
begin
|
||||
case Index of
|
||||
0: Result := 'RynthOracle';
|
||||
1: Result := 'RynthILT';
|
||||
2: Result := 'RynthInventory';
|
||||
3: Result := 'RynthSort';
|
||||
4: Result := 'RynthAChard';
|
||||
5: Result := 'RynthAelrynth';
|
||||
6: Result := 'RynthColdeve';
|
||||
7: Result := 'RynthConquest';
|
||||
8: Result := 'RynthDerptide';
|
||||
9: Result := 'RynthDreamWeave';
|
||||
10: Result := 'RynthEversong';
|
||||
11: Result := 'RynthFrostACE';
|
||||
12: Result := 'RynthFrostcull';
|
||||
13: Result := 'RynthLeafDawn';
|
||||
14: Result := 'RynthLeafdawning';
|
||||
15: Result := 'RynthLevistras';
|
||||
16: Result := 'RynthPortalStorm';
|
||||
17: Result := 'RynthReefcull';
|
||||
18: Result := 'RynthSundering';
|
||||
19: Result := 'RynthThistlecrown';
|
||||
20: Result := 'RynthThreads';
|
||||
else
|
||||
Result := '';
|
||||
end;
|
||||
end;
|
||||
|
||||
function SuitePluginSelected(Index: Integer): Boolean;
|
||||
begin
|
||||
Result := WizardIsComponentSelected('suite\' + Lowercase(SuitePluginName(Index)));
|
||||
end;
|
||||
|
||||
{ True when anything is going into the RynthSuite folder (controls the Suite folder page / memo line). }
|
||||
function AnySuiteComponentSelected: Boolean;
|
||||
var
|
||||
I: Integer;
|
||||
begin
|
||||
Result := WizardIsComponentSelected('rynthai') or WizardIsComponentSelected('monstereditor');
|
||||
for I := 0 to SuitePluginCount - 1 do
|
||||
if SuitePluginSelected(I) then
|
||||
Result := True;
|
||||
for I := 0 to ExperimentalCount - 1 do
|
||||
if ExperimentalSelected(I) then
|
||||
Result := True;
|
||||
end;
|
||||
|
||||
// {code:GetPendingPlugins}: ';'-separated plugin DLLs for the launcher to add to its Plugins list on next start.
|
||||
function GetPendingPlugins(Param: string): string;
|
||||
var
|
||||
I: Integer;
|
||||
Name: string;
|
||||
begin
|
||||
Result := '';
|
||||
if WizardIsComponentSelected('rynthai') then
|
||||
Result := GetSuiteDir('') + '\RynthAi\RynthCore.Plugin.RynthAi.dll';
|
||||
for I := 0 to SuitePluginCount - 1 do
|
||||
if SuitePluginSelected(I) then
|
||||
begin
|
||||
Name := SuitePluginName(I);
|
||||
if Result <> '' then
|
||||
Result := Result + ';';
|
||||
Result := Result + GetSuiteDir('') + '\' + Name + '\RynthCore.Plugin.' + Name + '.dll';
|
||||
end;
|
||||
for I := 0 to ExperimentalCount - 1 do
|
||||
if ExperimentalSelected(I) then
|
||||
begin
|
||||
Name := ExperimentalPluginName(I);
|
||||
if Result <> '' then
|
||||
Result := Result + ';';
|
||||
Result := Result + GetSuiteDir('') + '\' + Name + '\RynthCore.Plugin.' + Name + '.dll';
|
||||
end;
|
||||
end;
|
||||
|
||||
function HasPendingPlugins: Boolean;
|
||||
begin
|
||||
Result := GetPendingPlugins('') <> '';
|
||||
end;
|
||||
|
||||
{ ── .NET 10 Desktop Runtime (x86) ─────────────────────────────────────────── }
|
||||
|
||||
{ True when Root (a ...\shared\Microsoft.WindowsDesktop.App folder) holds a 10.x version folder. }
|
||||
function HasVersion10Folder(const Root: string): Boolean;
|
||||
var
|
||||
FindRec: TFindRec;
|
||||
begin
|
||||
Result := False;
|
||||
if FindFirst(AddBackslash(Root) + '10.*', FindRec) then
|
||||
try
|
||||
repeat
|
||||
if FindRec.Attributes and FILE_ATTRIBUTE_DIRECTORY <> 0 then
|
||||
begin
|
||||
Result := True;
|
||||
Exit;
|
||||
end;
|
||||
until not FindNext(FindRec);
|
||||
finally
|
||||
FindClose(FindRec);
|
||||
end;
|
||||
end;
|
||||
|
||||
{ Detects the x86 Desktop Runtime 10.x the way the .NET host does: the shared framework folder under
|
||||
Program Files (x86)\dotnet, or the installer's registration in the 32-bit registry view. }
|
||||
function IsDotNet10DesktopX86Installed: Boolean;
|
||||
var
|
||||
Names: TArrayOfString;
|
||||
I: Integer;
|
||||
begin
|
||||
Result := HasVersion10Folder(ExpandConstant('{commonpf32}\dotnet\shared\Microsoft.WindowsDesktop.App'));
|
||||
if Result then Exit;
|
||||
if RegGetValueNames(HKLM32, 'SOFTWARE\dotnet\Setup\InstalledVersions\x86\sharedfx\Microsoft.WindowsDesktop.App', Names) then
|
||||
for I := 0 to GetArrayLength(Names) - 1 do
|
||||
if Copy(Names[I], 1, 3) = '10.' then
|
||||
begin
|
||||
Result := True;
|
||||
Exit;
|
||||
end;
|
||||
end;
|
||||
|
||||
// Check function for the installdotnet task: offer it only when the runtime is missing.
|
||||
function DotNet10DesktopMissing: Boolean;
|
||||
begin
|
||||
Result := not IsDotNet10DesktopX86Installed;
|
||||
end;
|
||||
|
||||
function OnDotNetDownloadProgress(const Url, FileName: String; const Progress, ProgressMax: Int64): Boolean;
|
||||
begin
|
||||
Result := True; { never cancel from code; the download page has its own Abort button }
|
||||
end;
|
||||
|
||||
{ Downloads and runs the .NET 10 Desktop Runtime installer when the task is selected and the runtime is
|
||||
still missing. Returns '' on success / nothing to do, else a reason. Never blocks the RynthCore install. }
|
||||
function InstallDotNetRuntime(UsePage: Boolean): string;
|
||||
var
|
||||
SetupPath: string;
|
||||
ResultCode: Integer;
|
||||
begin
|
||||
Result := '';
|
||||
DotNetHandled := True;
|
||||
if not WizardIsTaskSelected('installdotnet') or IsDotNet10DesktopX86Installed then
|
||||
Exit;
|
||||
|
||||
Log('.NET 10 Desktop Runtime (x86) missing; downloading ' + DotNetDesktopUrl);
|
||||
try
|
||||
if UsePage then
|
||||
begin
|
||||
DotNetDownloadPage.Clear;
|
||||
DotNetDownloadPage.Add(DotNetDesktopUrl, DotNetDesktopFile, DotNetDesktopSha256);
|
||||
DotNetDownloadPage.Show;
|
||||
try
|
||||
DotNetDownloadPage.Download;
|
||||
finally
|
||||
DotNetDownloadPage.Hide;
|
||||
end;
|
||||
end
|
||||
else
|
||||
DownloadTemporaryFile(DotNetDesktopUrl, DotNetDesktopFile, DotNetDesktopSha256, @OnDotNetDownloadProgress);
|
||||
except
|
||||
Result := 'the download failed (' + GetExceptionMessage + ')';
|
||||
Exit;
|
||||
end;
|
||||
|
||||
{ The runtime's own bundle asks for elevation (UAC) itself when this setup is not elevated. }
|
||||
SetupPath := ExpandConstant('{tmp}\' + DotNetDesktopFile);
|
||||
Log('Running ' + SetupPath + ' /install /quiet /norestart');
|
||||
if not ShellExec('', SetupPath, '/install /quiet /norestart', '', SW_SHOW, ewWaitUntilTerminated, ResultCode) then
|
||||
Result := 'its installer could not be started (' + SysErrorMessage(ResultCode) + ')'
|
||||
{ 0 = installed, 3010/1641 = installed (restart pending/started), 1638 = a newer version is already installed }
|
||||
else if (ResultCode <> 0) and (ResultCode <> 3010) and (ResultCode <> 1641) and (ResultCode <> 1638) then
|
||||
Result := 'its installer exited with code ' + IntToStr(ResultCode) + ' (1602 = cancelled)'
|
||||
else
|
||||
Log('.NET 10 Desktop Runtime installer finished, exit code ' + IntToStr(ResultCode));
|
||||
end;
|
||||
|
||||
{ Runs the .NET step and reports (but never fails on) a problem. }
|
||||
procedure HandleDotNetRuntime(UsePage: Boolean);
|
||||
var
|
||||
Problem: string;
|
||||
begin
|
||||
Problem := InstallDotNetRuntime(UsePage);
|
||||
if Problem = '' then Exit;
|
||||
Log('.NET 10 Desktop Runtime was not installed: ' + Problem);
|
||||
if not WizardSilent then
|
||||
MsgBox('The Microsoft .NET 10 Desktop Runtime could not be installed: ' + Problem + '.' + #13#10#13#10 +
|
||||
'RynthCore will still be installed and works without it (it is self-contained). ' +
|
||||
'You can install the runtime later from:' + #13#10 + DotNetManualUrl, mbInformation, MB_OK);
|
||||
end;
|
||||
|
||||
procedure InitializeWizard;
|
||||
var
|
||||
Initial: string;
|
||||
begin
|
||||
{ After the Components page, so ShouldSkipPage knows whether any Suite component was picked. }
|
||||
SuiteDirPage := CreateInputDirPage(wpSelectComponents,
|
||||
'Select RynthSuite Location',
|
||||
'Where should the RynthSuite plugins and their data be installed?',
|
||||
'RynthAi, the Monster Editor, the companion plugins and any experimental plugins you picked will be installed into the RynthSuite folder below, and your ' +
|
||||
'profiles (nav, loot, meta, settings) are kept there. To continue, click Next. ' +
|
||||
'If you would like to select a different folder, click Browse.',
|
||||
False, 'RynthSuite');
|
||||
SuiteDirPage.Add('');
|
||||
|
||||
{ Priority: /SUITEDIR= → previous install of this setup → registry → C:\Games\RynthSuite. }
|
||||
Initial := CmdLineParamValue('SUITEDIR');
|
||||
if Initial = '' then Initial := GetPreviousData('SuiteDir', '');
|
||||
if Initial = '' then Initial := RegisteredSuiteDir;
|
||||
SuiteDirPinned := Initial <> '';
|
||||
if Initial = '' then Initial := DefaultSuiteDir;
|
||||
SuiteDirPage.Values[0] := Initial;
|
||||
|
||||
{ Progress page for the optional .NET 10 Desktop Runtime download (shown only when that task runs). }
|
||||
DotNetDownloadPage := CreateDownloadPage('Downloading Prerequisites',
|
||||
'Downloading the Microsoft .NET 10 Desktop Runtime (x86)...', @OnDotNetDownloadProgress);
|
||||
end;
|
||||
|
||||
procedure RegisterPreviousData(PreviousDataKey: Integer);
|
||||
begin
|
||||
SetPreviousData(PreviousDataKey, 'SuiteDir', GetSuiteDir(''));
|
||||
end;
|
||||
|
||||
function ShouldSkipPage(PageID: Integer): Boolean;
|
||||
begin
|
||||
{ No Suite components selected → no Suite folder to choose. }
|
||||
Result := (SuiteDirPage <> nil) and (PageID = SuiteDirPage.ID) and not AnySuiteComponentSelected;
|
||||
end;
|
||||
|
||||
function NextButtonClick(CurPageID: Integer): Boolean;
|
||||
var
|
||||
Dir: string;
|
||||
begin
|
||||
Result := True;
|
||||
|
||||
{ Leaving the RynthCore folder page: keep an un-pinned Suite folder beside the chosen Core folder. }
|
||||
if (CurPageID = wpSelectDir) and not SuiteDirPinned then
|
||||
SuiteDirPage.Values[0] := SiblingSuiteDir(WizardDirValue);
|
||||
|
||||
if (SuiteDirPage <> nil) and (CurPageID = SuiteDirPage.ID) then
|
||||
begin
|
||||
Dir := GetSuiteDir('');
|
||||
{ Require an absolute local or UNC path (e.g. D:\Games\RynthSuite or \\server\share\RynthSuite). }
|
||||
if (Length(Dir) < 3) or not ((Copy(Dir, 2, 2) = ':\') or (Copy(Dir, 1, 2) = '\\')) then
|
||||
begin
|
||||
MsgBox('Please choose a full folder path for RynthSuite, for example D:\Games\RynthSuite.', mbError, MB_OK);
|
||||
Result := False;
|
||||
Exit;
|
||||
end;
|
||||
SuiteDirPinned := True;
|
||||
end;
|
||||
|
||||
{ Leaving the Ready page: fetch/install the .NET runtime first (with a progress page) if that task is on. }
|
||||
if CurPageID = wpReady then
|
||||
HandleDotNetRuntime(True);
|
||||
end;
|
||||
|
||||
// Silent installs skip the wizard pages, so the .NET step runs here instead (no progress page). Never blocks.
|
||||
function PrepareToInstall(var NeedsRestart: Boolean): String;
|
||||
begin
|
||||
if not DotNetHandled then
|
||||
HandleDotNetRuntime(False);
|
||||
Result := '';
|
||||
end;
|
||||
|
||||
function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo,
|
||||
MemoComponentsInfo, MemoGroupInfo, MemoTasksInfo: String): String;
|
||||
begin
|
||||
Result := MemoDirInfo + NewLine;
|
||||
if AnySuiteComponentSelected then
|
||||
Result := Result + 'RynthSuite location:' + NewLine + Space + GetSuiteDir('') + NewLine;
|
||||
Result := Result + NewLine + MemoComponentsInfo;
|
||||
if MemoTasksInfo <> '' then
|
||||
Result := Result + NewLine + MemoTasksInfo;
|
||||
end;
|
||||
|
||||
(* -------------------------------------------------------------------------------------
|
||||
Decal + RynthCore (experimental), strictly opt-in (since 2026-10-10): on install and on
|
||||
every update (the launcher's updater runs this installer with /SILENT), the RynthCore
|
||||
|
|
|
|||
Loading…
Reference in a new issue