Managing apps and software deployment through Microsoft Intune
@Joe H , For the detection rule, we can choose either of MSI, File, Registry. Any one can work. We can see more details in the following link:
https://learn.microsoft.com/en-us/mem/intune/apps/apps-win32-add#step-4-detection-rules
From your description, I know the variable did not point eh user you want. This is because when the detection method runs, it will run in the SYSTEM context..at which point the variable means nothing because the system is the "logged on" user. A similar issue in the following link:
https://social.technet.microsoft.com/Forums/en-US/3fd796c4-45f0-42cf-bc3d-bccd6caf73a8/detection-method-using-userprofile-in-the-path?forum=configmanagerapps
Given the situation, we suggest to try other method like registry.
Hope it can help.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.