admin管理员组文章数量:1316414
Im currently working on my wix project and its working so far. But when i validate the msi, I have these error messages:
error WIX0204: ICE43: Component DesktopShortcut has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file.
error WIX0204: ICE57: Component 'DesktopShortcut' has both per-user and per-machine data with a per-machine KeyPath.
Here is my code for context.
<Fragment>
<Component Id="DesktopShortcut" Directory="NetzLaufwerkeAppFolder" Guid="d92737a6-cc4e-433a-aff0-697dee411288">
<Shortcut Id="ApplicationDesktopShortcut" Directory="DesktopFolder" Name="test shortcut" Target="[MyFolder]test.exe">
<Icon Id="AppIcon" SourceFile="..\resources\AppIcon_256.ico"/>
</Shortcut>
</Component>
</Fragment>
I understand that errors are happening becuase of the Target attribute. Could someone explain me How i can make this work without the validation errors?
In the Dojo Tutorial I watched on youtube they implemented the Shortcut directly under the exe file. My problem is, that im currently installing the exe in a Files tag. So I thought when the shortcut is just a fragment it should have the exe as Target?
Im currently working on my wix project and its working so far. But when i validate the msi, I have these error messages:
error WIX0204: ICE43: Component DesktopShortcut has non-advertised shortcuts. It should use a registry key under HKCU as its KeyPath, not a file.
error WIX0204: ICE57: Component 'DesktopShortcut' has both per-user and per-machine data with a per-machine KeyPath.
Here is my code for context.
<Fragment>
<Component Id="DesktopShortcut" Directory="NetzLaufwerkeAppFolder" Guid="d92737a6-cc4e-433a-aff0-697dee411288">
<Shortcut Id="ApplicationDesktopShortcut" Directory="DesktopFolder" Name="test shortcut" Target="[MyFolder]test.exe">
<Icon Id="AppIcon" SourceFile="..\resources\AppIcon_256.ico"/>
</Shortcut>
</Component>
</Fragment>
I understand that errors are happening becuase of the Target attribute. Could someone explain me How i can make this work without the validation errors?
In the Dojo Tutorial I watched on youtube they implemented the Shortcut directly under the exe file. My problem is, that im currently installing the exe in a Files tag. So I thought when the shortcut is just a fragment it should have the exe as Target?
Share Improve this question asked Jan 30 at 6:04 Luca Jan MontinaroLuca Jan Montinaro 111 Answer
Reset to default 0Exclude the target file from the Files
then include it separately with the Shortcut. Then you can follow the best practices from the Deployment Dojo.
Alternatively, check out the advanced harvesting feature from FireGiant and it's HarvestFile element that can simplify the whole process.
本文标签: xmlwix msi validate error WIX0204 ICE43 and error WIX0204 ICE57Stack Overflow
版权声明:本文标题:xml - wix msi validate: error WIX0204: ICE43 and error WIX0204: ICE57 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741983047a2408510.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论