question

andreasbright-4989 avatar image
0 Votes"
andreasbright-4989 asked Jason-MSFT answered

Windows app (Win32) - Detection rules

Hi,

Whats is the recommended way to detect an application ?

Say for example I publish adobe reader, and I have a detection rule for checking if the file C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe exists

I know that this will trigger if the file exists, but what happens when there is a new version out and I want to update the application ? If I republish the app with the same rule, it will never apply, right ?

Do you recommend to trigger on a registry key instead ?

Comments.

/R
Andy

intune-application-management
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EswarKoneti-MVP avatar image
1 Vote"
EswarKoneti-MVP answered EswarKoneti-MVP edited

Say for example I publish adobe reader, and I have a detection rule for checking if the file C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe exist--->If you go with this setting, if the file exist, the application detection rule is passed hence no need to install the application.
It it not recommended to go with simple file detection rule as such like this. Either go with product ID or file version (greater than or equal to) or something that could help you to install latest version.
It all depends on how you identify/tell you have new application to be installed on the devices. is that by product ID or file version etc.

Regards,
Eswar
www.eskonr.com
If the response is helpful, please click "Accept Answer" and upvote it.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Crystal-MSFT avatar image
1 Vote"
Crystal-MSFT answered

@andreasbright-4989, Agree with Eswar, For the file, if it is also the same for the new version, the update will not installed.

For Win32 app, there are other detection rule type like registry or MSI. For example, we can check what is the registry key for the version of adobe reader. And configure the detection method as version comparison, operator as "greater than or equal to" and then insert the value you want. We can see more detail in the following link:
https://docs.microsoft.com/en-us/mem/intune/apps/apps-win32-add#step-4-detection-rules

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Jason-MSFT avatar image
1 Vote"
Jason-MSFT answered

I strongly prefer MSI or registry detection (based on the app's ARP info). File based rules have lots of variability and file versions aren't always the same as product versions.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.