install android app when image is clicked

We have a repository of android apps that are not on the playstore, we would like to code option t click an image of the app and have it installed from our server. On the next click of the image, the a will run since it is now installed. How do I go about doing this?