Smart App Banners are a recent addition for iOS devices in iOS 6. It involves the simple addition of a meta tag that when visited with Mobile Safari checks
There really isn't. You could register your app to handle certain urls, such as http://app.mydomain.tld although that is somewhat frowned upon by the the more seasoned android folks. If invoked, this url would invoke the app with full URI (which is the mechanism to pass data to it). If the app wasn't installed or set to handle those urls, the browser would then redirect to a page on your server which could prompt for install.