Forum Discussion
New Downloads and Collections Menus
This path contains settings for default browser. For me it is:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations\https\UserChoice]
"ProgId"="MSEdgeHTM"
"MSEdgeHTM" leads us to:
[HKEY_CLASSES_ROOT\MSEdgeHTM\shell\open\command]
@="\"C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe\" --single-argument %1"
We can modify this command. Or duplicate whole registry key "MSEdgeHTM" to "MSEdgeHTM2", then change command in "MSEdgeHTM2" and set "ProgId" to "MSEdgeHTM2".
is "--single-argument %1" only a place holder?
and could this be done for Edge canary? not sure what its registry path is in "HKEY_CLASSES_ROOT"
- HotCakeXJan 27, 2021MVP
eddiezato wrote:
HotCakeX wrote:
is "--single-argument %1" only a place holder?I think it is.
so about that,
"%1" represent the file used as param of the msedge command. So basically it's your "MSEdgHTM" file. If you remove it, open a MSEdgeHTM file will just open msedge.exe without opening the file inside it.
"--single-argument :"
https://chromium.googlesource.com/chromium/src/+/master/base/command_line.h
The single-argument switch prevents unexpected parsing of arguments from other software that cannot be trusted to escape double quotes when substituting into a placeholder (e.g., "%1" placeholders populated by the Windows shell).
So its purpose is to be sure that the next argument (%1) will be interpreted correctly as a single argument.
It's probably better to keep it.
- eddiezatoJan 27, 2021Iron Contributor
HotCakeX wrote:
is "--single-argument %1" only a place holder?I think it is.
HotCakeX wrote:
and could this be done for Edge canary? not sure what its registry path is in "HKEY_CLASSES_ROOT"Sorry, I'm using Canary without installation. So I don't have much to say about it's paths in Registry.
But you always can modify exe-path in command.
