简体   繁体   English

Install4j绕过了自定义安装步骤

[英]Install4j is bypassing the custom installation steps

We have an application packed with install4j. 我们有一个包含install4j的应用程序。 The initial step is to choose between typical and custom installations. 第一步是在典型安装和定制安装之间进行选择。 The custom installation is usually bringing up the option to choose the localsettings folder, the appdata folder and in the next step, the installation folder (default: Program Files). 自定义安装通常会显示以下选项:选择localsettings文件夹,appdata文件夹,并在下一步中选择安装文件夹(默认为:Program Files)。

For some reason, in a specific environment, when checking neither of the options, the installation proceeds without asking for the desired folder paths. 出于某种原因,在特定环境中,当两个选项均未选中时,安装将继续进行,而不会要求提供所需的文件夹路径。

An error file was created as well: 还创建了一个错误文件:

java.lang.ClassNotFoundException: I4jScript_Internal_12
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runScript(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runBooleanScript(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runBooleanScript(Unknown Source)
at com.install4j.runtime.installer.ContextImpl.runBooleanScript(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source)
at com.install4j.runtime.installer.controller.Controller.start(Unknown Source)
at com.install4j.runtime.installer.Installer.main(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)
at com.exe4j.runtime.WinLauncher.main(Unknown Source)
at com.install4j.runtime.launcher.WinLauncher.main(Unknown Source)

Could you please let me know, what could be the reason for this behavior? 您能否让我知道,这种行为的原因可能是什么?

The class that is not found is for a script in your install4j project. 找不到的类是针对install4j项目中的脚本的。 This can only happen if there is an inconsistency in your installation directory, ie if .install4j/user.jar and .install4j/i4jparams.conf are not from the same installer. 仅当您的安装目录中存在不一致时,即.install4j / user.jar和.install4j / i4jparams.conf来自同一安装程序时,才会发生这种情况。

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

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