Write temp installation.log to .install4j directory

陌路散爱 提交于 2019-12-12 15:12:12

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/22192331/write-temp-installation-log-to-install4j-directory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!