windows registry file & protocols associations

Costas

Administrator
Staff member
can be to any of these

Code:
Computer\HKEY_CLASSES_ROOT\.sys

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.sys

Computer\HKEY_CURRENT_USER\Software\Classes

Computer\HKEY_LOCAL_MACHINE\Software\Classes

Computer\HKEY_LOCAL_MACHINE\Software\Classes\SystemFileAssociations

protocols can found here :
Code:
Computer\HKEY_CLASSES_ROOT\onenote

Computer\HKEY_CLASSES_ROOT\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Extensions\windows.protocol\onenote

*Computer\HKEY_CURRENT_USER\SOFTWARE\Classes\onenote

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\onenote

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\PackageRepository\Extensions\windows.protocol\onenote

*Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModel\StateRepository\Cache\Protocol\Index\Name\onenote
 

Costas

Administrator
Staff member
this adds "Open command prompt here" when pressed [shift + r-click] on windows explorer
on the same key, you can find the "powershell here" and delete it!

Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\background\shell\cmdprompt]
@="@shell32.dll,-8506"
"Extended"=""
"NoWorkingDirectory"=""

[HKEY_CLASSES_ROOT\Directory\background\shell\cmdprompt\command]
@="cmd.exe /s /k pushd \"%V\""
 

Costas

Administrator
Staff member
Windows Protocols - adding brave as 'default web browser' without installation

Brave (or can be adjusted for any application) minimal registration patch to appear the application on windows 10 - default applications window.

User after success registry import has to go to windows settings > default applications > web browser click the button and choose the application.

Code:
Windows Registry Editor Version 5.00

;======================================== HKEY_CLASSES_ROOT ========================================
;========== what value declared (aka BraveHTML) at HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\Capabilities\URLAssociations
[HKEY_CLASSES_ROOT\BraveHTML]
@="Brave HTML Document"
"AppUserModelId"="Brave"

[HKEY_CLASSES_ROOT\BraveHTML\Application]
"AppUserModelId"="Brave"
"ApplicationIcon"="C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe,0"
"ApplicationName"="Brave"

[HKEY_CLASSES_ROOT\BraveHTML\DefaultIcon]
@="C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe,0"

[HKEY_CLASSES_ROOT\BraveHTML\shell\open\command]
@="\"C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe\" --single-argument %1"


;======================================== HKEY_LOCAL_MACHINE ========================================
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave]
@="Brave"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\Capabilities]
"ApplicationIcon"="C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe,0"
"ApplicationName"="Brave"

;========== not required - this declares a redirect to HKEY_CLASSES_ROOT\BraveHTML
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\Capabilities\FileAssociations]
".htm"="BraveHTML"
".html"="BraveHTML"
".pdf"="BraveHTML"

;========== this declares a redirect to HKEY_CLASSES_ROOT\BraveHTML
[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\Capabilities\URLAssociations]
"http"="BraveHTML"
"https"="BraveHTML"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\DefaultIcon]
@="C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe,0"

[HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\shell\open\command]
@="\"C:\\Program Files\\BraveSoftware\\Brave-Browser\\Application\\brave.exe\""

;========== this is mandatory DECLARATION - redirect to HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\Brave\Capabilities
[HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications]
"Brave"="Software\\Clients\\StartMenuInternet\\Brave\\Capabilities"

ref
https://learn.microsoft.com/en-us/windows/win32/shell/start-menu-reg
https://learn.microsoft.com/en-us/windows/win32/shell/default-programs
 
Top