[UWP]如何在同一个uwp中添加两个exe [英] [UWP]How to add two exe in same uwp

查看:106
本文介绍了[UWP]如何在同一个uwp中添加两个exe的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个uwp项目,我想在同一个包中使用两个exe文件bcz我想要一个验证程序,并在需要满足条件的情况下对其进行编程以启动第二个exe文件。我也希望两者都可以访问gui

I am working on a uwp project and I want two exe in same package bcz I want one to do validation and program it to launch second exe if required conditions are met. I also want that both have access to the gui

推荐答案

你好,

因为UWP是沙盒应用程序,exe不能直接由UWP中的启动程序运行,默认情况下不允许这样做。如果您想在UWP中启动,则需要在另一个新的UWP应用程序中注册协议,然后使用当前应用程序启动uri。也就是说,你有
来使用两个UWP应用程序,而不仅仅是一个应用程序。有关详细信息,请参阅此处: 

As UWP is a sandbox app, exe cannot directly run by launcher in UWP, this is not allowed by default. If you want to do launch in UWP, you need to register a protocol in another new UWP app, then use current app to launch the uri. That is to say, you have to use two UWP apps, not just a single app. For details see here: 

1。
Launcher

2。
注册你自己的协议

如果你选择使用桌面桥,那么你可以有两个exe。然而其中一个是no-gui windows运行时组件,请参阅演示博客

here

If you choose to use desktop bridge, then you can have two exe. However one of it is no-gui windows runtime component, see a demo blog here

一般来说,UWP不支持你提到的场景。您必须使用其他一些方法来构建您的应用。

In general, UWP does not support the scenario you mentioned. You have to use some alternative ways to build your app.

祝您好运,

Barry 

Barry 

这篇关于[UWP]如何在同一个uwp中添加两个exe的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆