【发布时间】:2015-10-13 18:45:48
【问题描述】:
根据this,我需要在 Windows Installer 重大升级期间保留用户自定义文件:
1.将每个.config文件放在自己的组件中,并将.config文件标记为组件的关键路径。
2. 在 InstallFiles 操作之后在新版本的 MSI 中安排 RemoveExistingProducts 操作。
<Component Id='config.json' Guid='GUID'>
<File Id='config.json' Name='config.json' DiskId='1' Source='config.json' KeyPath='yes' />
</Component>
...
<InstallExecuteSequence>
<RemoveExistingProducts Before="InstallFiles"/>
</InstallExecuteSequence>
构建过程中出现以下警告:
警告 LGHT1076:ICE63:某些操作介于 InstallInitialize 之间 和 RemoveExistingProducts。
安装时出现如下错误:
安装程序在安装此程序时遇到意外错误 包裹。这可能表明此软件包有问题。错误代码 是 2613。
怎么了?
【问题讨论】:
标签: wix windows-installer