如何为 InstallShield LE 添加自定义 2010 VSTO Office 运行时

本文关键字:2010 VSTO Office 运行时 自定义 添加 InstallShield LE | 更新日期: 2023-09-27 18:30:47

我正在尝试使用InstallSheild安装程序创建VSTO。 我已按照此处的说明创建了 2010 VSTO 的自定义可再发行版本。 但是,当我刷新列表时,新的自定义.prq不会显示。 如何创建将显示在可再发行组件列表中的自定义.prq

以下是我用于创建自定义前提条件的 xml 代码:

<?xml version="1.0" encoding="UTF-8"?>
<SetupPrereq>
<conditions>
    <condition Type="32" Comparison="2" Path="HKEY_LOCAL_MACHINE'SOFTWARE'Microsoft'VSTO Runtime Setup'v4R" FileName="Version" ReturnValue="10.0.40309" Bits="2"></condition>
</conditions>
<files>
    <file LocalFile="<ISProductFolder>'SetupPrerequisites'VSTOR'vstor_redist.exe" URL="http://download.microsoft.com/download/B/5/1/B51D2F9E-1432-4B76-8248-F47316BB8EE0/vstor_redist.exe" CheckSum="a1b5c8fb246a9d0d66f12d3b6f5e471d" FileSize="0,40051808"></file>
</files>
<execute file="vstor_redist.exe" returncodetoreboot="1641,3010" requiresmsiengine="1">
</execute>
<properties Id="{3A84D56D-8682-4CAC-925E-3F1BDF3BE700}" Description="This prerequisite installs the most recent version of the Microsoft Visual Studio 2010 Tools for Office Runtime." >
</properties>
</SetupPrereq>

如何为 InstallShield LE 添加自定义 2010 VSTO Office 运行时

您的代码在文件部分的文件下有一个小错别字:

<files>
    <file LocalFile="&lt;ISProductFolder&gt;'SetupPrerequisites'VSTOR'vstor_redist.exe" URL="http://download.microsoft.com/download/B/5/1/B51D2F9E-1432-4B76-8248-F47316BB8EE0/vstor_redist.exe" CheckSum="a1b5c8fb246a9d0d66f12d3b6f5e471d" FileSize="0,40051808"></file>
</files>

&lt;&gt;是必需的,因为(我假设)它们被解析到<中,并在工具刷新数据时>


注意:我假设从网站复制和粘贴代码,这些代码粘贴不正确,因为有时确实会发生这种情况。 但是,在这种情况下,这是必要的