如何在InstallShield安装项目中添加新的先决条件?

问题描述 投票:-1回答:1

我正在使用Visual Studio 2013和Instal Shield 2015 Limted Edition为Windows桌面应用程序构建一个安装项目。

此应用程序具有两个依赖运行时环境

  1. SQL Server 2012 LocalDB
  2. Adobe Flash Player ActiveX

选项1已经在installshield Redistributable中列出,我可以包含但我找不到任何可再发行项目的选项2。

我的安装项目需要检查机器中的Adobe Flash Player ActiveX状态,如果没有找到,则必须在安装实际应用程序之前自动安装它。

任何可用于Adobe Flash Player ActiveX的合并模块?

怎么做?

visual-studio-2013 setup-project software-distribution prerequisites installshield-le
1个回答
0
投票

我已经安装了专业版的installshield软件(试用版)src

按照教程youtube创建一个新的Adobe ActiveX.prq文件

在我的安装项目中包含相同的内容,我的设置能够检测Adobe ActiveX状态并按要求执行操作。

我的Adobe ActiveX PreRequisite文件的XML代码(在Visual Studio中打开.prq文件看到相同的内容)

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<SetupPrereq>
    <conditions>
        <condition Type="1" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\FlashPlayerActiveX" FileName="" ReturnValue=""></condition>
    </conditions>
    <files>
        <file LocalFile="&lt;ProgramFilesFolder&gt;\InstallShield\2015LE\SetupPrerequisites\Adobe ActiveX\flashplayer_21_ax_debug.exe" URL="https://fpdownload.macromedia.com/pub/flashplayer/updaters/21/flashplayer_21_ax_debug.exe" CheckSum="F60EDF21DC3F89980651BE01FFB22F9F" FileSize="0,19762368"></file>
    </files>
    <execute file="flashplayer_21_ax_debug.exe"></execute>
    <properties Id="{72D7E3D1-C9DF-4FA6-9F9B-4E5117AB2920}" Description="This prerequisite installs the Adobe ActiveX V21." AltPrqURL=""></properties>
</SetupPrereq>

此代码将帮助有需要的人。

© www.soinside.com 2019 - 2024. All rights reserved.