Reto Höhener
Reto Höhener

Reputation: 5808

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

Similar question to how to get the Version.

Upvotes: 2

Views: 61

Answers (1)

Ingo Kegel
Ingo Kegel

Reputation: 48070

You can query the sys.timestamp compiler variable:

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

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

Upvotes: 1

Related Questions