问题描述
我们正在使用Inno Setup(版本5.4.2)作为打包工具来生成我们的安装程序.我们将一些密码值作为命令行参数传递.在Inno Setup中,所有命令行参数都将通过"Setup command line:"条目自动登录到安装日志中.有什么方法可以禁止设置命令行"登录日志.
We are using Inno Setup(version 5.4.2) as the packaging tool to generate our installer. We are passing some password values as command line arguments. In Inno Setup all command line arguments are logging into installation log automatically with "Setup command line:" entry. Is any way to suppress the "Setup Command Line" logging into log.
推荐答案
否.您只能禁用整体日志记录.这是 source code
:
No. You can disable only the overall logging. Here's the excerpt from the relevant part of the source code
:
...
Log('Setup version: ' + SetupTitle + ' version ' + SetupVersion);
Log('Original Setup EXE: ' + SetupLdrOriginalFilename);
Log('Setup command line: ' + GetCmdTail);
LogWindowsVersion;
...
您可以看到 Log
过程调用命令行尾部以及 Log
过程本身不包含过滤掉某些日志消息的方法.因此,目前,防止此潜在安全问题的唯一方法是禁用整体日志记录.
As you can see there is no condition before the Log
procedure call for the command line tail as well as the Log
procedure itself does not contain a way to filter out certain log messages. So, at this time the only way to prevent this potential security issue is disabling the overall logging .
由于这可能是一个安全问题,因此建议您提交功能请求报告.
Since this might be a security issue, I would suggest you to file a feature request report.
这篇关于Inno Setup-取消显示"Setup命令行:"日志条目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!