Install4j:Unix 启动器脚本片段使用安装程序变量
Install4j: Unix launcher script fragment use installer variable
在安装程序中,我有一个目录 select离子屏幕让用户 select 和安装程序的特定目录。
然后我想在 unix 启动器的脚本片段中使用这个变量:
然而,在启动器中生成的变量没有正确更改,它使用的是变量描述而不是它的值,如果我用 vi
编辑启动器,我会看到:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${installer:firefoxDirectory}
这是行不通的。
然而,对于这个 question,似乎如果在启动器中使用相同的方法来处理 "Java invocation" 的参数,那么它就可以工作。
我做错了什么?有可能实现吗?
安装程序变量在生成的 shell 脚本中不可用。
However for this question it seems that if this same approach is used in the launcher for the arguments of the "Java invocation" then it works.
在那种情况下,安装程序变量在 Java 启动器中被替换。
对于您的情况,您可以在安装后对启动器脚本 运行 执行 "Replace installer variables in text files" 操作。
在安装程序中,我有一个目录 select离子屏幕让用户 select 和安装程序的特定目录。
然后我想在 unix 启动器的脚本片段中使用这个变量:
然而,在启动器中生成的变量没有正确更改,它使用的是变量描述而不是它的值,如果我用 vi
编辑启动器,我会看到:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${installer:firefoxDirectory}
这是行不通的。
然而,对于这个 question,似乎如果在启动器中使用相同的方法来处理 "Java invocation" 的参数,那么它就可以工作。
我做错了什么?有可能实现吗?
安装程序变量在生成的 shell 脚本中不可用。
However for this question it seems that if this same approach is used in the launcher for the arguments of the "Java invocation" then it works.
在那种情况下,安装程序变量在 Java 启动器中被替换。
对于您的情况,您可以在安装后对启动器脚本 运行 执行 "Replace installer variables in text files" 操作。