当我进入 Windows 10 中的系统设置并查看“默认应用”时,电子邮件选项提供了 Google Chrome、Mail、Microsoft Outlook 和“在商店中查找应用”作为我的唯一选项。我尝试过右键单击和按住 Shift 键单击。在列表底部,我尝试了“按文件类型选择默认应用”、“按协议选择默认应用”和“按应用设置默认值”。似乎只有一组选定的程序可用作处理协议(例如 URL 和 mailto 链接)的选项。
我有一个想要使用的自定义可执行文件,但我很乐意找到有关将任何便携式应用程序设为 Windows 10 中协议的默认应用程序的说明。
答案1
我在尝试将 Chrome 设为沙盒中的默认浏览器时遇到了类似的问题。经过大约 4 天的搜索,我想我已经找到了解决办法,并且找到了下面的 .reg 文件,它可以解决问题,让 Chrome 显示在设置中的默认浏览器弹出窗口中。你应该能够根据自己的需要进行调整。
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\ChromeHTML]
@="Chrome HTML Document"
"AppUserModelId"="Chrome"
[HKEY_CLASSES_ROOT\ChromeHTML\Application]
"ApplicationCompany"="Google Inc."
"ApplicationDescription"="Access the Internet"
"ApplicationIcon"="D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe,0"
"ApplicationName"="Google Chrome"
"AppUserModelId"="Chrome"
[HKEY_CLASSES_ROOT\ChromeHTML\DefaultIcon]
@="D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe,0"
[HKEY_CLASSES_ROOT\ChromeHTML\shell]
[HKEY_CLASSES_ROOT\ChromeHTML\shell\open]
[HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command]
@="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" -- \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome]
@="Google Chrome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities]
"ApplicationDescription"="Google Chrome is a web browser that runs webpages and applications with lightning speed. It's fast, stable, and easy to use. Browse the web more safely with malware and phishing protection built into Google Chrome."
"ApplicationIcon"="D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe,0"
"ApplicationName"="Google Chrome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\FileAssociations]
".htm"="ChromeHTML"
".html"="ChromeHTML"
".shtml"="ChromeHTML"
".xht"="ChromeHTML"
".xhtml"="ChromeHTML"
".webp"="ChromeHTML"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\Startmenu]
"StartMenuInternet"="Google Chrome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\URLAssociations]
"ftp"="ChromeHTML"
"http"="ChromeHTML"
"https"="ChromeHTML"
"irc"="ChromeHTML"
"mailto"="ChromeHTML"
"mms"="ChromeHTML"
"news"="ChromeHTML"
"nntp"="ChromeHTML"
"sms"="ChromeHTML"
"smsto"="ChromeHTML"
"tel"="ChromeHTML"
"urn"="ChromeHTML"
"webcal"="ChromeHTML"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\DefaultIcon]
@="D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\InstallInfo]
"ReinstallCommand"="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\" --make-default-browser"
"HideIconsCommand"="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\" --hide-icons"
"ShowIconsCommand"="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\" --show-icons"
"IconsVisible"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\shell\open\command]
@="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\""
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"Google Chrome"="Software\\Clients\\StartMenuInternet\\Google Chrome\\Capabilities"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome]
@="Google Chrome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\Capabilities]
"ApplicationDescription"="Google Chrome is a web browser that runs webpages and applications with lightning speed. It's fast, stable, and easy to use. Browse the web more safely with malware and phishing protection built into Google Chrome."
"ApplicationIcon"="D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe,0"
"ApplicationName"="Google Chrome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\Capabilities\FileAssociations]
".htm"="ChromeHTML"
".html"="ChromeHTML"
".shtml"="ChromeHTML"
".xht"="ChromeHTML"
".xhtml"="ChromeHTML"
".webp"="ChromeHTML"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\Capabilities\Startmenu]
"StartMenuInternet"="Google Chrome"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\Capabilities\URLAssociations]
"ftp"="ChromeHTML"
"http"="ChromeHTML"
"https"="ChromeHTML"
"irc"="ChromeHTML"
"mailto"="ChromeHTML"
"mms"="ChromeHTML"
"news"="ChromeHTML"
"nntp"="ChromeHTML"
"sms"="ChromeHTML"
"smsto"="ChromeHTML"
"tel"="ChromeHTML"
"urn"="ChromeHTML"
"webcal"="ChromeHTML"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\DefaultIcon]
@="D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\InstallInfo]
"ReinstallCommand"="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\" --make-default-browser"
"HideIconsCommand"="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\" --hide-icons"
"ShowIconsCommand"="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\" --show-icons"
"IconsVisible"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Clients\StartMenuInternet\Google Chrome\shell\open\command]
@="\"D:\\Sandbox\\Chrome\\drive\\C\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\RegisteredApplications]
"Google Chrome"="Software\\Clients\\StartMenuInternet\\Google Chrome\\Capabilities"
答案2
Lotus Notes 6 的简单修复:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"Lotus Notes"="SOFTWARE\\WOW6432Node\\Lotus\\Notes\\Capabilities"
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lotus\Notes\Capabilities]
[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Lotus\Notes\Capabilities\UrlAssociations]
"mailto"="mailto"
截至 2018 年 4 月 29 日,mailto:链接测试已通过。