Click here to Skip to main content
16,018,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to start an exe that is located in C:/Program Files (x86)/App/ from UWP app. The UWP app is located in different directory C:/Program Files (x86)/UWPApp/. Is it possible to do that?

What I have tried:

I can start exe file by using Windows Desktop extension for UWP, add
  <Extensions>
        <desktop:Extension Category="windows.fullTrustProcess"            Executable="Assets\app.exe" />
</Extensions>

to Package.appmanifest and call this
await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
in main class. But I need to add app.exe to Assets directory of project
My question is if exe file is located in a specific directory (ex,C:/Program Files (x86)/App/), can UWP directly start exe file.
Thanks
Posted
Updated 15-Mar-18 16:38pm
v2

1 solution

Only solution that I see now is that you search for the .exe and start it when you find it. It is not possible to just start an executable and not telling where it can be found. The file system has folders for a good reason
 
Share this answer
 
v2
Comments
neoxxxooo 12-Mar-18 20:53pm    
Thanks for your reply, but you misunderstand what I mean, sorry for my poor explanation. My question is how to start exe file from UWP app when it is found. I modified my question, please see it.
neoxxxooo 14-Mar-18 0:57am    
I found that link.
https://stackoverflow.com/questions/45911755/how-to-launch-exe-file-in-uwp-app-using-fulltrustlauncher.
Currently, I can execute exe file from UWP app. But is it possible to register multiple exe to call in UWP app. I tried that but got error:`The Extension element with Category attribute value "windows.fullTrustProcess" must only be declared once`. Do you have any ideas?
mvdk72 14-Mar-18 10:58am    
Without a more complete code sample it's not possible to say anything more than what the error already stated. Apparently you declared the process more then once.
neoxxxooo 15-Mar-18 22:41pm    
Please see my comment below. If you have better solution, could you share with me, Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900