Is there anyway to suppress the "WebView runtime not installed" message when opening a window that has the WebBrowser control on it and the WebView2 Runtime does not exist?
We are currently transitioning from using old OLE controls for URL functions to the new WebBrowser control. However, we want to be able to support both options in our next release by incorporating both the old OLE control as well as the new WebBrowser control on the same window. The code is setup to check the registry to determine if the WebView2 Runtime has been installed, and if so, make the WebBrowser control both visible and enabled and proceed down that path. However, if the WebView2 Runtime is not found in the registry, then the code will leave the WebBrowser control as disabled and invisible, and will then continue to use the old OLE objects. The problem we are running into is that even with the WebBrowser control disabled and invisible, as soon as a window that has the WebBrowser control on it is instantiated, if the WebView2 Runtime is not found, a popup message is displayed to the user stating "WebView Runtime not installed". Since we are performing our own check, and not using the WebBrowser control if the WebView2 Runtime is not found, we would like to be able to suppress this popup message.