【问题标题】:How to include a msi file in a Wix setup project如何在 Wix 安装项目中包含 msi 文件
【发布时间】:2010-12-06 11:00:14
【问题描述】:

我通过 Wix 中的 Importfolder 选项在安装项目中添加了一个 msi 文件,如图所示。 现在,如果我构建它。它会出现以下错误:

 ERROR:

----- Starting C:\Program Files\WixEdit\wix-3.0.5419.0\light.exe "REDtrack_Setup.wixobj" -cultures:en-us -out "REDtrack_Setup.msi"  -ext WixIisExtension  -ext WixSqlExtension  -ext WixUtilExtension  at 12/6/2010 4:29:48 PM

Microsoft (R) Windows Installer Xml Linker version 3.0.5419.0
Copyright (C) Microsoft Corporation. All rights reserved.

D:\Apps\REDtrack Setup\REDtrack_Setup\REDtrack_Setup.wxs(2334) : error LGHT0267 : Found orphaned Component 'REDtrackService_Setup.msi'.  If this is a Product, every Component must have at least one parent Feature.  To include a Component in a Module, you must include it directly as a Component element of the Module element or indirectly via ComponentRef, ComponentGroup, or ComponentGroupRef elements.
D:\Apps\REDtrack Setup\REDtrack_Setup\REDtrack_Setup.wxs(1685) : warning LGHT1008 : The action 'PublishFeatures' in the InstallExecuteSequence table is being suppressed.
D:\Apps\REDtrack Setup\REDtrack_Setup\REDtrack_Setup.wxs(1686) : warning LGHT1008 : The action 'RegisterProduct' in the InstallExecuteSequence table is being suppressed.
D:\Apps\REDtrack Setup\REDtrack_Setup\REDtrack_Setup.wxs(1687) : warning LGHT1008 : The action 'PublishProduct' in the InstallExecuteSequence table is being suppressed.
D:\Apps\REDtrack Setup\REDtrack_Setup\REDtrack_Setup.wxs(1688) : warning LGHT1008 : The action 'RegisterUser' in the InstallExecuteSequence table is being suppressed.

----- Finished

Error in light

我该如何解决。

【问题讨论】:

    标签: wix windows-installer


    【解决方案1】:

    你读过错误信息吗?查看此操作为您生成了哪些代码(ImportFolder;它是 WiXEdit 软件吗?)并根据错误消息确保组件至少具有一个父功能等。

    【讨论】:

    • 是的,我读到了这个错误消息,但它是什么意思“组件至少有一个父功能”。我们可以不在安装项目中包含 msi 文件吗?
    • 我建议你从这里开始:tramontana.co.hu/wix。首先熟悉基础知识。是的,如果您希望将任何文件安装到目标系统,您可以将任何文件包含到安装项目中。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-21
    • 1970-01-01
    • 2012-08-24
    • 2013-04-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多