使用 WiX 创建第二个服务包
如何使用 WiX 为您的应用程序创建第二个服务包? 我已经发布了 SP1,并且该安装程序运行良好。 但我在使用 SP2 时遇到了一些困难。 我当前的 WiX 设置已从原始 (RTM) 版本正确升级。 但是,如果我尝试从 SP1 升级,文件根本不会更新,尽管它在“添加/删除程序”中显示为 SP2。 我需要做什么才能使升级成功? 我已将另一个
添加到我的
除此之外,我很大程度上遵循 http://wix.sourceforge.net/manual-wix2/patch_building.htm 将版本号从 1 更改为2.
我应该对 SP2 进行哪些更改?
How do you use WiX to create a second service pack for your app? I’ve released SP1, and that installer works fine. But I’m having some difficulty with SP2. My current WiX setup upgrades from the original (RTM) version correctly. But if I try to upgrade from SP1, the files simply don’t update, although it shows as SP2 in Add/Remove Programs. What do I need to do to make the upgrade work? I’ve added another <TargetImage>
to my <UpgradeImage>
Other than that, I’m largely following the example from http://wix.sourceforge.net/manual-wix2/patch_building.htm changing to the version number from 1 to 2.
What changes should I be making for SP2?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现了我的错误。 我更改了
PatchFamily
的值(在
下)。 这导致它将 SP1 和 SP2 视为两个不同的“家族”,因此 SP2 不会覆盖 SP1,即使它的编号更高。 我将PatchFamily
更改为其旧值,并且我的补丁构建成功。I found my error. I had changed the value of
PatchFamily
(under<PatchSequence>
). This caused it to think of SP1 and SP2 as two different "families", so SP2 did not override SP1, even though it had a higher number. I changedPatchFamily
to its old value and my patch built successfully.