I could not edit a document

While editing a document, a message appears saying that A Windows SharePoint Services compatible application could not be found. This has caused the document unedited. The installation of InfoPath has caused this and it is a very strange thing to me. Is there any idea or experience to solve it, please?
Error:
The document could not be opened for editing. A windows SharePoint Services compatible application could not be found to edit the document
