The executable MicrosoftEdge.exe cannot be launched directly like other EXEs in windows. I confirmed that from my own experience, and by reading this and that.
I also cannot launch it via Process.Start("MicrosoftEdge.exe")
in my c# winforms app.
There must be some way to launch Edge from winforms without resorting to 3rd-party app and other clutter. I have already tried the following, with no success:
Process.Start("MicrosoftEdge.exe")
- unhandled exception
Process.Start("microsoft-edge")
- unhandled exception
Process.Start("%windir%explorer.exe shell:AppsfolderMicrosoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge")
- unhandled exception
Process.Start(@"c:WindowsSystemAppsMicrosoft.MicrosoftEdge_8wekyb3d8bbweMicrosoftEdge.exe")
- no exception, but nothing happens
Note: I can easily launch Chrome and Firefox using method #1 above.
How can I launch MS Edge from my .net winforms app?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…