Having the same issue with installing Symantec. We had a big crash on SCCM, took MS engineers several weeks to help stand the system back up, and had to move main distribution point to another location since the original is corrupted.
Since the crash, when deploying SEP, the original detection method will determine it's not installed, then install the application, and on post detection is when it fails, in Software Center with the error code;
0x87D00324 (-2016410844), The Application was not detected after installation completed.
So it first detects the version is not installed, then it installs the new app, and then fails for post detection of what it just installed. This happens to at least 50% of the endpoint in the collection, and there is nothing different with the machine builds.
I use two detection methods, one for file location, and the second for registry key Location:

If I push a re-install of the client, it the detects it as "Already Compliant".
Now that's weird... it detects it's not installed, then installs, then it can't detect it after the installation, re-install the client and it detects it's installed?
So I don't think it's the detection method, but possibly a corrupted client since the SCCM crash and redirection of the distribution point.
I guess we could push a global Client re-install and see it that resolves the detection issue.
Any idea or suggestion...?
The Appenforce.log
Performing detection of app deployment type Symantec Endpoint Protection 14.3.7393.4000 - Any Win - x64(ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, revision 2) for system. AppEnforce 4/9/2022 7:01:25 PM 3280 (0x0CD0)
+++ Application not discovered. [AppDT Id: ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, Revision: 2] AppEnforce 4/9/2022 7:01:25 PM 3280 (0x0CD0)
++++++ App enforcement completed (80 seconds) for App DT "Symantec Endpoint Protection 14.3.7393.4000 - Any Win - x64" [ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15], Revision: 2, User SID: ] ++++++ AppEnforce 4/9/2022 7:01:25 PM 3280 (0x0CD0)
+++ Starting Install enforcement for App DT "Symantec Endpoint Protection 14.3.7393.4000 - Any Win - x64" ApplicationDeliveryType - ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, Revision - 2, ContentPath - C:\WINDOWS\ccmcache\1t, Execution Context - System AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Performing detection of app deployment type Symantec Endpoint Protection 14.3.7393.4000 - Any Win - x64(ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, revision 2) for system. AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
+++ Application not discovered. [AppDT Id: ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, Revision: 2] AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
App enforcement environment:
Context: Machine
Command line: "setup.exe"
Allow user interaction: No
UI mode: 1
User token: null
Session Id: 4294967295
Content path: C:\WINDOWS\ccmcache\1t
Working directory: AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Prepared working directory: C:\WINDOWS\ccmcache\1t AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Prepared command line: "C:\WINDOWS\ccmcache\1t\setup.exe" AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Executing Command line: "C:\WINDOWS\ccmcache\1t\setup.exe" with system context AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Working directory C:\WINDOWS\ccmcache\1t AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Post install behavior is BasedOnExitCode AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Waiting for process 9640 to finish. Timeout = 45 minutes. AppEnforce 4/10/2022 7:04:54 PM 11016 (0x2B08)
Process 9640 terminated with exitcode: 0 AppEnforce 4/10/2022 7:05:10 PM 11016 (0x2B08)
Looking for exit code 0 in exit codes table... AppEnforce 4/10/2022 7:05:10 PM 11016 (0x2B08)
Matched exit code 0 to a Success entry in exit codes table. AppEnforce 4/10/2022 7:05:10 PM 11016 (0x2B08)
Performing detection of app deployment type Symantec Endpoint Protection 14.3.7393.4000 - Any Win - x64(ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, revision 2) for system. AppEnforce 4/10/2022 7:05:10 PM 11016 (0x2B08)
+++ Application not discovered. [AppDT Id: ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15, Revision: 2] AppEnforce 4/10/2022 7:05:10 PM 11016 (0x2B08)
++++++ App enforcement completed (15 seconds) for App DT "Symantec Endpoint Protection 14.3.7393.4000 - Any Win - x64" [ScopeId_1581B374-E276-44D2-9CBD-920E86D6D1D5/DeploymentType_f1aedb12-2b55-4087-b89f-f0fd494e7a15], Revision: 2, User SID: ] ++++++ AppEnforce 4/10/2022 7:05:10 PM 11016 (0x2B08)