Request to install a software


I want to install a software through a authenticated website link. For
example installing of Yahoo messanger from yahoo link by assuming yahoo
link is a authenticated one. Could someone helps me how can I do this.
If possible can you please send me the sample code.