【问题标题】:How to add a new prerequisites in InstallShield Setup Project?如何在 InstallShield 设置项目中添加新的先决条件?
【发布时间】:2016-04-06 09:55:41
【问题描述】:
我正在使用 Visual Studio 2013 和 Instal Shield 2015 Limted Edition 为 Windows 桌面应用程序构建安装项目。
这个应用程序有两个依赖的运行时环境
- SQL Server 2012 本地数据库
- 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】:
我已经安装了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="<ProgramFilesFolder>\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>
此代码将帮助有需要的人。