I have a Windows RT Application and a console application. The console application performs certain tasks with Microsoft PowerPoint and a few other applications and it works as a standalone application. I now want to call this console application from the Windows RT application that I have.
What's the best way to go about this?
Related
I am running windows forms,in that forms have some integer.I want to launch UWP app from that form .Already i have UWP and windows forms,then i have to call whenever forms run successfully that time app should launch the integer of form result.
is there any idea for this app launch?
How to launch UWP app from windows forms using C#
You could use Launcher LaunchUriAsync to launch uwp app from WinForm app. And first we need register protocol for UWP app. For detail steps please refer this document. Then we need call Launcher api from WinForm app. For detail steps you could refer this tutorial.
Have you looked at Process.Start ?
https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process.start?view=netframework-4.8
I have an UWP App, and I need to list all the pending Windows Updates for the machine where mu App is running.
I know I can use WUApiLib for doing that in a WPF App, but I am not sure it is possible to do the same thing in an UWP App.
Is it possible?
If not, there is another way in UWP for searching and listing all the pending Windows Updates in an UWP App?
Unfortunately,the WUApiLib is not supported.But there is a workaround.You can write a WPF app and package your WPF app to UWP by Desktop Bridge.Here is the Desktop Bridge document.
I have a program where i want to have the ability to launch a local application (for example Spotify) from my UWP App. I have searched the web for a solution as (Process.Start()) doesn't work. As i have understood the UWP applications is kind of sandboxed for saftey and stability reasons. But is there a (simpel) way to work around this.
I only want the ability to start and close a program inside my own frame/Window. No need to interact/send/recive data between my applications and the external program
That is not possible with all apps. Some desktop apps handle protocol launches and that can be a way of launching another app. Spotify actually has a protocol registered so you could do this to launch it:
await Launcher.LaunchUriAsync(new Uri("spotify:"));
I have a program where i want to have the ability to launch a local
application (for example Spotify) from my UWP App.
You can utilize Windows.System.ProcessLauncher API.
Here is a sample about how to launch an external process (exe) from a Universal Windows Platform (UWP) app you can reference.
Make sure add systemManagement capabiity.
For more information reference ProcessLauncher.
I have created a chrome extension with native app messaging. The native app is written in (Winforms) c#. It starts as soon as we check on to the extension. I need to show the app only when the user clicks on .exe file. So my idea is to create a console application as an Native messaging application. When the user click on extension, the console app will run in background. When the user clicks on .exe
(winforms), the Winform app will launch and communicate with the console app.
Is it the best approach i can go with? And how can i establish the communication b/w console app and winforms?
currently I am working on a project in which the client GUI application is developed using WPF and C# and it calls a service on the webserver for business related functionalities. This client application is developed for desktop clients.
Now we have a requirement to make the application which was being developed for desktop, to work on a windows tablet (OS windows 8 pro).
So I want to know whether I can Use the MSI generated for desktop application can be used on Windows 8 pro tablet without any changes or not? Will the application work as its working in desktop?
If not then what all things I need to do for running the application in windows 8 pro tablet
I would be grateful if any one could answer these two questions.
All windows applications (except those compiled only for the ARM architecture - probably a rare thing), will run on a Windows 8 Pro device of any form factor.