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

标签 wix wix3.6 wix-extension

我想向 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/

相关文章:

WiX-提交多个属性以延迟自定义操作

wix - 如何找到用于以编程方式卸载的 Wix Burn 可执行文件的 GUID?

wix - 先决条件 Bootstrap 应用程序无法安装 .NET 4.5

wix - 将 regsvr32 作为 WIX 安装程序的一部分运行

wix installer 3.7 bootstrapper 注册表搜索

wix - 为什么我的 WiX 安装程序需要一个空的 CreateFolder 来有条件地更新 Xml 文件?

windows - 具有现代外观和感觉的 WIX 安装程序

wix - 安装证书作为 WiX 包的一部分

windows - WiX Burn Bootstrapper - 无法检测注册表项

wix - 使用 WIX 安装/配置 MS 环回适配器