gpt4 book ai didi

WiX MSI : How to put print. 输出或 wxs 文件中的 echo 语句?

转载 作者:行者123 更新时间:2023-12-05 04:16:52 27 4
gpt4 key购买 nike

我想向 WXS 添加一些 print.out(或 ECHO)语句。我怎么能这样做?

最佳答案

编译 .wxs 文件时,可以使用预处理器指令:

<?error This is an error message ?> 
<?warning This is a warning message ?>

WiX 构建 Windows Installer 程序包,它们是数据库。 Windows Installer 通过一系列操作处理数据库。没有工具可以扩展 Windows Installer 的日志记录。

安装 MSI 文件时,您可以创建日志 msiexec/?:

Logging Options
/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
i - Status messages
w - Nonfatal warnings
e - All error messages
a - Start up of actions
r - Action-specific records
u - User requests
c - Initial UI parameters
m - Out-of-memory or fatal exit information
o - Out-of-disk-space messages
p - Terminal properties
v - Verbose output
x - Extra debugging information
+ - Append to existing log file
! - Flush each line to the log
* - Log all information, except for v and x options
/log <LogFile>
Equivalent of /l* <LogFile>

自定义操作可以写入日志。但是自定义操作没有写在 .wxs 文件中。

关于WiX MSI : How to put print. 输出或 wxs 文件中的 echo 语句?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26123601/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com