You need to edit the config file on the target machine. Normally you find it here → “C:\ProgramData\checkmk\agent\check_mk.user.yml”.
For the path please don’t write something like this → 'C:\Program" "Files\
It will only work if the path is like this C:\Program Files\
.
Your “check_mk_agent.exe showconfig” shows also that no “fileinfo” is configured at the moment
fileinfo:
enabled: yes
path: []
In this output you must see your path if configured correctly.
If you edit the YAML file please pay attention to the formatting.