Recent

Author Topic: path to the Microsoft Edge browser  (Read 15909 times)

Arthurus

  • New Member
  • *
  • Posts: 23
path to the Microsoft Edge browser
« on: July 30, 2015, 10:42:28 pm »

Hello
My default browser is firefox.
I have to make calls to Microsoft Edge on windows 10
I do it with Internet Explorer:
c:\program files\internet explorer\iexplore.exe https://www.mybank.com

Where is the path to the Microsoft Edge browser?

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: path to the Microsoft Edge browser
« Reply #1 on: July 30, 2015, 11:03:17 pm »
There is no registry or API that you can use under Windows 10 to retrieve path?

rvk

  • Hero Member
  • *****
  • Posts: 6111
Re: path to the Microsoft Edge browser
« Reply #2 on: July 30, 2015, 11:22:05 pm »
Microsoft Edge is not just an executable you can run from Lazarus. You need to start it as an App.

Some explanation as how to find the AppId on your computer:
http://winaero.com/blog/exclusive-how-to-start-a-modern-app-from-desktop-without-going-to-the-metro-start-screen/

For me, I need to run this to execute Microsoft Edge:
Code: [Select]
explorer.exe shell:AppsFolder\Microsoft.MicrosoftEdge_8wekyb3d8bbwe!MicrosoftEdge
I'm not sure if this AppId is the same on all computers but I can guarantee it will change in the future. So you might want to look into how to read out the AppId from the Application folder for "Microsoft Edge" and use that with "explorer.exe shell:AppsFolder"

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: path to the Microsoft Edge browser
« Reply #3 on: July 31, 2015, 12:04:58 am »
That path seems definitive, just google it

https://www.google.com/search?q=MicrosoftEdge_8wekyb3d8bbwe

Something like this

http://stackoverflow.com/questions/30334289/cant-open-localhost-in-microsoft-edge-project-spartan-in-windows-10-preview

Code: [Select]
Microsoft.MicrosoftEdge_8wekyb3d8bbwe is the identifier for the Edge app. It can be determined by using Get-AppxPackage in PowerShell and sifting through the results for the Spartan / Edge and using the PackageFamilyName.

As of Build 10158, the PackageFamilyName has changed from Microsoft.Windows.Spartan_cw5n1h2txyewy to Microsoft.MicrosoftEdge_8wekyb3d8bbwe.

rvk

  • Hero Member
  • *****
  • Posts: 6111
Re: path to the Microsoft Edge browser
« Reply #4 on: July 31, 2015, 12:09:30 am »
That path seems definitive
And it could change with every new build :)
So it's best to get the correct AppId every time for a given AppTitle.

Quote
Microsoft.MicrosoftEdge_8wekyb3d8bbwe is the identifier for the Edge app. It can be determined by using Get-AppxPackage in PowerShell and sifting through the results for the Spartan / Edge and using the PackageFamilyName.
So there must be an api or registry key to retrieve that. As PowerShell can do it.

lainz

  • Hero Member
  • *****
  • Posts: 4460
    • https://lainz.github.io/
Re: path to the Microsoft Edge browser
« Reply #5 on: July 31, 2015, 12:48:13 am »
That path seems definitive
And it could change with every new build :)
So it's best to get the correct AppId every time for a given AppTitle.

Indeed. It can be like the ClickOnce applications that you never know where these will be installed :)
« Last Edit: July 31, 2015, 01:19:38 am by lainz#007 »

 

TinyPortal © 2005-2018