Forum Discussion
Application Script Detection Method - Are Application Files Accessible to the Detection Script?
Maybe just a simple idea, why not creating the intunewinapp and specifying the copy command to copy this file to specific location which you can use in your detection script? Works for me ....
- DanWheelerNov 17, 2021Brass Contributor
Hi Rudy, yeah I've been noodling on that but I think that goes back to the root of my question. That's a chicken/egg problem. The application (with the file and copy job) won't run unless the detection method determines that the app isn't installed but the detection method can't run without the file. I've also been having trouble getting the application install to run when the detection method fails but I think that has more to do with what I'm outputting on the custom detection script. Seems like any kind of unexpected error in the detection script results in an "unknown" detection which does not trigger the application.
in any case, I suppose I could create a two step detection method... when the detection runs and the file is missing, it would immediately report that the application is missing which would run the application which would copy the file. The next time it runs, the file would be present, then it would run the detection logic and report success or failure.