Hi, @Henry Wu 8310
Thank you for posting in Microsoft Q&A forum.
If you are unable to edit the detection method, it could be because the app was deployed as a required deployment. In this case, SCCM will automatically try to reinstall the app if it detects that it is not present on the client machine.
To prevent this, you can change the deployment type to "Available" instead of "Required". This will allow users to install the app on their own, and SCCM will not try to reinstall it automatically.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".