Click here to Skip to main content
15,893,381 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 3-Oct-20 2:37
professional Randor 3-Oct-20 2:37 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
OriginalGriff3-Oct-20 2:59
mveOriginalGriff3-Oct-20 2:59 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 3-Oct-20 3:07
professional Randor 3-Oct-20 3:07 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
OriginalGriff3-Oct-20 4:00
mveOriginalGriff3-Oct-20 4:00 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 3-Oct-20 4:24
professional Randor 3-Oct-20 4:24 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Nelek4-Oct-20 10:16
protectorNelek4-Oct-20 10:16 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 4-Oct-20 10:38
professional Randor 4-Oct-20 10:38 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon4-Oct-20 19:12
markrlondon4-Oct-20 19:12 
Randor wrote:
I would hazard a guess that the display problem @OriginalGriff is having is caused by Outlook generating a MHT file with the MIME type set to 'Content-Type: text/plain'.

If Outlook is opening the user's default app for MHT files then the MIME type is surely irrelevant. The MIME type would only matter if there was a HTTP connection which should surely not apply to this case.

Randor wrote:
The reason it opens in IE11 is an operating system team build issue. The OS image needs to change the default value of HKEY_CLASSES_ROOT\CLSID\{3050F3D9-98B5-11CF-BB8200AA00BDCE0B}\InProcServer32 which currently defaults to an apartment threaded (IE11) C:\Windows\System32\mshtml.dll

A COM object wrapper for launching Chromium-Edge does not exist yet, so don't expect any changes anytime soon.

Good grief, surely not. That would mean that Outlook is massively over-complicated things. Windows has a simple mechanism that supports the necessary default app functionality without needing a COM wrapper for Edge!

See HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts. This contains subkeys that contain user choices for default apps for the specified filetypes. If the filetype is not found as a subkey of this key (meaning that the user has never made a choice) then the fallback is via HKCR\<.extension>. The default value of this key will point to another key in HKCR (e.g. by default ".mht" points to "mhtmlfile") that contains a "shell" subkey that eventually contains the command line necessary to open the file type in question.

New apps can register themselves as supporting specific capabilities using the HKLM\SOFTWARE\RegisteredApplications and HKCU\SOFTWARE\RegisteredApplications keys. The Capabilities keys pointed to by each app's entry in both RegisteredApplications allow users to choose default apps for specific file types and protocols in the Settings app. The user's personal choices are recorded in HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FileExts (for file types) and HKCU\SOFTWARE\Microsoft\Windows\Shell\Associations\UrlAssociations (for protocols)[1].

No COM should be needed at all.

Does Outlook really try to use COM in this scenario?



Footnote:
1: It irks me that Microsoft mis-used protocols to open Microsoft Shop/Metro apps. This means that each app requires a new protocol to be added, which does not make semantic sense. Microsoft should have created a new mechanism (perhaps encapsulated within a single "ms-shop-app-runner" protocol for backward compatibility) for Shop/Metro apps. Or, you know, just let Metro apps be run from a command line.
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 4-Oct-20 19:47
professional Randor 4-Oct-20 19:47 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 2:03
markrlondon6-Oct-20 2:03 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 5:15
professional Randor 6-Oct-20 5:15 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 5:50
markrlondon6-Oct-20 5:50 
AnswerRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 6:10
professional Randor 6-Oct-20 6:10 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 6:38
markrlondon6-Oct-20 6:38 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 7:00
professional Randor 6-Oct-20 7:00 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:19
markrlondon6-Oct-20 7:19 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:11
markrlondon6-Oct-20 7:11 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:34
markrlondon6-Oct-20 7:34 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 7:50
markrlondon6-Oct-20 7:50 
QuestionRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 9:56
professional Randor 6-Oct-20 9:56 
AnswerRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 10:47
markrlondon6-Oct-20 10:47 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 10:58
professional Randor 6-Oct-20 10:58 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 11:37
markrlondon6-Oct-20 11:37 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
Randor 6-Oct-20 11:54
professional Randor 6-Oct-20 11:54 
GeneralRe: Oh come on Microsoft ... get your act together. Pin
markrlondon6-Oct-20 13:08
markrlondon6-Oct-20 13:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.