如何在“默认程序"列表中添加我的应用程序 [英] How do I add my application in the Default Programs list
问题描述
我想将我的应用程序添加到默认程序"列表中,并阅读诸如此类的文章和问题:
如何执行我将应用程序添加到Windows Vista/7的默认程序"列表中吗?
http://msdn.microsoft.com/zh-cn/library/cc144154%28v = vs.85%29.aspx
并完成所有主题,但没有机会.
我做了这样的注册表项:
I want to add my application in the Default Programs list and read articles and questions like these:
How do I add my application in the Default Programs list of Windows Vista/7?
http://msdn.microsoft.com/en-us/library/cc144154%28v=vs.85%29.aspx
and do all of theme but no chance.
I make registry keys like these:
HKEY_LOCAL_MACHINE
SOFTWARE
Classes
TestApp.AssocFile.TA4
(Default) = TA4 Format
DefaultIcon
(Default) = %ProgramFiles%\TestApp\TA4.ico
shell
open
command
(Default) = %ProgramFiles%\TestApp\TA4Opener.exe
HKEY_LOCAL_MACHINE
SOFTWARE
Test
TestApp
Capabilities
ApplicationDescription = App Description
FileAssociations
.ta4 = TestApp.AssocFile.TA4
HKEY_LOCAL_MACHINE
SOFTWARE
RegisteredApplications
TestApp = Software\Test\TestApp\Capabilities
但是当我打开控制面板设置默认程序"时,找不到我的应用程序.
我错过了什么?
but when I open Control Panel Set Default programs I can't find my application.
What I missed?
推荐答案
在功能"下添加 ApplicationName
值,以及已经拥有的所有值.
Add ApplicationName
value under Capabilities, in addition to all values you already have.
HKEY_LOCAL_MACHINE
SOFTWARE
Test
TestApp
Capabilities
ApplicationName = Your Application Name
如果您的应用程序仍未出现在设置默认程序"列表中,请确保shell \ open \ command下列出的可执行文件(在您的示例中为%ProgramFiles%\ TestApp \ TA4Opener.exe)具有版本资源和 Version.CompanyName
不为空.
If your application still does not show up in the Set Default Programs list, make sure executable file listed under shell\open\command ( in your example, %ProgramFiles%\TestApp\TA4Opener.exe) has Version resource and Version.CompanyName
is not empty.
这篇关于如何在“默认程序"列表中添加我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!