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.
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 create the wpf app and add the UWP (Windows 10) dll and winmd files. and then use use the wpf app to open the app service, the receive app is UWP blank app, cause some requirement i need about .5 second to sent the message back to wpf app. end up the connection will canceled about less a minute. if i want sent the data to wpf app any suggestion for fast way of IPC ?
Repro project:
https://1drv.ms/u/s!AgAR-fncMacb0ugThRIsoiAXnyP31Q
I'm actually creating an UWP 8.1 app for one of my client.And I've got some little issue with it.At some point of my app I've to get all the names of installed app in the device and view it as a list.When the user will click on any of them, I've to launch that certain app.
I've already tried to add restricted capabilities in the app manifest but it shows a blue line when I add,
Morever I can get access to the AppData/Packages by using folderpicker somehow but don't know what to do.
The app is for WinRT surface 3 and it isn't going to store or anything it has only one user. So if anyone know any sort of solution please let me know.
The PackageManager class has the methods to enumerate all installed apps.
However, in 8.1 the PackageManager can only be used in desktop apps (e.g. WPF, Winforms, Win32). It cannot be used from a Store app on that version of the operating system.
On Windows 10 you can use the class from both Store/UWP apps as well as classic desktop apps.
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 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?