Niiti-6085 avatar image
1 Vote"
Niiti-6085 asked FayWang-MSFT commented

Share data and launch apps

  • Launch 3rd party apps from our UWP app: We will have information on which app to open, however, in spite of trying out different solutions we have not been able to find a solution that is compatible with UWP. We have tried launching 3rd party apps using package ID, family name over powershell, DLL and batch files. The option we think works here is usage of family name to open/launch 3rd party apps. Technical design referred to in this link ( is what we have followed and still face issues. Can someone please help provide inputs for this as below:

  • We have the .bat file that will open third party app from our UWP app, we are able to call this bat file using windows application. But this is not working from UWP app. How can we solve this issue?

  • Are there any other options to tap into other than mentioned in this point? Our UWP app is required to open apps that are installed on the device.

  1. Share data from 3rd part apps to our UWP app: When a user is working on an app (like MS Word), allow users to select an option to share the doc in use with our app, for which we found that Add-ins would help. However, we are not able to extend the add-ins to other apps, like adobe acrobat, photoshop. Can someone please provide inputs on the below:
    Are there other options other than add-ins that will help users share data to our app from within 3rd party apps?

· 5
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.

I don't have the patience and nerves to actually write up a solution - but you are on the right track.
You need to take a look at his other parts - that is part 1 of a series of 4. Long story short, you pass them like this ApplicationData.Current.LocalSettings.Values["parameters"] = ...

Via a parameter, you can specify both the program to launch, and its args - then your Console companion app will read that parameter and launch your other app

1 Vote 1 ·

Appreciate it.. will try it out ...
Do you have recommendations on "share data from 3rd party apps to our UWP app" apart from what we found

0 Votes 0 ·

I'm confused how you call the bat file using windows application? Can you show more details about this? In addition, about how to share data from 3rd party apps to UWP app, you could try to use receive data method. Declaring your app as a share target and adding file types and formats you want to support. You need to match the type shared by source apps.

0 Votes 0 ·

Hi @FayWang-MSFT

I have powershell script file with bellow code Start-Process notepad.exe 'C:\Users\admin\Documents\New Text Document.txt' I need to know how to launch this selected powerShell file in UWP App

0 Votes 0 ·

Hi, you could try to use FullTrustProcessLauncher class. Adding Desktop Extension SDK and declaring the FullTrustProcess extension in manifest file. Then including a Win32 exe in your package that will get launched from the FullTrustProcessLauncher API, that Win32 exe can now invoke your powershell file. Here is a sample you could refer to it.

0 Votes 0 ·

0 Answers