A couple of extra questions:
Was this a fresh installation or were you trying to upgrade the agent?
What Windows version are you using?
Could you check the contents of the installation directory?
ls 'C:\Program Files (x86)\ossec-agent\'Could you share the output of this command to see if the agent is installed?
Get-CimInstance -Class Win32_Product -Filter "Name = 'Wazuh Agent'"Thanks!