简体   繁体   English

如何使用Installshield的内置自定义操作-在执行序列中不可见

[英]How to use Installshield's built-in custom actions - They are not visible in execute sequence

There are two types of custom actions in installshield namely in-built and user-defined. installshield中有两种类型的自定义操作,即内置操作和用户定义操作。 I want to use installshield's built-in custom action named ISSQLServerValidate to check if it is possible connect to a given SQL Server instance or not using a user credential provided by the user. 我想使用installshield的内置自定义操作ISSQLServerValidate来检查是否可以连接到给定的SQL Server实例,或者不使用用户提供的用户凭证。 Detail of the in-built custom action ISSQLServerValidate is present here . 此处提供了内置自定义操作ISSQLServerValidate详细信息。 I'm working on a Basic MSI project. 我正在做一个基本的MSI项目。

But when I go to either User Interface or Execute sequences I don't see it at all. 但是,当我进入“ User Interface或“ Execute序列时,根本看不到它。 I'm able to see whole lot of Standard actions (eg AppSearch, LaunchConditions) and many other in-built custom actions (eg ISPreventDowngrade, setUserProfileNT etc.). 我能够看到很多标准动作(例如AppSearch,LaunchConditions)和许多其他内置自定义动作(例如ISPreventDowngrade,setUserProfileNT等)。

在此处输入图片说明

Why ISSQLServerValidate in-built custom action is not visible in my project? 为什么ISSQLServerValidate内置自定义操作在我的项目中不可见?

There are two factors that are likely to affect whether you can see the ISSQLServerValidate action. 有两个因素可能会影响您是否可以看到ISSQLServerValidate操作。

  1. There's a right-click option to show or hide the all the InstallShield actions. 有一个右键单击选项可显示或隐藏所有InstallShield操作。 Since these are implementation details for options you have chosen in other views, it defaults to hiding these actions. 由于这些是您在其他视图中选择的选项的实现详细信息,因此默认情况下将隐藏这些操作。 However since your screen capture includes ISSetupFilesExtract and ISSetupFilesCleanup, I'm assuming you've already chosen to show these actions. 但是,由于您的屏幕截图包括ISSetupFilesExtract和ISSetupFilesCleanup,因此我假设您已经选择显示这些操作。
  2. Most of these actions are only added once there's something for them to do. 大多数这些操作仅在有事情要做时才添加。 So ensure that you have added a connection (and maybe a script) in the SQL Scripts view. 因此,请确保已在“ SQL脚本”视图中添加了连接(可能还有脚本)。

Alternately, if you know how this action should be configured (for example if you can copy it from another project), it is safe to populate it and the related actions yourself. 或者,如果您知道该操作的配置方式(例如,如果可以从另一个项目复制它),则可以安全地自己填充此操作和相关操作。 But I'd suggest just getting InstallShield to add it for you by adding the connection and/or script. 但是我建议您通过添加连接和/或脚本来让InstallShield为您添加它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM