Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > Protocol handler different than XP?

Reply
Thread Tools Display Modes

Protocol handler different than XP?

 
 
Mesan
Guest
Posts: n/a

 
      08-14-2007
I've added a custom protocal handler that works great in XP, but when
I try to run it in Vista I get the following error:
"This file does not have a program associated with it for performing
this action. Create an asociation in the Set Associations control
panel."

When I pull up "Associate a file type or protocol with a specefic
program" from the Control Panel, my handler is not listed, nor is
there a way to add a protocol.

In XP I would just add registry keys to the HKCR\ hive, setting the
DefaultIcon key and a shellKey\open\command key.

What has changed in Vista? What am I missing? I have been unable to
find a post describing how to create a custom protocol handler in
Vista - surely I'm not the only one that wants to do that, so I've got
to be missing something.

Thanks for your help,

Mesan

 
Reply With Quote
 
 
 
 
Andrew McLaren
Guest
Posts: n/a

 
      08-14-2007
> What has changed in Vista? What am I missing? I have been unable to
> find a post describing how to create a custom protocol handler in
> Vista - surely I'm not the only one that wants to do that, so I've got
> to be missing something.



Hi Mesan,

Is it a handler for Search? Maybe you need to add DocumentType entries for
your handler? See:
http://msdn2.microsoft.com/en-us/library/bb266527.aspx

--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
Mesan
Guest
Posts: n/a

 
      08-15-2007
On Aug 14, 4:39 pm, "Andrew McLaren" <and...@fakeaddress.com> wrote:
> > What has changed in Vista? What am I missing? I have been unable to
> > find a post describing how to create a custom protocol handler in
> > Vista - surely I'm not the only one that wants to do that, so I've got
> > to be missing something.

>
> Hi Mesan,
>
> Is it a handler for Search? Maybe you need to add DocumentType entries for
> your handler? See:
> http://msdn2.microsoft.com/en-us/library/bb266527.aspx
>
> --
> Andrew McLaren
> amclar (at) optusnet dot com dot au


No, it's a handler to launch one of our LOB apps. That way we can
embed links in our programs and documents to launch a program and pull
up a specific customer or loan, for example. It's been enormously
useful and we've started to rely on it rather heavily. I'd sure like
to find out how to make it work in Vista.

Any other ideas?


 
Reply With Quote
 
Andrew McLaren
Guest
Posts: n/a

 
      08-16-2007
"Mesan" <> wrote ...
> No, it's a handler to launch one of our LOB apps. That way we can
> embed links in our programs and documents to launch a program and pull
> up a specific customer or loan, for example. It's been enormously
> useful and we've started to rely on it rather heavily. I'd sure like
> to find out how to make it work in Vista.


Hi Mesan,

In that case ... sorry, I dunno :-(

As a simple test, I compiled and installed the "alert" protocol handler
sample from MSDN:
http://msdn2.microsoft.com/en-us/lib...4.aspx#url_inv

On XP, this "alert" handler worked fine, as expected. Then I installed in in
Vista, creating the same HKCR keys to register the handler. The first time I
tried this, I got the same error you saw! Eureka, I thought - we were onto
something! Then I realised I was on 64 bit Windows; and I'd configurred the
"alert" keys under the 64 bit HKCR instead of under the SysWow64
Classes_Root. So I installed the "alert" protocol handler on a 32-bit Vista
machine instead; and this time the test "alert" handler worked perfectly,
the same as it did on XP.

The only diference is that on Vista, Internet Explorer throws up a "A
website wants to open content using this program on your computer" warning,
when the protocol handler kicks in. But I clicked OK to the warning, then IE
ran the alert.exe app with no problem. So in this minimal test scenario, all
that was needed to register and enable the alert protocol handler on Vista
was the same few HKCR reg keys that you'd use on XP.

I'm sure you'll be able to get your custom handler running on Vista ... but,
you may need to do a little bit of debugging to find out why it isn't
running, or what Vista is unhappy about. URLMon.dll in IE7 does not handle
exceptions itself, so you may need to put an exception handler into your own
code to catch the exception (if there is one).

Since this is more a developer-oriented question, you may get better results
by posting to one of the MSDN forums (whichever one looks most appropriate
for your environment):
http://forums.microsoft.com/msdn/default.aspx?siteid=1

Hope this helps a little bit; good luck with it. I'm sure you'll get it
working in the end.
--
Andrew McLaren
amclar (at) optusnet dot com dot au


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default Mail Handler John Windows Vista Mail 7 02-18-2008 01:21 AM
Preview handler not working Brendan Windows Vista General Discussion 2 07-27-2007 11:51 PM
outlook as default pim handler olu oladipo Windows Vista Installation 1 06-18-2007 03:48 PM
Make Non Microsoft mail handler the default mail handler Eddie Windows Vista General Discussion 7 05-29-2007 11:06 PM
Default News Handler Ken Blake, MVP Windows Vista Mail 4 12-31-2006 07:51 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59