问题
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