I had a similar problem trying to get Chrome to be a default browser in a sandbox. After hunting around for about 4 days, I think I have it sussed and have the below .reg file which does the trick and makes Chrome show up in the default browsers popup in settings. you should be able to adapt for your needs.
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"
The store app has to make the registration in this registry key:
HKEY_CURRENT_USER\SOFTWARE\RegisteredApplications
And then set the File association\Capabilities in another key, mentioning each file type it can handle. For example Microsoft Edge has the registration here.
HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\Microsoft.MicrosoftEdge_25.10586.0.0_neutral__8wekyb3d8bbwe\MicrosoftEdge\Capabilities\FileAssociations
If you can post the export of RegisteredApplications
branch, I can make a REG file which adds the FileAssociations
info for that application.
With this done, the application should be normally displayed in the Open with.. dialog, as well as in Default Apps.
Update (May 3 2016):
You can use this REG file to add .CONF file type, using the same association setting for CodeWriter .txt file type.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\SOFTWARE\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppModel\Repository\Packages\ActiproSoftwareLLC.562882FEEB491_2.5.17.17_neutral__24pqs290vpjk0\App\Capabilities\FileAssociations]
".conf"="AppXea46y3k4tynme684q1dgefbnb0b9r8ec"
Pls note that you need to take ownership of the above registry key, add yourself full Permissions, then merge the REG file. Once done, reverse the Permissions to defaults.
Note: This REG file is valid for the current version (as of this post) of Code Writer. If you have any other version, make the modification in the appropriate key.
The key might have the following naming/numbering convention or similar.
ActiproSoftwareLLC.562882FEEB491_n.n.nn.nn_neutral__24pqs290vpjk0
Best Answer
Configure Windows File Association Pointers
ASSOC .xml=xmlfile
and press EnterFurther Resources
Windows Environment Variables
ASSOC /?
FTYPE /?