Hi,
Welcome to MicroSoft Q&A!
To solved the access denied issue, you could use StorageFile.GetFileFromApplicationUriAsync(Uri) method to get the file. As follows:
private async void Button_Click(object sender, RoutedEventArgs e)
{
var file = await StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appdata:///temp/mycrt.crt"));
}
Note that LaunchFileAsync
API also imposes several restrictions on what types of files it can launch. Many file types that contain executable code, for example .exe, .msi, and .js files, are blocked from launching. Maybe the certification file can't be launched.
Updated:
I have checked the related properties about Launcher, I have to say that there is no such launcher properties and app permission setting that could launch built-in certificate viewer to open this certification.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.