简体   繁体   English

Eclipse产品导出向导会生成一个需要管理员权限才能运行的exe

[英]Eclipse product export wizard produces an exe that requires administrator rights to run

I am creating an RCP app that i want to build using the eclipse product export wizard however every time i do the export it builds fine but the exe within the build requires admin rights to run. 我正在创建一个要使用eclipse产品导出向导构建的RCP应用程序,但是,每次执行导出操作时,它都可以构建良好,但是构建中的exe需要管理员权限才能运行。

I thought it was something to do with the configuration on the product so i added: 我认为这与产品上的配置有关,所以我添加了:

osgi.configuration.area
@user.home/Updater/configuration

osgi.instance.area
@user.home/Updater/workspace

This however dose not make any difference. 但是,这没有任何区别。

I am quite confused with this as i basically copied a product from the last app we made and it is basically identical but that export produced an exe that did not require admin. 我对此感到很困惑,因为我基本上是从我们上次制作的应用中复制了一个产品,并且基本上是相同的,但是导出生成了不需要管理员的exe。

Could it be a particular plugin i have in the dependencies that specifies admin? 我在指定admin的依赖项中有一个特定的插件吗?

It turned out to be the Launcher Name field in the Launching tab on the product. 原来是产品“启动”选项卡中的“启动器名称”字段。

If you put "updater" anywhere in the name of the launcher it will produce an exe that requires admin rights to run... 如果将“ updater”放在启动器名称的任何位置,它将生成一个需要管理员权限才能运行的exe ...

I am unsure why this happens maybe it is an eclipse thing when they compile the exe? 我不确定为什么会发生这种情况,也许当他们编译exe时这是蚀食吗?

I just changed the name to something without Updater as the name and all went back to normal :D 我只是将名称更改为不带Updater的名称,然后一切恢复正常:D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM