在Wix中安全地解决重复的组件GUID [英] Safely resolving duplicate component GUIDs in Wix

查看:57
本文介绍了在Wix中安全地解决重复的组件GUID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我们发现在Wix脚本中有一个重复组件GUID .公用GUID用于两个名称不同但位于同一目录中的文件.我在网上进行了一些搜索,发现这可能会在以后导致问题,但找不到相同问题的令人满意的解决方案.

Recently we discovered that we have a duplicate component GUID in our Wix script. The common GUID is used for 2 files with different names but in the same directory. I did some searching on the net found that, this can lead to problems later on, but cannot find any satisfactory resolutions of the same problem.

是否有解决此问题的安全方法?谢谢.

Is there a safe way of resolving this issue? Thanks.

推荐答案

您可以重命名文件,并分别给它们两个新向导吗?这是最安全的方法-将所有参考计数问题分离.通过重命名文件,您可以为每个文件创建一个新的绝对路径(路径+文件名),并且Windows Installer本质上会通过分配一个GUID来对绝对路径进行计数.

Can you rename the files and give them both a new guid each? This is the safest approach - it decouples all reference count issues. By renaming a file you create a new absolute path (path + file name) for each file, and Windows Installer essentially reference counts an absolute path by assigning a single guid.

对该概念进行一些进一步的解释.推荐阅读,我认为它会更清晰:

Some further explanation of the concept. Recommended read, I think it will be clearer: Change my component GUID in wix?

注意:如果使用大量延迟负载.

这篇关于在Wix中安全地解决重复的组件GUID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆