Launching an Executable from WinRT? - c#

Is there a way to do this?
Or at least download the executable and letting user open it?
I want to create a WinRT that depends on a desktop service like this
So either sideload the WinRT from desktop or install the desktop app from Metro.

You can't do that in WinRT today. If you had an executable created for ARM Windows RT today, then you could run the app but Microsoft has not released any tools to create such an executable that runs as a desktop app on Windows RT.

Related

Is it Possible to launch/Trigger an desktop bridged app(Win32) with/without command line parameter from windows task scheduler?

I have a WPF application which is converted to UWP using the desktop bridge, Now I need to call this app/exe from windows scheduler to do some stuff. Now my problem is getting access denied. If any app trying run from task scheduler getting this access denied error.
I have identified a workaround to achieve this. My actual requirement was 'I need to trigger an action in my Desktop bridged UWP app from windows scheduler' unfortunately windows scheduler has not read/write access to the uwp apps folder
The workaround was I have packaged a simple exe along with my UWP app package during first launch of the app the packaged exe will be copied to outside uwp sandbox, from the windows schedule I will execute this copied 'exe' say sample.exe and sample .exe will send a custom windows message to my UWP app.
The work around provided by thunderbird would work only with the Desktop Bridged UWP app. Native UWP app cannot do this way.

Is it possible totransform my windows iot app into a dll?

I am new to windows iot core, Actually I am running it with a raspberry Pi3
What I want to do is to create a .dll from an app based on windows iot core and integrate it in an other solution (WPF plateform) and whenever I call the .dll methods I get datas from my solution to my raspberry pi and vice versa
Actually I am confused about it there's not enough documentation about this and I don't know if this is possible or not if yes I would be very thankfull if you provide me some links
I assume your WPF application running on Windows 10 device.
To use UWP API in WPF application you need Package your WPF applications (Desktop Bridge).
When you create a package for your desktop application, your
application will get an identity and with that identity, your desktop
application has access to Windows Universal Platform (UWP) APIs.
Package a desktop application by using Visual Studio
Using a UWP C++ dll in Win32 C# WPF application
If your WPF application running on lower version than Windows 10 you can't use above solution.
In this case you need implement network send and receive logic respectively for WPF and UWP. Establish, for example, socket connection between them.

Can a Windows desktop app work also on Windows Phone?

I have a windows desktop app done in VB. Can I have same app to work on windows mobile also?
As far as I know windows mobile development is different and windows desktop development is different. Can we have 1 single app that works for both(windows mobile & windows desktop)?
I have developed a windows mobile app before and I had done it through Visual studio(Xaml and C#).
I have also worked with windows desktop app visual studio(c#).
If it is possible to have single app for both mobile and desktop then will the existing VB.net app will work? Or do I have to build a separate app from scratch?
That depends on what you mean by "Windows Mobile".
If you mean the old Windows that runs on old mobile devices called "Windows Mobile", then yes, you can have a single app for desktop and mobile providing you use .NET Compact Framework.
But if by "Windows Mobile" you mean "Windows Phone", then no. You cannot have a WPF/WinForms application that can run on Windows Phone devices. However, you can develop Windows Store app (or Universal Application for Windows 10) using Windows Runtime, that will run on desktop, tablet or phone.
What is Universal Windows Application?

can a C# windows application be run on a windows 8 based tablet well?

Recently I was asked to work on a project which was developed for an aviculture company.
The client asked if I can make the application which was being developed in C#, to work on a tablet.
So i want to know if i finish the application in c# normally Will I be able to:
1.Use the mono for android and compile the whole project with that and get an android app easily for being used in android devices?
2.Use the executable project on a Windows 8 tablet without any changes?
I would be grateful if any one could answer these two questions.
It depends which tablet you're talking about.
On a Windows RT (ARM based) tablet like Surface, only Metro apps are supported. There are a few desktop apps, but only Microsoft can make them. So if your app is a desktop app, it won't run on Surface RT.
On a tablet with the "real" Windows 8 (x86 based, e.g. Surface Pro), you can run the same apps as on a PC.

how to get an information about processor architecture in windows 8 app

I need to get an information about whether my app is running on x86, x64 or an ARM device.
is there any way to get this information in a windows 8 app via the windows runtime API.
Thanks
// Miro
You can call GetNativeSystemInfo from a WinRT app. That tells you the architecture of the underlying device.
While the app is running, go to Task Manager and select the app. Then right-click and select the file location. If it is installed in the program files(x86) folder, then it is a 32bit app. Otherwise it is an x64 bit app.

Categories