install4j:如何在运行时获取当前正在执行的启动器的编译日期/时间戳?

install4j: How can I get the compile date / timestamp of the currently executing launcher at runtime?

类似的问题。

可以查询sys.timestamp编译器变量:

import com.install4j.api.launcher.Variables.Variables;

try {
    String version = Variables.getCompilerVariable("sys.timestamp");
} catch (IOException e) {
    // TODO not running in installation
}