Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Write temp installation.log to .install4j directory

Tags:

install4j

During setup a temporary log file is written to directory %TEMP%. This file is moved as installation.log to ${installer:sys.installationDir}/.install4j after setup finished.

Is there a way to let install4j write this temp. log file always directly to directory .install4j? Having it there it would be much easier to find it in case the setup crashes.

We're still using install4j 5.0.11.

Thanks in advance! Frank

like image 700
Frank Winkler Avatar asked Dec 01 '25 06:12

Frank Winkler


1 Answers

The problem is that the installation may not exit at startup and the installation directory may be changed in the installer.

However, you can pass the VM parameter

-Dinstall4j.alternativeLogfile=[path to log file]

to the installer to specify an alternative log file.

like image 167
Ingo Kegel Avatar answered Dec 05 '25 14:12

Ingo Kegel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!