If ext = ".htm" Or ext = ".html" Then
' Provider needs manifest AddApplicationText entry for FileProvider
' Provider needs manifest CreateResource entry for File.DirRootExternal
Provider.SharedFolder = File.DirRootExternal
helpintent.Initialize(helpintent.ACTION_VIEW, Provider.GetFileUri(helpfile))
helpintent.SetType("text/html")
helpintent.Flags = 1 'FLAG_GRANT_READ_URI_PERMISSION
helpintent.SetPackage("com.microsoft.emmx")
Try
StartActivity(helpintent)
Catch
MsgboxAsync("An installation of Microsoft Edge is required to read this help file.", "Microsoft Edge")
End Try
Return