1
Q
设置默认程序
A
回答
1
我假定你的意思,你已经写了一个程序,您希望它出现在名单上,使用户能够选择他/她希望你的程序成为默认的程序。 MSDN有一个pretty good overview of the topic,但基本的想法是,你只需要设置一些registry entries。
下面的例子表明,被称为web浏览器的一个虚构的Contoso的浏览器的注册表项:
HKEY_LOCAL_MACHINE
SOFTWARE
Contoso
WebBrowser
Capabilities
ApplicationDescription = This award-winning Contoso browser is better than ever. Search the Internet and find exactly what you want in just seconds. Use integrated tabs and new phishing detectors to enhance your Internet experience.
FileAssociations
.htm = ContosoHTML
.html = ContosoHTML
.shtml = ContosoHTML
.xht = ContosoHTML
.xhtml = ContosoHTML
Startmenu
StartmenuInternet = Contoso.exe
UrlAssociations
http = Contoso.Url.Http
https = Contoso.Url.Https
ftp = Contoso.Url.ftp
SOFTWARE
RegisteredApplications
Contoso.WebBrowser.1.06 = SOFTWARE\Contoso\WebBrowser\Capabilities
相关问题
- 1. 应用程序的默认设置
- 2. 设置应用程序默认安卓
- 3. Mule默认线程设置
- 4. 为Elixir程序包设置默认的应用程序配置
- 5. 在Android默认设置中添加应用程序设置
- 6. 将应用程序设置为默认设置android
- 7. 在Linux中设置默认应用程序/程序优先级
- 8. 如何设置默认的应用程序安装程序?
- 9. 将应用程序设置为默认应用程序
- 10. 安装msi后设置扩展程序的默认程序
- 11. 设置默认值
- 12. 设置默认值
- 13. 设置默认APN
- 14. 设置默认页
- 15. ngDialog默认设置
- 16. 设置默认值
- 17. 设置默认值
- 18. 设置默认值
- 19. wkhtmltopdf默认设置?
- 20. 设置PDO默认
- 21. 设置默认值
- 22. 设置默认值
- 23. 设置默认值
- 24. 设置默认值
- 25. 设置默认值
- 26. ehcache默认设置
- 27. 设置默认值
- 28. 设置默认值
- 29. PHP设置默认
- 30. 设置默认值
为了遏制票接近,你想这样做编程* *? – 2010-07-08 23:32:57
我不知道人们为什么投票迁移到SU。据我所知,提问者希望将他们自己的程序添加到特定类别的用户选择列表中。这是一个与编程有关的问题。 – EMP 2010-07-08 23:33:07
@Evgeny:这就是我的想法...... – 2010-07-08 23:38:01