How to rename the base file element name under component during hotfix using windows installer?

橙三吉。 提交于 2019-12-20 04:18:59

问题


In base version of my setup, by mistakenly i added the same name for two files like:

<component id="x" GUID="guid value">
<file id="x" source="c:\files\x.dll" name="x.dll">
</component>
<component id="y" GUID="another guid value">
<file id="y" source="c:\files\y.dll" name="x.dll">
</component>

Now I want to change the name to "y.dll" for the file with id="y" using HotFix.

If we change the name directly, the compiler error has been thrown "Component "y" has a changed keypath in the transform 'C:\Patches\diff.wixmst'. Patches cannot change the keypath of a component.

Please suggest me know how to change the file name using hotfix?

来源:https://stackoverflow.com/questions/59089685/how-to-rename-the-base-file-element-name-under-component-during-hotfix-using-win

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!