使用 InstallShield 2010 添加先决条件

发布于 2024-09-12 03:15:29 字数 256 浏览 2 评论 0原文

我对 Installshield 2010 非常陌生。我已经为我的应用程序创建了基本的 MSI 设置。 我需要检查我的申请的一些先决条件,如下所示。

  1. Microsoft 框架 3.5 SP1。
  2. Sql Express 2005.
  3. Visual C++ 可再发行版

如果之前未安装上述任何内容,则我必须在安装应用程序时进行安装。

谁能指导我在安装应用程序之前如何安装所有这些先决条件?

I am very new to Installshield 2010. I have created a basic MSI setup for my application.
I need to check a few prerequisites for my application those are as below.

  1. Microsoft frame work 3.5 with SP1.
  2. Sql Express 2005.
  3. Visual C++ redistributable

If any of the above things are not installed before means, I have to install while installing my application.

Can anyone guide me How I can install all these prerequisites before I installing my application?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

岁月静好 2024-09-19 03:15:29

看一下“安装先决条件”和“功能先决条件”,它们是相同的,只是前者是在调用 MSI 之前由 setupe.exe 安装的,而后者是在您选择功能之后、在选择功能之前由 setup.exe (有条件地)安装的。执行您的 MSI 中的执行序列。

如果您选择前者,您可能还想编写 AppSearch/系统搜索和启动条件来阻止您的 MSI,以防用户不通过 setup.exe 输入。

InstallShield 已经为每一个预定义了先决条件(.PRQ's),但我会提醒您至少使用 SQL 2005 SP3,因为 SP2 中存在一个严重的错误,可能会导致 XP 计算机出现蓝屏。我实际上真的会考虑使用 SQL 2008 R2。

Take a look at "Setup Prerequisites" and "Feature Prerequistes" They are the same except that the former are installed by setupe.exe before calling your MSI and the latter are installed by setup.exe (conditionally) after your feature selection and prior to the execution of the execute sequence in your msi.

If you go for the former, you probably also want to author AppSearch/System Search and Launch Conditions to block your MSI in case the user doesn't enter through the setup.exe.

InstallShield has predefined prereqs ( .PRQ's ) for each of those although I will caution you to atleast use SQL 2005 SP3 as there is a nasty bug in SP2 that can blue screen an XP machine. I'd actually really consider going with SQL 2008 R2.

孤云独去闲 2024-09-19 03:15:29

我花了很长时间才找到这个,希望能为您节省一些时间。

如果您只是想强制用户安装某些应用程序(例如“Visual C++ 可再发行组件”)或某些特定配置(例如特定的 Windows 版本/注册表值等)
您可以使用“行为和逻辑->”系统搜索' 添加您需要的搜索(文件/文件夹/注册表项/ini 文件值/XML 文件值),
关于“你想用这个值做什么?”对话框中选择“存储属性中的值并在安装条件中使用该属性”。

这将导致安装包启动时执行搜索,并向用户显示错误弹出窗口,说明您为安装包输入的任何消息 说明

几点 :
- 如果您正在寻找 x64 位注册表项 - 选中“搜索注册表的 64 位部分”复选框。
- 没有找到编辑条件创建后的方法,当尝试编辑它时,它只是让我查看和更改搜索参数,但对于条件,它只允许从头开始输入;作为解决方法,您可以将项目另存为 XML 文件(安装信息 -> 一般信息 -> 项目文件格式)并在外部编辑 XML。

祝你好运。

This one took me quite a while to find, hopefully I'll save you some time.

If you just want to force your user to have some applications installed (e.g. 'Visual C++ redistributable') or some specific configuration (e.g. specific Windows version/ reg value etc.)
You can use 'Behavior and Logic -> System Search' add the search for what you need (file/folders/registry entries/ini files values/XML file values),
On "What do you want to do with the value?" dialog select Store the values in the property and use the property in an Install Condition".

This will cause the Search to be executed when your installation package starts and will display an error popup to the user saying what ever message you've entered for the condition.

Few notes:
- If you're looking for a x64bit registry entry - mark the "Search the 64-bit portion of the Registry" check box.
- Did not find a way to edit the Condition once created, when tried to edit it it just lets me see and change the search parameters, but for the condition it only allows to enter it from scratch; as a workaround you can save the project as XML file (Installation Information -> General Information -> Project File Format) and edit the XML externally.

Good luck.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文