question

AndersonRodriguesCavalcante-1548 avatar image
0 Votes"
AndersonRodriguesCavalcante-1548 asked NicoZhu-MSFT answered

How launch another app from my app UWP?

I want to launch another app from my UWP C# app. It can be any app, .exe or other.
I tried using Process.Start(), but didn't work.

dotnet-csharpwindows-uwp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Castorix31 avatar image
1 Vote"
Castorix31 answered

In UWP, apps must have an Uri
See Launch an app with a URI
or more complicated with a Desktop Extension : UWP to Win32 Desktop App Communication without an App Service


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

NicoZhu-MSFT avatar image
0 Votes"
NicoZhu-MSFT answered

Hello, Welcome to Micorosoft Q&A,

I want to launch another app from my UWP C# app. It can be any app, .exe or other.

For launching UWP app from UWP app, and you need to register the protocol to be handled in the app that you'll launch for results. Then call Windows.System.Launcher api to launch the target app. And here is detail steps that you could refer.

For running exe file with Process.Start() is not support within UWP platform. if you want to launch other un-uwp app, you need make desktop extension by desktop-bridge for UWP app, and call Process.Start() in the desktop extension. For more info you may refer stefan's blog UWP with Desktop Extension – Part 2



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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.