Reputation: 371
How to change installation.log file location when fresh installation ?
I am tried with the below options on 'Installer' -> execution options -> Arguments
-Dinstall4j.keepLog=true -Dinstall4j.alternativeLogfile=${installer:sys.installationDir}/diaglogs/installation.log
but no luck.
Upvotes: 1
Views: 418
Reputation: 880
As of 6.1.4 we added a "Copy file" action at the "Finish" screen and copied the logfile to a specified directory. For the file location you can use the installation variable ${installer:sys.logfile}
and for the destination something like ${installation:sys.installationDir}/dialogs/installation.log
. The only thing that is missing in the copied logfile is the last entry like "Installation successful" or something else. But this should be a workaround for your purpose until the logfile location is configurable in a further version.
Upvotes: 0
Reputation: 48070
-Dinstall4j.alternativeLogfile=${installer:sys.installationDir}/diaglogs/installation.log
That would not work, because the installation directory does not exist and is not even known at startup. You have to choose an absolute path for -Dinstall4j.alternativeLogfile
, so this is only suitable for debugging purposes. As of 6.1.4 there is no option in install4j to change the location of the log file.
Upvotes: 1