diff --git a/installer/RynthCore.iss b/installer/RynthCore.iss index e744105..59dfdd5 100644 --- a/installer/RynthCore.iss +++ b/installer/RynthCore.iss @@ -69,65 +69,6 @@ Name: "{group}\Uninstall RynthCore"; Filename: "{uninstallexe}" ; Optional Desktop shortcut (created only when the desktopicon task is checked) Name: "{autodesktop}\RynthCore"; Filename: "{app}\{#AppExeName}"; WorkingDir: "{app}"; Tasks: desktopicon -; ── Pascal scripting ────────────────────────────────────────────────────────── -[Code] - -// Returns True if acclient.exe has any running instances. -function IsAcClientRunning(): Boolean; -var - WbemLocator, WbemService, QueryResult: Variant; -begin - Result := False; - try - WbemLocator := CreateOleObject('WbemScripting.SWbemLocator'); - WbemService := WbemLocator.ConnectServer('.', 'root\cimv2', '', ''); - QueryResult := WbemService.ExecQuery( - 'SELECT Handle FROM Win32_Process WHERE Name = "acclient.exe"'); - Result := QueryResult.Count > 0; - except - // If WMI fails for any reason just let the install continue. - Result := False; - end; -end; - -function InitializeSetup(): Boolean; -begin - Result := True; - - if IsAcClientRunning() then - begin - if MsgBox( - 'Asheron''s Call (acclient.exe) is currently running.' + #13#10 + #13#10 + - 'Please close Asheron''s Call before continuing — the installer ' + - 'needs to write files that are loaded by acclient.exe.' + #13#10 + #13#10 + - 'Click OK once you have closed it, or Cancel to abort.', - mbConfirmation, MB_OKCANCEL) = IDCANCEL then - begin - Result := False; - end; - end; -end; - -// Customise the Finish page with getting-started instructions. -procedure CurPageChanged(CurPageID: Integer); -var - Msg: String; -begin - if CurPageID <> wpFinish then Exit; - - Msg := - 'RynthCore is installed.' + #13#10 + #13#10 + - 'Getting started:' + #13#10 + - ' 1. Start Asheron''s Call and log in to your character.' + #13#10 + - ' 2. Open RynthCore (Start Menu or Desktop shortcut).' + #13#10 + - ' 3. In the Launcher, set your acclient.exe path under Runtime Paths.' + #13#10 + - ' 4. Click "Inject Running AC" to activate the overlay.' + #13#10 + - ' The RynthAi panel should appear inside the AC window.' + #13#10 + #13#10 + - 'Alternatively, use "Launch + Inject" to have the launcher start' + #13#10 + - 'AC and inject automatically once it finishes loading.' + #13#10 + #13#10 + - 'Loot, nav, and meta profiles go in:' + #13#10 + - ' C:\Games\RynthSuite\RynthAi\' + #13#10 + #13#10 + - 'Log file: %USERPROFILE%\Desktop\RynthCore.log'; - - WizardForm.FinishedLabel.Caption := Msg; -end; +; No [Code] section — the Pascal code block triggers ISPP preprocessor +; errors on CI (Inno Setup 6.7.1) due to how it handles #char literals. +; Getting-started instructions are included in the GitHub Release notes.