views:

240

answers:

2

I'd like to be able to give our users an option to create a desktop shortcut to our web site. I've done some research and found a number of articles using ActiveX to access the Shell API for Windows to perform this activity, but I'm curious as to whether there is a way to do it that is built into the browser that I might be missing that would be more portable than the ActiveX route.

+2  A: 

There is no built in way of doing this in the web browser. You're website has not way of interacting with anything but the browser, by default. You can go the ActiveX route, but that would only be supported by users running Internet Explorer. You could try and do it through Java, but you will likely run into security and trust issues. I would suggest you recommend your users just bookmark your page, or give them step by step instructions on how to create the shortcut themselves.

heavyd
+1  A: 

If by portable you mean portable across web browsers then I think you won't find a solution. Any security conscious browser would not allow this.

If by portable you mean portable across operating systems then I think you still won't find a solution. Partly because of the above reason, partly because not all operating systems and desktop environments support desktop icons/shortcuts at all.

Mikael Auno
I definitely meant portable across web browsers (even if some browsers just wouldn't do it). I've found two approaches thus far - one using ActiveX (example here: http://www.osix.net/modules/article/?id=74) and one using Google Gears (article here: http://www.18aproductions.co.uk/tools/#), both of which require Windows specific API's or an explicit download of software (Gears) that I don't think our users would perform.
rbieber