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.