Topic: External Protocol Detection? (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
posted 05-31-2006 21:54
I'm creating a Windows application, and I want to be able to launch it with specific URLs from web pages. My installer registers (in the Windows registry) an external protocol for the browser (i.e., myprotocol://), and both IE and Firefox launch the app properly. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 05-31-2006 22:51
If you are going to have enough access to the user's machine to change their registry settings you might find it easier to create a small plugin that would be installed (much like flash) that you can then check if that is installed in a similar fashion as you would check for the flash plugin. |
Obsessive-Compulsive (I) Inmate From: |
posted 06-01-2006 18:43
Dan, |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 06-01-2006 20:47
I am sure there is. |
Obsessive-Compulsive (I) Inmate From: |
posted 06-05-2006 23:38
Dan, |
Maniac (V) Mad Scientist From: :morF |
posted 06-18-2006 06:59
Just a question, though: why do you need to check for this protocol? If your program's installer is what registers it in the first place, you should be able to detect if it doesn't take in the registry in the first place, and refuse to continue the installation. |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 06-18-2006 08:44
I am imagining the situation that a user visits the target website. If they have installed the program they will be shown the appropriate links for the application. Otherwise a message to download the application will be presented. |
Nervous Wreck (II) Inmate From: |
posted 06-19-2006 09:46
Could you extend the browsers' javascript environment with a function or object you can check for? If it's present, the protocol is supported, otherwise it dies? |
Maniac (V) Mad Scientist From: :morF |
posted 06-19-2006 12:04
Except that this isn't the target website he appears to be talking about. This protocol that has been installed links to the program itself, loading up its web-page control panel or whatever. If you try to access that protocol (not detect it) then both firefox and IE throw a wobbly if it's not installed. |
Nervous Wreck (II) Inmate From: |
posted 06-20-2006 06:53
I understood, but you could install your javascript hook at the same time you install the program; much like various plugins used to explicitly install to selected browsers. |
Maniac (V) Mad Scientist From: :morF |
posted 06-21-2006 09:18
Sorry, divinechaos... that wasn't about your post, it was about WarMage's |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 06-27-2006 20:43
Isnt it possible to see if file:///c:\smalljs.htm exists within javascript? like if an iframe is able to load the htm file. Just a thought, not sure if it would work or is anything like what your after. |