I'm trying to create a UWP app for our tools, one of its functionality is to manage tfs outside visual studio using tf.exe console commands and other things, i noticed that UWP is sandboxed and only has limited access outside its deployment folder so im planning to use a windows service to be the one who will be doing all the heavy work and using NamedPipes to communicate between UWP and Windows Service, been searching a bit already but until now im still not able to establish connection between this 2 app
I'm using console as a sample and starting it from UWP using FullTrustProcessLuncher
I uploaded a sample project in github
https://github.com/vgdagpin/UWP2WindowsService
Any help would be appreciated
I don't know much about named pipes so I can't tell if that is correct. But generally, UWP apps use APP services to communicate with desktop apps because the app service is native UWP.
I'd suggest you take a look at #Stefan Wick's Blog - UWP with Desktop Extension Part 1,2,3. You could search for them in your browser. These tutorials show the way how to package desktop apps with UWP apps using Windows Application Packaging Project and how to establish communication between the UWP app and the console app using App service which should be what exactly you want. After you launched the console app from the UWP app, you could let the console app call the windows service to do what you need.
Related
I'm currently developing a UWP application that now needs access to APIs that are normally not accessible by apps in an AppContainer.
As I'm not (yet) able to migrate to WinUI3, I want to try using DesktopBridge to do the otherwise restricted work.
As both processes have to communicate with each other, I thought of COM as it should make things relatively seamless once everything has been set up.
According to this page this should be possible using "Packaged Com".
I now have...
An Out-of-Process Com Server (c# net5.0) that is accessible by non-packaged win32 apps (e.g., PowerShell) but not my own UWP App.
The UWP App with the main logic and UI.
A Packaging Project, which creates a package out of both projects.
(Manifest)
The code is on GitHub: Repo.
Does someone have an idea how to solve this problem or got an alternative for IPC?
PS: Tutorials I used
Packaged Com
Out-Of-Proc COM in c#
Packaging / DesktopBridge
So if I understand you correctly, you want to communicate between a UWP app and a Win32 app, and these two apps are packaged inside a Windows Application Package Project. Please let me know if it is not correct.
For your scenario, since the two apps are packaged together with desktop bridge, I'd suggest you use the App Service. App service could be used not only between UWP apps but also between the UWP app and desktop app.
These are the detailed steps:
You need to declare the AppService connection in the Manifest file of the package project.
You need to call the App service API in the win32 application.
You need to handle the connection in the App.xaml.cs in the UWP app
You could check the detailed code and sample from Stefan Wick's blog - UWP with Desktop Extension – Part 3.
I developed C# wpf application using 3rd party SDK now i want to deploy application. i want to create exe which is download and install application directly from web with minimal user interaction.
i also want to install .net framework silently on client machine without user interaction. for example like zoom meeting windows application.
Thank You.
you say download and install but how?
if you want to install like msi setup i'm suggest you to try squirrel
which is like clickonce but it works.
But you can also check: Installshield or Advanced Installer which it can let you create an update windows service. With windows service privileges, you can do your job without user interaction.
Also the other way which i prefered 2 months ago is your own application. You can create an updater windows service application. I've developed an updater software which checks an url for the version, if the version higher then download and update the application. Also check if application is running if app is not running then run it. i'm starting processes with an 3rd party tool which you can find it here you will need it if you want to develop your own application which is windows service. Because of windows service isolated "session 0"
I think best way will be your own development.
I have a console app written in c# visual studio and a Windows Universal App. The Universal App has data streaming in, I want to pass that data to the console app which plots it. I have tried various way of doing it including the "Process" but my project isn't able to find that library. Any suggestion would be appreciated.
Thanks
UWP Apps are sandboxed, and can't launch external applications.
If the console app is already running, you may be able to communicate with it (by using sockets for instance). But there's no way to launch it (unless it's another UWP app). That's for security reasons, thank to this you can download any app from the store and run them safely on your computer.
I need to know is there any way to publish traditional desktop applications to windows store. The link,
http://blogs.msdn.com/b/windowsstore/archive/2012/06/08/listing-your-desktop-app-in-the-store.aspx
says we cannot upload the desktop app, but we can give a url for the customers to download.
I need to know, is there any way to directly upload the exe (or whatever).
Microsoft works on a tool for this aka Project Centennial which is not available for public yet. Officially from here:
Your application should already run on Windows 10. To make it easier for you to distribute and monetize your application, we are developing "Project Centennial". This toolkit will enable you to package and publish your .NET and Win32 applications to the Windows Store. "Project Centennial" is expected to be available for public testing next year.
As mentioned by #vzayko, Project Centennial will be the bridge to use to get your classic Windows application into the Windows Store.
However, until the Windows classic app bridge is publicly available (which should be sometime this year), there is no way to submit your application to the Windows Store.
Can a Android Hybrid App with some plugins written in Java and others imported from Cordova, be made windows phone complaint using Xamarin ?
Is there any such feature in VS 2015 from which conversion of android app to windows be made possible without much rework. Please help.
No. Xamarin will not allow you to automatically convert an app from one platform to another.
Microsoft has announced Project Astoria as part of Windows 10. This will enable Android apps to run as Windows Universal apps.
Can a Android Hybrid App with some plugins written in Java and others
imported from Cordova, be made windows phone complaint using Xamarin ?
No you cannot.
There are two ways to port Java code to C#.
The first way is to port the code manually.
The second porting methodology is to try and automate the process by using a code converter.