Иногда пользователи десятой версии Windows сталкиваются с неполадкой — программы перестают включаться. При попытке запуска приложения возникает ошибка или открывается окно с выбором вариантов для ассоциирования с EXE-файлом. В некоторых случаях может совсем ничего не происходить. В нашей статье мы подробно расскажем, из-за чего возникает такая неполадка и что можно предпринять, дабы её устранить.
- Причины возникновения ошибки
- Варианты решения проблемы
- Вариант №1: Проверка ассоциации в реестре системы
- Вариант №2: Проверка целостности системных файлов
- Вариант №3: Очистка компьютера от вирусов
- Возвращаем возможность запуска исполняемого файла
- The Short Answer
- The Long Answer
- Where Windows 10 stores default email app in its registry?
- How to change Hardware Keys association?
- Why is Chrome not opening Write new e-mail form using mailto protocol?
- All three answers in detail
- Hardware keys association
- Default e-mail App for mailto protocol
- Chrome browser handling of mailto: links
- Adding a program to any protocol
- Details
- Blood and bloody hashes!
- Register all the things!
Причины возникновения ошибки
EXE-файлы могут не запускаться или выдавать ошибки, если:
- в реестре системы изменен параметр, отвечающий за ассоциацию программы с файлом;
- антивирусная программа блокирует доступ к приложению, ошибочно воспринимая его как вирус, или файл действительно заражен;
- некорректное функционирование системных компонентов.
Варианты решения проблемы
В зависимости от того, чем вызвана неполадка, можно воспользоваться различными методами её устранения. В первую очередь следует проверить правильность ассоциации исполняемых файлов в реестре, а если это не решит проблему, то запустить проверку системных файлов и сканирование компьютера на вирусы. Также возможно, что ваше антивирусное приложение блокирует запуск программы. Рассмотрим каждую из ситуаций в подробностях.
Вариант №1: Проверка ассоциации в реестре системы
Чаще всего ошибки при запуске EXE файлов являются следствием нарушения ассоциации формата в реестре операционной системы. Чтобы исправить ошибку, нам потребуется проделать следующие шаги:
- Вызываем диалоговое окно «Выполнить», воспользовавшись клавиатурной комбинацией «Win+R».
- Далее вводим туда команду regedit и кликаем по кнопке «ОК».
Запускаем редактор реестра
- На экране появится «Редактор реестра». Нам нужно будет пройти по следующему адресу: HKEY_CLASSES_ROOT\.exe
- В правой части ищем значение «По умолчанию» и открываем его настройки, кликнув по строке дважды.
- Появится маленькое окошко, куда нужно будет вписать значение exefile и после этого кликнуть по кнопке «ОК».
Проверяем и при надобности изменяем настройку
- После внесения изменений переходим по адресу: HKEY_CLASSES_ROOT\exefile\shell\open\command
- Тут также ищем справа параметр «По умолчанию» и открываем его.
- Значение должно выглядеть следующим образом
Если в параметре указаны другие знаки, удалите их и впишите правильные.
Проверяем еще один параметр
Изменив значение, его также потребуется вписать, пройдя по следующим адресам: HKEY_CLASSES_ROOT\exefile\shell\open и HKEY_CLASSES_ROOT\exefile.
Делается это аналогично пунктам 7-8.
После проделанных операций закрываем реестр и перезагружаем компьютер.
Вариант №2: Проверка целостности системных файлов
Если установка правильных параметров в реестре системы не принесла желаемого результата, то можно проверить работоспособность системных файлов Windows. Для этого нам нужно будет сделать следующее:
- Запускаем «Командную строку» из стартового меню с привилегиями администратора.
Запускаем командную строку
- В окно приложения вводим команду sfc /scannow и нажимаем «Enter».
Запускаем проверку системных файлов
Windows начнет проверку системных файлов и в случае обнаружения ошибок устранит их.
После завершения операции перезагружаем компьютер.
Вариант №3: Очистка компьютера от вирусов
Если у вас на компьютере появился вирус, то он также может быть причиной того, что программы не запускаются. Чтобы удалить его из системы, удобнее всего будет использовать бесплатные сканеры, такие как Kaspersky Virus Removal Tool.
Интерфейс сканера Kaspersky Virus Removal Tool
Другой вариант — Dr.Web CureIt.
Главное окно программы Dr.Web CureIt
На этом наша статья подошла к концу. Теперь вы знаете, как можно устранить неполадку, когда на вашем компьютере не запускаются EXE-файлы. Иногда запуск приложения может быть заблокирован установленным у вас антивирусом – в таком случае потребуется просто его отключить, предварительно убедившись в том, что запускаемое приложение не опасно.
Возвращаем возможность запуска исполняемого файла
Для того, чтобы вернуть все на свои места, следует использовать следующий reg файл (вложенный в zip-архив), после использования которого нужно перезагрузить компьютер.
Восстановление ассоциации с исполняемыми exe файлами
Эта статья рассказывает про нарушение ассоциации с исполняемыми файлами (.exe). Про то, как исправить нарушение ассоциации с файлами ярлыков (.lnk), можно прочесть здесь.
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\.exe]
[HKEY_CLASSES_ROOT\.exe]
@="exefile"
"Content Type"="application/x-msdownload"
[HKEY_CLASSES_ROOT\.exe\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
[HKEY_CLASSES_ROOT\exefile]
@="Application"
"EditFlags"=hex:38,07,00,00
"FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\
00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,\
32,00,5c,00,73,00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,\
00,2c,00,2d,00,31,00,30,00,31,00,35,00,36,00,00,00
[HKEY_CLASSES_ROOT\exefile\DefaultIcon]
@="%1"
[HKEY_CLASSES_ROOT\exefile\shell]
[HKEY_CLASSES_ROOT\exefile\shell\open]
"EditFlags"=hex:00,00,00,00
[HKEY_CLASSES_ROOT\exefile\shell\open\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"
[HKEY_CLASSES_ROOT\exefile\shell\runas]
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\exefile\shell\runas\command]
@="\"%1\" %*"
"IsolatedCommand"="\"%1\" %*"
[HKEY_CLASSES_ROOT\exefile\shell\runasuser]
@="@shell32.dll,-50944"
"Extended"=""
"SuppressionPolicyEx"="{F211AA05-D4DF-4370-A2A0-9F19C09756A7}"
[HKEY_CLASSES_ROOT\exefile\shell\runasuser\command]
"DelegateExecute"="{ea72d00e-4960-42fa-ba92-7792a7944c1d}"
[HKEY_CLASSES_ROOT\exefile\shellex]
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers]
@="Compatibility"
[HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\Compatibility]
@="{1d27f844-3a1f-4410-85ac-14651078412d}"
[HKEY_CLASSES_ROOT\exefile\shellex\DropHandler]
@="{86C86720-42A0-1069-A2E8-08002B30309D}"
[-HKEY_CLASSES_ROOT\SystemFileAssociations\.exe]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.exe]
"FullDetails"="prop:System.PropGroup.Description;System.FileDescription;System.ItemTypeText;System.FileVersion;System.Software.ProductName;System.Software.ProductVersion;System.Copyright;*System.Category;*System.Comment;System.Size;System.DateModified;System.Language;*System.Trademarks;*System.OriginalFileName"
"InfoTip"="prop:System.FileDescription;System.Company;System.FileVersion;System.DateCreated;System.Size"
"TileInfo"="prop:System.FileDescription;System.Company;System.FileVersion;System.DateCreated;System.Size"
[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithList]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.exe\OpenWithProgids]
"exefile"=hex(0):
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe]
@="exefile"
"Content Type"="application/x-msdownload"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.exe\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"
Сообщения: 1
Благодарности: 1
Представленный здесь твик не полный, так как анализировался не чистый реестр. Когда Firefox первый раз с момента установки становится браузером по умолчанию, больше пишет.
Полный твик выглядит так:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Clients\StartMenuInternet] @="FIREFOX.EXE" [HKEY_CURRENT_USER\Software\Classes] [HKEY_CURRENT_USER\Software\Classes\.htm] @="FirefoxHTML" "Content Type"="text/html" [HKEY_CURRENT_USER\Software\Classes\.html] @="FirefoxHTML" "Content Type"="text/html" [HKEY_CURRENT_USER\Software\Classes\.shtml] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.webm] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.xht] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.xhtml] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML] @="Firefox HTML Document" "FriendlyTypeName"="Firefox HTML Document" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open] [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL] @="Firefox URL" "FriendlyTypeName"="Firefox URL" "URL Protocol"="" "EditFlags"=dword:00000002 [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open] [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\ftp] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол FTP" "ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}" [HKEY_CURRENT_USER\Software\Classes\ftp\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\ftp\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open] [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\http] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол HTTP" [HKEY_CURRENT_USER\Software\Classes\http\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\http\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\http\shell\open] [HKEY_CURRENT_USER\Software\Classes\http\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\https] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол HTTPS" [HKEY_CURRENT_USER\Software\Classes\https\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\https\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\https\shell\open] [HKEY_CURRENT_USER\Software\Classes\https\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\http] @="URL:Протокол HTTP" "EditFlags"=dword:00000002 "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\http\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\http\shell] @="open" [HKEY_CLASSES_ROOT\http\shell\open] [HKEY_CLASSES_ROOT\http\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\https] @="URL:Протокол HTTPS" "EditFlags"=dword:00000002 "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\https\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\https\shell] @="open" [HKEY_CLASSES_ROOT\https\shell\open] [HKEY_CLASSES_ROOT\https\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\ftp] @="URL:Протокол FTP" "EditFlags"=dword:00000002 "ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}" "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\ftp\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\ftp\Extensions] ".IVF"="{C69E8F40-D5C8-11D0-A520-145405C10000}" [HKEY_CLASSES_ROOT\ftp\shell] @="open" [HKEY_CLASSES_ROOT\ftp\shell\open] [HKEY_CLASSES_ROOT\ftp\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\FirefoxHTML] @="Firefox HTML Document" "FriendlyTypeName"="Firefox HTML Document" [HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\FirefoxHTML\shell] @="open" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open] [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\FirefoxURL] @="Firefox URL" "EditFlags"=dword:00000002 "FriendlyTypeName"="Firefox URL" "URL Protocol"="" [HKEY_CLASSES_ROOT\FirefoxURL\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\FirefoxURL\shell] @="open" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open] [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\.htm] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.html] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.shtml] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.webm] @="FirefoxHTML" [HKEY_CLASSES_ROOT\.xhtml] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_CLASSES_ROOT\.xht] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_CLASSES_ROOT\.xht] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\ifExec] @=- -[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\ifExec]
Проверено все работает.
Путь «C:\Program Files\Mozilla Firefox» замените на свой, если надо.
Сообщения: 1
Благодарности: 1
Представленный здесь твик не полный, так как анализировался не чистый реестр. Когда Firefox первый раз с момента установки становится браузером по умолчанию, больше пишет.
Полный твик выглядит так:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Clients\StartMenuInternet] @="FIREFOX.EXE" [HKEY_CURRENT_USER\Software\Classes] [HKEY_CURRENT_USER\Software\Classes\.htm] @="FirefoxHTML" "Content Type"="text/html" [HKEY_CURRENT_USER\Software\Classes\.html] @="FirefoxHTML" "Content Type"="text/html" [HKEY_CURRENT_USER\Software\Classes\.shtml] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.webm] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.xht] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.xhtml] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML] @="Firefox HTML Document" "FriendlyTypeName"="Firefox HTML Document" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open] [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL] @="Firefox URL" "FriendlyTypeName"="Firefox URL" "URL Protocol"="" "EditFlags"=dword:00000002 [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open] [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\ftp] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол FTP" "ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}" [HKEY_CURRENT_USER\Software\Classes\ftp\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\ftp\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open] [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\http] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол HTTP" [HKEY_CURRENT_USER\Software\Classes\http\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\http\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\http\shell\open] [HKEY_CURRENT_USER\Software\Classes\http\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\https] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол HTTPS" [HKEY_CURRENT_USER\Software\Classes\https\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\https\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\https\shell\open] [HKEY_CURRENT_USER\Software\Classes\https\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\http] @="URL:Протокол HTTP" "EditFlags"=dword:00000002 "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\http\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\http\shell] @="open" [HKEY_CLASSES_ROOT\http\shell\open] [HKEY_CLASSES_ROOT\http\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\https] @="URL:Протокол HTTPS" "EditFlags"=dword:00000002 "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\https\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\https\shell] @="open" [HKEY_CLASSES_ROOT\https\shell\open] [HKEY_CLASSES_ROOT\https\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\ftp] @="URL:Протокол FTP" "EditFlags"=dword:00000002 "ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}" "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\ftp\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\ftp\Extensions] ".IVF"="{C69E8F40-D5C8-11D0-A520-145405C10000}" [HKEY_CLASSES_ROOT\ftp\shell] @="open" [HKEY_CLASSES_ROOT\ftp\shell\open] [HKEY_CLASSES_ROOT\ftp\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\FirefoxHTML] @="Firefox HTML Document" "FriendlyTypeName"="Firefox HTML Document" [HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\FirefoxHTML\shell] @="open" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open] [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\FirefoxURL] @="Firefox URL" "EditFlags"=dword:00000002 "FriendlyTypeName"="Firefox URL" "URL Protocol"="" [HKEY_CLASSES_ROOT\FirefoxURL\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\FirefoxURL\shell] @="open" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open] [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\.htm] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.html] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.shtml] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.webm] @="FirefoxHTML" [HKEY_CLASSES_ROOT\.xhtml] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_CLASSES_ROOT\.xht] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_CLASSES_ROOT\.xht] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\ifExec] @=- -[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\ifExec]
Проверено все работает.
Путь «C:\Program Files\Mozilla Firefox» замените на свой, если надо.
Сообщения: 1
Благодарности: 1
Представленный здесь твик не полный, так как анализировался не чистый реестр. Когда Firefox первый раз с момента установки становится браузером по умолчанию, больше пишет.
Полный твик выглядит так:
Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Clients\StartMenuInternet] @="FIREFOX.EXE" [HKEY_CURRENT_USER\Software\Classes] [HKEY_CURRENT_USER\Software\Classes\.htm] @="FirefoxHTML" "Content Type"="text/html" [HKEY_CURRENT_USER\Software\Classes\.html] @="FirefoxHTML" "Content Type"="text/html" [HKEY_CURRENT_USER\Software\Classes\.shtml] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.webm] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.xht] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\.xhtml] @="FirefoxHTML" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML] @="Firefox HTML Document" "FriendlyTypeName"="Firefox HTML Document" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open] [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\FirefoxHTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL] @="Firefox URL" "FriendlyTypeName"="Firefox URL" "URL Protocol"="" "EditFlags"=dword:00000002 [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open] [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\FirefoxURL\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\ftp] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол FTP" "ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}" [HKEY_CURRENT_USER\Software\Classes\ftp\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\ftp\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open] [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\http] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол HTTP" [HKEY_CURRENT_USER\Software\Classes\http\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\http\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\http\shell\open] [HKEY_CURRENT_USER\Software\Classes\http\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CURRENT_USER\Software\Classes\https] "URL Protocol"="" "EditFlags"=dword:00000002 @="URL:Протокол HTTPS" [HKEY_CURRENT_USER\Software\Classes\https\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CURRENT_USER\Software\Classes\https\shell] @="open" [HKEY_CURRENT_USER\Software\Classes\https\shell\open] [HKEY_CURRENT_USER\Software\Classes\https\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec\Application] @="Firefox" [HKEY_CURRENT_USER\Software\Classes\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\http] @="URL:Протокол HTTP" "EditFlags"=dword:00000002 "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\http\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\http\shell] @="open" [HKEY_CLASSES_ROOT\http\shell\open] [HKEY_CLASSES_ROOT\http\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\http\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\https] @="URL:Протокол HTTPS" "EditFlags"=dword:00000002 "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\https\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\https\shell] @="open" [HKEY_CLASSES_ROOT\https\shell\open] [HKEY_CLASSES_ROOT\https\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\https\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\ftp] @="URL:Протокол FTP" "EditFlags"=dword:00000002 "ShellFolder"="{63da6ec0-2e98-11cf-8d82-444553540000}" "Source Filter"="{E436EBB6-524F-11CE-9F53-0020AF0BA770}" "URL Protocol"="" [HKEY_CLASSES_ROOT\ftp\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\ftp\Extensions] ".IVF"="{C69E8F40-D5C8-11D0-A520-145405C10000}" [HKEY_CLASSES_ROOT\ftp\shell] @="open" [HKEY_CLASSES_ROOT\ftp\shell\open] [HKEY_CLASSES_ROOT\ftp\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\ftp\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\FirefoxHTML] @="Firefox HTML Document" "FriendlyTypeName"="Firefox HTML Document" [HKEY_CLASSES_ROOT\FirefoxHTML\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\FirefoxHTML\shell] @="open" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open] [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\FirefoxHTML\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\FirefoxURL] @="Firefox URL" "EditFlags"=dword:00000002 "FriendlyTypeName"="Firefox URL" "URL Protocol"="" [HKEY_CLASSES_ROOT\FirefoxURL\DefaultIcon] @="C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE,1" [HKEY_CLASSES_ROOT\FirefoxURL\shell] @="open" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open] [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\command] @="\"C:\\Program Files\\Mozilla Firefox\\FIREFOX.EXE\" -requestPending -osint -url \"%1\"" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec] @="\"%1\",,0,0,,,," "NoActivateHandler"="" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Application] @="Firefox" [HKEY_CLASSES_ROOT\FirefoxURL\shell\open\ddeexec\Topic] @="WWW_OpenURL" [HKEY_CLASSES_ROOT\.htm] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.html] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.shtml] @="FirefoxHTML" "Content Type"="text/html" "PerceivedType"="text" [HKEY_CLASSES_ROOT\.webm] @="FirefoxHTML" [HKEY_CLASSES_ROOT\.xhtml] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_CLASSES_ROOT\.xht] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_CLASSES_ROOT\.xht] @="FirefoxHTML" "Content Type"="application/xhtml+xml" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\ifExec] @=- -[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ftp\shell\open\ddeexec\ifExec]
Проверено все работает.
Путь «C:\Program Files\Mozilla Firefox» замените на свой, если надо.
The simplest method for setting a profile is to simply edit Chrome’s shortcut and add the command-line parameter --profile-directory="default"
:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Default"
The downside with this approach is that it only affects the shortcut itself. If Chrome is your default browser, and another application opens a page, this will have no effect. Similarly, if you associate a local file extension with Chrome, it will not affect which profile is selected when opening that file type from Windows Explorer.
The fix for this is to specify the profile to use in the Windows Registry. In order for this to work for both mapped extensions and shell execution, we need to make a change in two different places:
The default value for both of these are the same:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "%1"
Just as with the Shortcut method discussed previously, we simply need to add the --profile-directory="default"
switch. One difference, however, it that here we need to add it between "chrome.exe"
and -- "%1"
:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --profile-directory="Default" -- "%1"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Classes\Applications\chrome.exe\shell\open\command]
@="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --profile-directory=\"Default\" -- \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML\shell\open\command]
@="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --profile-directory=\"Default\" -- \"%1\""
Once saved, double-clicking this file will automatically make the necessary changes to your registry. This simply saves you the trouble of walking through the tree in RegEdit.
Yes, you can script it with direct registry manipulation.
The Short Answer
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice]
"ProgId"="FirefoxURL"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice]
"ProgId"="ChromeHTML"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice]
"ProgId"="IE.HTTP"
The Long Answer
HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\Associations\UrlAssociations
What I’m talking about here is what you’re changing when you go to the Default Programs section of the Control Panel to set a browser:
To configure this directly in the registry, let’s first inspect that’s already there. In this screenshot I’ve navigated to that key in regedit.exe
, and Chrome is my default browser, designated by the ChromeHTML
ProgId value.
Now it’s just a matter of determining what to use for Firefox, IE, and any other browser you may want to switch to. If you wanted to determine this programmatically, you could do so by digging into the Capabilities
key of the browser registration, found here for Firefox:
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\Capabilities\URLAssociations
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet
is where all the browsers are listed, and each one should have the above structure.
You can see from inspection that if I wanted to switch to Firefox, I’d use the FirefoxURL
ProgId value back up in UrlAssociations.
All we need to do is change that key value to FirefoxURL
, and now links open in Firefox. After doing so you can either click a link or double check in the control panel that the right default is registered:
Now if you’ve been paying close attention, you might have noticed a couple flaws with all of this:
-
IE doesn’t have a
URLAssociations
subkey under it’s browser registration inStartMenuInternet
, so where does the ProgId value come from? Answer: I don’t know, at least not without more research. It may be hardcoded or found in another key I haven’t found yet. -
Firefox’s ProgId’s under it’s
URLAssociations
areFirefoxURL
, but when you click to register in the options in the browser itself, it usesFirefoxHTML
as the ProgId instead! Why? Again, I don’t know. They both work because they both exist and point to Firefox. Maybe it’s intentional, but it’s probably just a bug with no effect.
I need to find out where in Windows registry email default app is stored so I can adjust the link to open with the page I want it to but I can’t find it, there is so many different locations. This is the link I want to use which should work: "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "https://mail.google.com"
Please let me know where Windows 10 stores its default email app in its registry?
asked Feb 25, 2016 at 12:14
-
Where Windows 10 stores default email app in its registry?
This is the caption of the original question.
Default email app in Windows 10 is an App which handles mailto: protocol. It’s actually not supposed to open Inbox, but Write a New Email form — by opening a new page/window to start writing an email. -
How to change Hardware Keys association?
This is the rest of the question, or question number two.
One of the buttons on your keyboard was defined as Write New Email, which was done by calling the Default Email App using mailto: protocol.
But calling mailto: protocol wasn’t opening the Write New Email form, neither the Inbox, or an Email App. And that’s a question number three.
-
Why is Chrome not opening Write new e-mail form using mailto protocol?
Because Chrome will ignore it, unless it’s explicitly allowed in Chrome’s Options.
All three answers in detail
-
Hardware keys association
What action should be taken upon pressing of a special HW key
HW button could be a dedicated button, or a Fn+F2 combination as in Asker’s case.
Registry settings are under:
HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey
Key 15 represents settings for Email button
Value names could be:- «ShellExecute» — its value is a filename to be executed
e.g. «calc.exe» or chrome.exe with corrent path and possible arguments - «Association» — points to a shell association object
which is a name of a Key under HKEY_CLASSES_ROOT
e.g. txtfile would open Notepad, or as in our case mailto would open an App associated with mailto protocol.
To open a Write new e-mail using mailto association. This was the default behavior on the Asker’s computer:
REGEDIT4 [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\15] "Association"="mailto"
To open an e-mail app, or browser with an e-mail’s Inbox, you can use shell execute with proper command. This is what Asker desired and his solution would work for this case.
ShellExecute "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" -- "https://mail.google.com"
or in a form of a .reg file
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\15] "ShellExecute"="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" -- \"https://mail.google.com\""
To open Gmail App — Chrome’s App in it’s dedicated window.
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\15] "ShellExecute"="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --app-id=pjkljhegncpnkpknbcohdijeoejaedia"
for this last one to work, you also need to have the Gmail App installed in Chrome, and need to enabled «Open As Window» in right-click menu on the Gmail App in Chrome.
- «ShellExecute» — its value is a filename to be executed
-
Default e-mail App for mailto protocol
Which program is handling the Write New Email call
for example when you click on send e-mail to developer on some Program’s About menu or on various other places in Windows or by clicking an email link in a document or a web page.
The selection can only be done using the Choose an app dialog from Windows Settings or Open as command.Would be less confusing if the settings was saying Write an Email and not just Email
I don’t think that there is a separate setting in the Windows interface for an App which would open Inbox.To troubleshoot a problem with default mailto association, you can delete mailto Keys from under all of these locations, except LOCAL_MACHINE.
Windows will re-create them on next use of the mailto protocol.
-
Chrome browser handling of mailto: links
There is no default action for mailto: links inside Chrome defined.
- The default way to turn this on should be to «Click on the eye in the address bar.» while on gmail.com web page and selecting Use Gmail.
But sometimes, there is no «eye» -
Turn mailto: handler on manually.
Go to Chrome Settings — Privacy — Content Settings — Handlers — Manage Handlers,
or enter address: chrome://settings/handlers
then remove Ignored protocol handlers and switch Active protocol handlers to mail.google.com -
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeMAILTO\Application] "ApplicationName"="Google Chrome mailto" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeMAILTO\shell\open\command] @="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" -- https://mail.google.com/mail?extsrc=mailto&url=%1" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\URLAssociations] "mailto"="ChromeMAILTO"
or, if you prefer to have it open as an Chrome App, in dedicated window:
REGEDIT4 [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeMAILTO\Application] "ApplicationName"="Google Chrome mailto" [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeMAILTO\shell\open\command] @="\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\" --app=\"https://mail.google.com/mail?extsrc=mailto&url=%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Google Chrome\Capabilities\URLAssociations] "mailto"="ChromeMAILTO"
Now select Google Chrome mailto as the Default Email app
I didn’t test if Chrome update would not break this work-around
- The default way to turn this on should be to «Click on the eye in the address bar.» while on gmail.com web page and selecting Use Gmail.
answered Aug 30, 2016 at 5:01
4 silver badges8 bronze badges
Below is a quote from that link
Internet Key:
HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\7
«Association»=»http» ; Change the string value «http»Calculator Key:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\AppKey\18
«ShellExecute»=»calc.exe»; Change the string value «calc.exe»Email Key:
HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\Appkey\15
«Association»=»mailto» ; Change the string value «mailto»Cyberlink PowerDVD/Mediasmart Key:
HKLM\SYSTEM\ControlSet001\Control\MobilePc\HotStartButtons\2
«ApplicationPath» = «C:\Program
File(x86)\Cyberlink\PowerDVD9\PowerDVD9.exe»; Change the string value
«C:\Program File(x86)\Cyberlink\PowerDVD9\PowerDVD9.exe»
But for little more explaining this is what I did:
answered Apr 13, 2016 at 16:55
Hector Lamar
1 gold badge3 silver badges12 bronze badges
Adding a program to any protocol
- Open the Registry Editor.
- Navigate to
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet
. - Find the program (e.g. your browser) you wish to use (you must have already opened it).
- Add
mailto
to theURLAssociations
. - Do not reboot or log off.
- Close/rReopen the Settings secondary Control Panel and the program will be listed.
- Edit your program’s internal settings.
Details
Windows 10 needs to know what protocols a program supports in order to list the program for the protocol. Thankfully it’s fairly simple with a minor complication of having a hash (likely for tracking) involved. I am guessing that the hash is generated per install (just a guess) so you likely can’t dump it in to your windows-10-fix-all-junk.reg
file that you run after yet another install of Windows 10.
Blood and bloody hashes!
Mat, I use Waterfox as my default browser because I can (actually) customize it. If you need to create all the registry settings but you don’t know where to find the hash well go look for your program in Computer\HKEY_LOCAL_MACHINE\SOFTWARE\
, for Waterfox it was:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Waterfox\TaskBarIDs
Register all the things!
With the hash replaced by stars here is a registry dump (more than needed):
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************]
@="Waterfox Classic"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\Capabilities]
"ApplicationDescription"="Waterfox delivers safe, easy web browsing. A familiar user interface, enhanced security features including protection from online identity theft, and integrated search let you get the most out of the web."
"ApplicationIcon"="C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\waterfox.exe,0"
"ApplicationName"="Waterfox"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\Capabilities\FileAssociations]
".htm"="WaterfoxHTML-****************"
".html"="WaterfoxHTML-****************"
".shtml"="WaterfoxHTML-****************"
".xht"="WaterfoxHTML-****************"
".xhtml"="WaterfoxHTML-****************"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\Capabilities\StartMenu]
"StartMenuInternet"="Waterfox-****************"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\Capabilities\URLAssociations]
"ftp"="WaterfoxURL-****************"
"http"="WaterfoxURL-****************"
"https"="WaterfoxURL-****************"
"mailto"="WaterfoxURL-****************"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\DefaultIcon]
@="C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\waterfox.exe,0"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\InstallInfo]
"HideIconsCommand"="\"C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\uninstall\\helper.exe\" /HideShortcuts"
"ShowIconsCommand"="\"C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\uninstall\\helper.exe\" /ShowShortcuts"
"ReinstallCommand"="\"C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\uninstall\\helper.exe\" /SetAsDefaultAppGlobal"
"IconsVisible"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell\open]
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell\open\command]
@="\"C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\waterfox.exe\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell\properties]
@="Waterfox &Options"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell\properties\command]
@="\"C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\waterfox.exe\" -preferences"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell\safemode]
@="Waterfox &Safe Mode"
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Waterfox-****************\shell\safemode\command]
@="\"C:\\MEDIA\\INTERNET\\Waterfox\\56.0\\waterfox.exe\" -safe-mode"
answered Mar 12, 2020 at 11:24
3 gold badges25 silver badges53 bronze badges
The registry key it alters should be:
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\mailto\UserChoice
HKEY_CLASSES_ROOT\ChromeHTML\shell\open\command
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\mailto
answered Feb 25, 2016 at 12:24
4 gold badges61 silver badges70 bronze badges