将temp installation.log写入.install4j目录 [英] Write temp installation.log to .install4j directory

查看:73
本文介绍了将temp installation.log写入.install4j目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装过程中,会将临时日志文件写入目录%TEMP%.安装完成后,此文件将作为installation.log移至$ {installer:sys.installationDir}/.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.

有没有办法让install4j写入此临时文件.日志文件总是直接直接到目录.install4j?有了它,万一安装程序崩溃,找到它会容易得多.

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.

我们仍在使用install4j 5.0.11.

We're still using install4j 5.0.11.

提前谢谢! 弗兰克

推荐答案

问题是安装可能不会在启动时退出,并且安装目录可能会在安装程序中更改.

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

但是,您可以传递VM参数

However, you can pass the VM parameter

-Dinstall4j.alternativeLogfile=[path to log file]

向安装程序指定备用日志文件.

to the installer to specify an alternative log file.

这篇关于将temp installation.log写入.install4j目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆