在UWP中,我调用nodejs node.exe,但它会立即退出。我想知道为什么? [英] IN UWP,I call nodejs node.exe,but it exit immediately. I wonder why?

查看:96
本文介绍了在UWP中,我调用nodejs node.exe,但它会立即退出。我想知道为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,抱歉我的英语不好。我想调用node.exe在UWP中运行javascript,并使用  FullTrustProcessLauncher。我设置的
扩展名如下。

First, sorry for my poor English. I want to call node.exe to run a javascript in UWP and I use the FullTrustProcessLauncher. The extension I set is as follows.

<Extensions>
        <deskwindows.fullTrustProcess" Executable="nodejs/node.exe">
          <deskgt;
            <deskSyncGroup" Parameters="/new1.js"/>
          </deskgt;
        </deskgt;
      </Extensions>

然而,当我运行我的进程时,node.exe只会出现一秒钟并立即退出。但是当我调用其他应用程序如notepad ++。exe时,它将成功打开。我真的很想知道为什么会这样。我应该使用  FullTrustProcessLauncher
还是其他一些方法来调用nodejs(node.exe)?期待您的帮助。谢谢。

However, when I run my process, the node.exe just appear for a second and will exit at once. But when I call other applications like notepad++.exe, it will be open successfully. I really wonder why this happens. Should I use FullTrustProcessLauncher or some other way to call nodejs(node.exe)? Looking forward to your help. Thanks.

推荐答案

<Extensions>
        <desktop:Extension Category="windows.fullTrustProcess" Executable="nodejs/node.exe">
          <desktop:FullTrustProcess>
            <desktop:ParameterGroup GroupId="SyncGroup" Parameters="/new1.js"/>
            <desktop:ParameterGroup GroupId="OtherGroup" Parameters="/Other"/>
          </desktop:FullTrustProcess>
        </desktop:Extension>
      </Extensions>





这篇关于在UWP中,我调用nodejs node.exe,但它会立即退出。我想知道为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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