How do I use a URI and if a user does not have my app installed...

How do I use a URI and if a user does not have my app installed, redirect them to another web page but if they do have it installed, open my app ?

Tags: text GPT4 installed redirect another installed