最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

xml - wix msi validate: error WIX0204: ICE43 and error WIX0204: ICE57 - Stack Overflow

programmeradmin1浏览0评论

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 11
Add a comment  | 

1 Answer 1

Reset to default 0

Exclude 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.

发布评论

评论列表(0)

  1. 暂无评论