How to prevent "How do you want to open this file" dialog?
<p>In my app I open a report using HTML file as such:</p>

<pre><code>//pStrPath is file:///C:/Users/appts/AppData/Local/Temp/Report_View.htm
ShellExecute(hParentWnd, L"", pStrPath, NULL, NULL, SW_SHOW);
</code></pre>

<p>On my development machine it opens up in a web browser, but when I just tested it on a new installation of Windows 10, it showed this dialog instead:</p>

<p><a href="https://i.stack.imgur.com/j7iPk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j7iPk.png" alt="enter image description here"></a></p>

<p>So how can I prevent it from being shown and go with "keep using this app" option from the get-go? Otherwise it may be very confusing for my users.</p>

<p>PS. Note that Edge is installed and can open <code>.htm</code> files if I double-click them.</p>