Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在表单上添加一个文件选择器,我想将初始目录默认为环境变量。如果我将它指定为 ${MY_ENV_VARB},我看不到它被填充(install4j 版本 5.1.5)
文本字段表达式不支持环境变量,您必须添加“设置变量”操作,“变量名称”为“myVar”,脚本为
System.getenv("MY_VAR")
然后将其与语法一起使用
${installer:myVar}