Loading AIFP into P3d ver4 Problem

Hello. I am trying to install AI Flight Planner to use with P3d ver 4 but get the error message "No version of Flight Sim found in System Registry. AIFP cannot continue and will now shut down".
I have seen a similar post for someone trying to install for FSX SE, but not sure how to adapt the solution for P3d. Can someone help please?
I have previously installed and uninstalled FSX, FSX.SE and versions of P3d and i suspect the registry is not how it should be, but have no idea how to rectify this. The prvioiusly mentioned FSX SE post also mentions creating a file named AIFP.ini but I would need some help to adapt this solution for P3d. Thank you very much and a Happy New Year to all.
Robert
 
Top