Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create web app shortcut on user's desktop programmatically?

For enterprise intranet web application, is there any way to create a desktop shortcut of web application on user's desktop? I'm looking for functionality similar to Google Gears, but without installing Google Gears. I'm looking to give user's a link on web application that says "Click here to install desktop shortcut", when they click on it, a desktop shortcut is installed with the custom icon for our application. Is there a way to do it using javascript or any other client side technologies? I don't want to run any exe on user's machines. Even though it's intranet, I have to jump through lot of corporate hoops, compliance approvals, etc to run exe on their machine. We are trying to avoid that, due to time constraints. User machines are windows XP with IE6 installed. They may all upgrade within next year's time to Windows 7 with IE8. Intranet web application in question is developed using asp.net 3.5, c#.

like image 277
Tejas Avatar asked Jan 27 '11 19:01

Tejas


People also ask

How do I create a URL shortcut on my desktop?

Left click the icon located to the left side of the address bar. This is where you see the full URL to the website. Continue to hold down the mouse button and drag the icon to your desktop. This creates the shortcut.


2 Answers

If this is really a corporate environment then just go talk to the network operations team.

It should be trivial for them to add something to the login script to push this link to the people's desktops.

More Info:
http://www.petri.co.il/forums/showthread.php?t=6154
http://social.technet.microsoft.com/Forums/en/winserverGP/thread/02a7bfbb-180f-40eb-82e3-2343b2bf31eb

like image 139
NotMe Avatar answered Oct 05 '22 23:10

NotMe


Alright, at first I thought that this was an impossible task, until I realized that it's not.

A shortcut is just a file, and we all know you can download files from links.

I'm not sure how well windows shortcuts can be transferred from computer to computer, but I would assume that a shortcut with a location like http://www.google.com/ is not tied to any specific windows machine.

You could zip the shortcut, and point the link to the location of the zip file. Tell the users to unzip the file and place the shortcut. You may be able to just serve the shortcut, but you'd have to give the right headers, and probably specify application/octet-stream or something like it.

Alternatively you can tell them to right click, go to new -> shortcut, and copy-pasta the url into the location box.

Alternatively you could write a batch file for the users to download that opens a url in the default browser.

I know it's not quite as direct as click-button -> receive bacon but it will work.

like image 21
zzzzBov Avatar answered Oct 05 '22 23:10

zzzzBov