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
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.
2 answers
Sort by: Most helpful
-
Castorix31 81,741 Reputation points
2021-07-29T14:57:49.05+00:00 -
Nico Zhu (Shanghai Wicresoft Co,.Ltd.) 12,856 Reputation points
2021-07-30T01:49:28.657+00:00 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 callProcess.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.