IM目前正在从事我的Wix项目及其迄今为止的工作。但是当我验证MSI时,我会有这些错误消息:
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.
这里是我的上下文代码。
<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>
我知道错误是由于目标属性而发生的。有人可以向我解释我如何在没有验证错误的情况下完成这项工作?
在我在YouTube上观看的Dojo教程中,它们直接在EXE文件下实现了快捷方式。我的问题是,我当前正在将EXE安装在文件标签中。因此,我认为当快捷方式只是片段时,应该将EXE作为目标?
Files
上隔开,然后将其与快捷方式分别包含。然后,您可以遵循部署Dojo的最佳实践。
在线,查看Firegiant的高级收获功能,它的是可以简化整个过程的Harvestfile Elements。