【问题标题】:WiX shortcut only project仅 WiX 快捷方式项目
【发布时间】:2014-09-12 08:48:28
【问题描述】:

我有我的引导程序项目,只有在引导程序的 UI 上选择了另一个第三方 msi 时,我才需要添加一个快捷方式。所以我最终得到了另一个像这样的小 msi(删除不相关的数据):

<Wix >
<Product >
    <Package />
    <MajorUpgrade />
    <MediaTemplate />

    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramMenuFolder">
            <Directory Id="ApplicationProgramsFolder" Name="FolderName">
            </Directory>
        </Directory>
    </Directory>

    <Component Id="ApplicationShortcut" Guid="PUT-GUID-HERE" Directory="ApplicationProgramsFolder">
        <Shortcut Id="ApplicationStartMenuShortcut"
                Name="App"
                Description="desc"
                Target='"[ProgramFiles64Folder]Folder1\Folder2\app.exe"'
                Arguments=' -n name'
                />
        <RemoveFolder Id="RemoveProgramMenuDir" Directory="ApplicationProgramsFolder" On="uninstall" />
        <RegistryValue Root="HKCU" Key="Software\ACME\App" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
    </Component>

    <Feature Id="ProductFeature" Title="Shortcuts" Level="1">
        <ComponentRef Id="ApplicationShortcut" />
    </Feature>
</Product>

但我明白了

ICE71: The Media table has no entries.

【问题讨论】:

    标签: wix installation windows-installer shortcut


    【解决方案1】:

    由于缺少语言、产品代码等问题,该源代码无论如何都无法编译。如果您发布了一个完整的工作示例,那将会有所帮助。修复这些问题并查看 ICE71 后,您基本上需要删除 mediatemplate 并添加适当的媒体条目,例如(在尖括号中)

    Media Id="1" Cabinet="product.cab" EmbedCab="yes"

    那么你得到的只是警告LGHT1079 : The cabinet 'product.cab' does not contain any files。如果此安装不包含文件,则可以安全地忽略此警告。否则,请将文件添加到文件柜或将其删除。

    【讨论】:

      【解决方案2】:

      我将通过在安装 MSI 时创建快捷方式的转换来扩充第三方 MSI。这样你就不必在引导程序中做任何特别的事情了。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2018-04-19
        • 1970-01-01
        • 1970-01-01
        • 2012-06-23
        • 1970-01-01
        相关资源
        最近更新 更多