You would need to find out what an error code of 259 means in the context of the installer. When you run it locally are you getting the same return code, in powershell this is set to ‘$LASTEXITCODE’, in cmd.exe you can get the last rc with ‘echo %ERRORLEVEL%’.
Ok so you need to fix out what error 259 means. Look to see if you can enable any logging to identify the issue, this would all be specific to that installer so start with the company that produces it and read through their docs.
Also as an FYI, normally an rc of 259 means the process is still active [1] which tells me the installer is still running in the background. I do remember seeing an issue with the Oracle installer not working in Ansible and exits straight away and there’s a special command line argument or response file value you must set for it to wait until the installer is complete. Have a look at the setup.exe documentation and see what you can find.
This may not be the case with the Oracle installer as the code could mean something else but this scenario does sound familiar.