Click here to Skip to main content
16,016,781 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have 2 exe that are build from C a.exe and b.exe. These exe files are called from UWP app.

What I have tried:

Below is what I did.
I added Windows Desktop Extensions for the UWP
I added 2 folders groubA & groubB in project's root directory then rename a.exe to app.exe and add to groupA folder, rename b.exe then add to groupB folder.
 
In Package.appxmanifest:
<pre><Applications>
      ...
      <Extensions>
        <desktop:Extension Category="windows.fullTrustProcess" Executable="app.exe">
          <desktop:FullTrustProcess>
            <desktop:ParameterGroup GroupId="groupA" Parameters="/groupA"/>
            <desktop:ParameterGroup GroupId="groupB" Parameters="/groupB"/>
          </desktop:FullTrustProcess>
        </desktop:Extension>
      </Extensions>
    </Application>
  </Applications>


In Main class :
await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync("groupA");

to call exe file in groupA folder. When I run UWP app I got error :
windows can not find ...\Appx\app.exe
.
In my understanding, tag <desktop:extension> indicates that app.exe is register as a fullTrustProcess. And <desktop:ParameterGroup GroupId="groupA" Parameters="/groupA"/> indicates that app.exe with groupId ="groupA" and in folder groupA will be executed when LaunchFullTrustProcessForCurrentAppAsync("groupA") is called. Am i right?
Please help me find what wrong here?
Posted
Updated 13-Mar-18 23:37pm
v2

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