Topic: External Protocol Detection? (Page 1 of 1) |
|
---|---|
Neurotic (0) Inmate Newly admitted From: |
![]() 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 |
![]() 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: |
![]() Dan, |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() I am sure there is. |
Obsessive-Compulsive (I) Inmate From: |
![]() Dan, |
Maniac (V) Mad Scientist From: :morF |
![]() 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 |
![]() 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: |
![]() 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 |
![]() 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: |
![]() 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 |
![]() Sorry, divinechaos... that wasn't about your post, it was about WarMage's |
Paranoid (IV) Inmate From: Dublin, Ireland |
![]() 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. |