Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open an exe file through a link in a HTML file?

Tags:

html

I want to open an exe file through a link in an HTML file.

Is it possible? If so, how?

like image 560
Mohammad Dayyan Avatar asked Nov 17 '10 18:11

Mohammad Dayyan


2 Answers

On a local computer you can do it with ease, So you have just to Create your own custom protocol, like the one used by Skype or iTunes to launch their native windows applications : - Custom protocol has to be created on Windows Registry by adding a entry as the one here :

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ACCapp]
@="URL:ACCapp Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\ACCapp\shell]

[HKEY_CLASSES_ROOT\ACCapp\shell\open]

[HKEY_CLASSES_ROOT\ACCapp\shell\open\command]
@="msaccess.exe"

the word in Blod ACCapp is the name of the custom protocol that would be used on your html href link as follow

<a href="ACCapp://">PLEASE RUN MS Access exe file</a>
this link wont run unless you add the registry keys. nb: don't ever make limits to your imagination just search an you'l find. hope it helps
like image 76
Mahfoud Boukert Avatar answered Sep 22 '22 17:09

Mahfoud Boukert


You can not start/execute an .exe file that resides locally on the users machine or through a site. The user must first download the exe file and then run the executable.

like image 27
RDL Avatar answered Sep 24 '22 17:09

RDL