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?