使用Install4J并启动.exe文件后,禁用拖放功能 [英] Drag and Drop disabled after using Install4J and starting the .exe file

查看:80
本文介绍了使用Install4J并启动.exe文件后,禁用拖放功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动JavaFX application from a .jar file时,一切都很好.我正在使用具有开源许可证的 Install4J 来制作Windows的安装程序

Everything works great when starting the JavaFX application from a .jar file . I am using Install4J with Open-Source licenses to make installers for Windows .

问题的确切描述是这样:

The exact description of the problem is this :

在应用程序内部进行拖放操作.当我从 在Windows资源管理器的应用程序中也可以使用.只是 由于某些原因,无法从Windows桌面或资源管理器中进行拖动 .....

Inside the application drag and drop works . Also when i drag from inside the application to the Windows Explorer it also works . Just for some reason dragging from Windows desktop or explorer doesn't work .....

下面要具体说明,我有照片可以帮助您准确了解问题所在.

To be specific below i have photos which will help you understand exactly the problem.

Windows 10, Java 9.0.4 Install4J 7.0.5

此链接的应用程序存储库位于Github上( XR3Player )

The repository of the application is on Github in this link ( XR3Player )

尝试了从禁用初始屏幕到检查权限的所有内容,但似乎Windows 10 maybe?,系统禁止应用程序访问拖放,我不知道.所以

Tried everything from disabling the splash screen to checking the permissions but it seems like the Windows 10 maybe? , system disables the application from having access to Drag and Drop , i don't know . So

1)禁用了启动屏幕

2)禁用(使用SWT或QT)

2) Disabled ( Using SWT or QT)

3)检查Unix权限(它们与某些事情有关吗?...)

3) Checking Unix Permission ( do they have to do with something ?...)

4)从.exe文件启动应用程序,禁用拖放操作

4) Starting the application from .exe file Drag and Drop disabled

5)从.jar文件启动应用程序,拖放操作效果很好

5) Starting the application from .jar file the Drag and Drop works pretty well

6)在应用程序内部进行拖放操作.另外,当我从应用程序内部拖动到Windows资源管理器时,它也起作用.出于某种原因,无法从Windows桌面或资源管理器中进行拖动...

6) Inside the application drag and drop works . Also when i drag from inside the application to the Windows Explorer it also works . Just for some reason dragging from Windows desktop or explorer doesn't work .....

7)还尝试作为控制台应用程序来查看是否报告了任何错误,但仍然没有报告.

7) Tried also as a console application to see if any errors are reported but still nothing.

推荐答案

在"Windows"中使用需要管理员"选项 启动器向导的清单选项"导致此问题,因为 Windows阻止了非高架桌面和高架应用程序之间的拖放.

Using the "Require administrator" option in the "Windows manifest options" of the launcher wizard causes this issue, because drag and drop between the non-elevated desktop and your elevated application are prevented by Windows.

这篇关于使用Install4J并启动.exe文件后,禁用拖放功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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