Forum Discussion
dmarquesgn
May 31, 2022Iron Contributor
Uninstall and Install Application on same Policy
Hi, I'm new to Intune and trying to set up some Application policies. Now I've got a challenge which I'm not sure if I can accomplish it via Intune and I need some guidance just to understand if...
May 31, 2022
Mmm sounds like a good idea... but I guess when the old version is deleted and the new version is installed it sort of fails at detection.....
NielsScheffers
May 31, 2022Iron Contributor
That's the idea. Detection should fail when the old version is deleted. It should, of course, stop failing when the new version is installed .
A single rule would need to see the app as 'already installed', whether the old or new version is present. Maybe check for the existence of the executable or folder. That'll prevent installation until the separate script has removed the old version.
One BIG "if": the old and new version have to share the same location.
Anyway, it doesn't really matter as timing is of the essence here. And that makes your solution much, much more predictable and suitable.