-
Notifications
You must be signed in to change notification settings - Fork 17
Description
I have been trying to configure a Custom requirements rule, so I can target an install against all devices, but will only trigger if an older version is found.
In the Docs (https://msendpointmgr.com/intune-app-factory/#58-modify-the-appjson-file), it states:
CustomRequirementRule
This section is by default left empty, but can be utilized if additional File, Registry, or Script based requirement rules is needed. This section will be further documented in the future.
I had assumed the formatting of the App.json "CustomRequirementRule" section would follow a similar layout as the "DetectionRule" content, but it appears not.
As an example, I have tried adding the following to a "Microsoft ODBC Driver 17 for SQL Server" deployment (via its App.json file) so it will only install the newest ODBC Driver 17 version where an older ODBC Driver 17 version is already installed / detected:
"CustomRequirementRule": [
{
"Type": "Registry",
"DetectionMethod": "VersionComparison",
"KeyPath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft ODBC Driver 17 for SQL Server\\CurrentVersion",
"ValueName": "Version",
"Operator": "lessThan",
"Value": "<replaced_by_pipeline>",
"Check32BitOn64System": "false"
}
],
This fails to work, however the same content (albeit with a different "Operator" (greaterThanOrEqual)) works fine on the "DetectionRule":
"DetectionRule": [
{
"Type": "Registry",
"DetectionMethod": "VersionComparison",
"KeyPath": "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft ODBC Driver 17 for SQL Server\\CurrentVersion",
"ValueName": "Version",
"Operator": "greaterThanOrEqual",
"Value": "<replaced_by_pipeline>",
"Check32BitOn64System": "false"
}
],
Does CustomRequirementRule work? / Has anyone managed to use this function?