Link to home
Start Free TrialLog in
Avatar of plikakis
plikakis

asked on

Launch client executable from web browser

Is it possible to launch an executable (.exe) from an internet web site by clicking on a link within an html page?   Is there a way to force Netscape to prompt the user "open" a file, instead of "download" a file, when the user clicks on a link?

We were able to launch the executable from IE by doing the following:

1) Associated a "bogus" document extension (i.e. doc.9x9) to the executable (i.e. app.exe) on the client Windows machine.  Note: when we double click on the document within Windows Explorer, Microsoft Windows starts the application.

2) Created a link to the document (i.e. doc.9x9) - located on our web server directory - using HREF.  When the user clicks on the link, IE opens the "File Download" dialog.  If you then select "Open this file from its current location" and click the OK button, IE launches the application.  This is acceptable!!!

When we use Netscape and link to the document using HREF (same as in 2 above), Netscape opens the "Save as..." dialog.  Netscape assumes that we want to download the file.  We want Netscape to prompt the user "open" the file.

The webserver we are using is Microsoft IIS 4.0.  The executable is a file that is installed on each clients' Microsoft Windows machine.  This executable is NOT document based (i.e. Microsoft Word and Excel are document based.)  

The solution must work for both IE and Netscape browsers.  Security warnings are acceptable.  
Avatar of raizon
raizon

In Netscape you can go to Edit | Preferences | Applications and create the file type for your bogus file type to open with your application(executable).  You will have to do this on each windows machine.

Avatar of plikakis

ASKER

I had already tried this and Netscape still wanted to download the file.  I created a "new type" and entered the "file extension" and "application to use".  Do I have to enter something in the "Mime Type" field?
Yes you do.  What depends on the application.
It's not a standard application, it's a citrix based application.  I am not sure what the type should be.  Is there a "catch all" application type?
is it acceptable to get a plug-in for netscape to allow for activex solutions to be run from the browser? if so, then you could use something like WSH client side to execute the program
What does the mime type show for in windows File Type settings?

There is a plug-in available for netscape to allow activex but I'm not sure what its called.

If this is on your intranet, can you not require that for this page/site that your users use IE?  

Most browsers will NOT open an app automatically. You will get the prompt to save or open -- and then it's up to you.

This will happen whether the app is on your computer or the server. It's a security feature. You can possibly get around it using WSH in IE, but not in Netscape.
Webwoman is correct.  Most browsers will Not open an app automatically.

However in both IE and Netscape you have the option to uncheck the box to "always ask before opening files of this type".  Which I don't suggest having your users do for security reasons as webwoman stated.
- We do not want to automatically start the application;  we want to prompt the user. Netscape does not prompt us - it just wants to download the file.  We are happy with the way IE behaves (it prompts.)

- We can not force IE; this is not an intranet environment.  The site will be on the internet in a portal (user/password will be required to login).

- The MIME type in windows File Type settings is empty.  We tried some application types without success.  Any suggestions?



ASKER CERTIFIED SOLUTION
Avatar of raizon
raizon

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been open for some time and is now in
need of wrapping up.

Please DO NOT accept this comment as the answer to the question, it is purely an alert to the fact that this question is still open.

It would be greatly appreciated if any of the participants could comment back here in order to give assistance in what the status of this question is and what should be done with it (delete, 0 PAQ, award points etc).

Kindest Regards

Ant