[英]Using Instal Shield how can one install an applcaition(file transfer,prerequiste) through custom dialog checkbox
我正在尝试通过创建自定义对话框来安装三个应用程序。在自定义对话框中有复选框和Onclicking复选框,此后接下来我想让我的应用程序进行文件传输,安装基于该复选框的先决条件。我希望这种情况发生所有这三个应用程序。请建议如何做以及如何给条件。
Assuming you're talking about a custom dialog for a Basic MSI, I would suggest the following: 假设您在谈论基本MSI的自定义对话框,我建议以下内容:
App1
, App2
, App3
. App1
, App2
, App3
具有有意义的名称。 INSTALL_APP_1
, INSTALL_APP_2
, INSTALL_APP_3
. INSTALL_APP_1
, INSTALL_APP_2
, INSTALL_APP_3
。 I show public properties here out of habit, but since they will be used in the same sequence (on the same dialog box, even), it's okay to use private properties. INSTALL_APP_1
INSTALL_APP_1
NOT INSTALL_APP_1
. NOT INSTALL_APP_1
。 If you are going to show this dialog box during maintenance, you should also initialize the values of the check box properties ( INSTALL_APP_1
, etc.) so that merely going past this dialog box doesn't change their installation state. 如果要在维护期间显示此对话框,则还应该初始化复选框属性的值(
INSTALL_APP_1
等),以便仅通过该对话框不会更改其安装状态。 You can use feature-state condition syntax ( !App1
, etc.) to do so in SetProperty custom actions scheduled just before showing the maintenance dialog (eg set property INSTALL_APP_1
to the value 1
with condition !App1=3
). 您可以使用功能状态条件中的语法 (
!App1
等)在预定的SetProperty自定义操作,这样做只是显示维护对话框(如设置属性之前INSTALL_APP_1
的值1
与条件!App1=3
)。
If these features are shown in a feature selection control, be sure to update the properties accordingly. 如果这些功能显示在功能选择控件中,请确保相应地更新属性。 Do so on the Next button of that dialog using a combination of the feature state and feature action syntaxes.
使用功能状态和功能操作语法的组合,在该对话框的“下一步”按钮上执行此操作。 The property should be
1
if the feature is currently installed and not being removed, or is being installed; 如果该功能当前已安装但尚未删除或正在安装,则该属性应为
1
否则,该属性应为1
。 it should be set to empty ( {}
) otherwise. 否则应将其设置为空(
{}
)。
This is a lot of steps, but together they help ensure the features will act as a user expects. 这是很多步骤,但是它们共同帮助确保这些功能可以按照用户期望的方式运行。 If he does nothing to change their state, they should persist as previously set.
如果他不采取任何行动来改变他们的状态,他们应该坚持以前的设定。 If visible in both the feature selection control and via check boxes, they should act in sync.
如果在功能选择控件和通过复选框中均可见,则它们应同步运行。
As far as prerequisites, if you mean the InstallShield concept of prerequisites, this you can associate prerequisites with the features for those apps. 就必备软件而言,如果您是指必备的InstallShield概念,则可以将必备软件与这些应用程序的功能相关联 。 If you just mean other components inside your MSI, those work perfectly well with the features defined in step 1 as well.
如果您只是想在MSI中使用其他组件,那么这些组件也可以与步骤1中定义的功能完美配合。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.