设置默认浏览器在Vista / Win7的 [英] Setting default browser on Vista/Win7

查看:179
本文介绍了设置默认浏览器在Vista / Win7的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置一个程序作为默认浏览器,因此例如,它会被打开时,如 http://google.com/ 由另一程序或窗口打开。 起初,我以为这是一样的XP(通过 HKCR ),但我发现,你需要使用Vista的[+]默认程序功能。相关的密钥存储,我想, <$c$c>HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice,但对我来说,这只是FirefoxURL',我假设映射到一些较大的其他地方键。

I'd like to set a program as the 'default browser', so that for example, it'll be opened when addresses like http://google.com/ are opened by another program or Windows. At first I assumed this was the same as XP (via HKCR), but I found that you need to use the 'Default Programs' feature of Vista[+]. The relevant key is stored, I think, at HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice, but for me that's just 'FirefoxURL', which I assume maps to some larger key elsewhere.

应如何正确地做什么?

How should this be done properly?

我还发现,您可以使用 IApplicationAssociationRegistration ,但并不认为是周围没有任何.NET包装,我无法找出了我的生活如何去使用它。

I've also found that you can use IApplicationAssociationRegistration, but there doesn't seen to be any .NET wrappers around it and I can't find out for the life of me how to go about using it.

有关的其他程序如何做到这一点,或只是暗示在正确的方向上的任何信息都是极大的AP preciated。

Any information about how other programs do this or just hints in the right direction is greatly appreciated.

推荐答案

你基本上是在正确的地方:

You're basically in the right place:

  • <$c$c>HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations

的疑难杂症的是,有一帮子项需要设置:

The "gotcha" is that there are a bunch of subkeys you need to set:

http://forum.$c$cjock.com/forum_posts.asp?TID=13563&title=how-to-set-default-browser

这篇关于设置默认浏览器在Vista / Win7的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆