简体   繁体   English

Wix注册表编辑未显示在MSI日志中

[英]Wix registry editing not displayed in the msi log

I've been working on a WIX .net project that needs to update a Microsoft registry entry to work correctly. 我一直在研究WIX .net项目,该项目需要更新Microsoft注册表项才能正常工作。 While testing the logic, I found it difficult to debug the WIX components that updates the registry via the MSiexec.exe command line /log options. 在测试逻辑时,我发现很难调试通过MSiexec.exe命令行/ log选项更新注册表的WIX组件。 To verify the correct behaviour, I had to check the registry value manually. 若要验证正确的行为,我必须手动检查注册表值。 How do I force the WIX project to log the registry search and update logic from the following fragment in the MSI log output? 如何强制WIX项目记录MSI日志输出中以下片段的注册表搜索和更新逻辑?

<util:RegistrySearch Id="Office2013RegistySearch"
                     Root="HKLM"
                     Key="SOFTWARE\Microsoft\Office\15.0\Access Connectivity Engine\Engines\Excel"
                     Value="TypeGuessRows"
                     Variable="Office2013GuessRowsx86Exist"
                     Win64="no"
                     Result="exists" />   

<Component Id="Office2013GuessRowsx86RegComponent" Guid="CFE579F9-292A-4777-A671-B5E8E330B1A0" Win64="no">
    <Condition>Office2013GuessRowsx86Exists</Condition>
    <RegistryKey Root="HKLM"
                 Key="SOFTWARE\Microsoft\Office\15.0\Access Connectivity Engine\Engines\Excel" ForceDeleteOnUninstall="no">
      <RegistryValue Type="integer" Name="TypeGuessRows" Value="0"/>
    </RegistryKey>
  </Component>

Try use full log 尝试使用完整日志

msiexec /i "dotnetproject.msi" /L*v "log.log" msiexec /i“dotnetproject.msi”/L*v“log.log”

or add <Property Id="MsiLogging" Value="voicewarmup"/> (for full log too) 或添加<Property Id="MsiLogging" Value="voicewarmup"/> (也适用于完整日志)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 wix:每次运行msi时都要写注册表 - wix: Write registry every time msi is run 将MSI属性写入通过WiX自定义操作创建的注册表 - Writing MSI property to registry created through WiX custom action wix msi install:如果在installFinalize之后安排了removeexistingproducts产品,则升级时将删除注册表 - wix msi install: registry is removed on upgrade if removeexistingproducts is scheduled after installFinalize WIX 工具集 MSI。 如何从注册表中读取文件夹名称? - WIX Toolset MSI. How to read folder name from registry? 产品版本显示在 WIX 制作的 MSI 文件属性中? - Product version displayed in WIX-made MSI file properties? WiX 3.8:两个MSI使用相同的注册表值。 仅在两个MSI都卸载的情况下才如何删除注册表值? - WiX 3.8: Two MSI using the same registry values. How to delete registry values only if both MSI are uninstalled? WiX配置:使用本地应用程序数据路径编辑注册表 - WiX configuration: Editing registry with local app data path 添加WiX自定义操作以将MSI日志文件复制到LOCALAPPDATA文件夹 - Add WiX Custom Action to copy MSI log file to LOCALAPPDATA folder 即使日志指示相反,MSI也不写注册表项 - MSI does not write registry keys even though log indicates the opposite Wix:将 MSI 打包成另一个 MSI - Wix : Package MSI into another MSI
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM