如何在InstallShield 2011中为MSI安装程序项目控制服务安装和SQL脚本执行的执行顺序?

时间:2021-09-13 22:45:52

I want to control the execution order of service installation/start and SQL script execution in InstallShield 2011 for a MSI installer project.

我想在InstallShield 2011中为MSI安装程序项目控制服务安装/启动和SQL脚本执行的执行顺序。

Right now first the windows service is installed and started by the setup. Afterwards the SQL scripts are executed. Since the windows service relies on the database created by the SQL scripts I would be great if the service is installed after the database was created.

现在首先安装Windows服务并由安装程序启动。然后执行SQL脚本。由于Windows服务依赖于SQL脚本创建的数据库,因此如果在创建数据库之后安装了该服务,我将会很棒。

Can I change the order of what is done by the MSI installer created by an InstallShield 2011 project?

我可以更改InstallShield 2011项目创建的MSI安装程序所执行的操作的顺序吗?

1 个解决方案

#1


2  

If I remember correctly, the Custom Actions and Sequences view in InstallShield provide this option. If that's the case, you should only tweak the sequence of those two actions. Alternatively, you always have a Direct Editor option where you can modify the MSI InstallExecuteSequence and InstallUISequence tables.

如果我没记错的话,InstallShield中的Custom Actions and Sequences视图提供了这个选项。如果是这种情况,您应该只调整这两个动作的顺序。或者,您始终有一个Direct Editor选项,您可以在其中修改MSI InstallExecuteSequence和InstallUISequence表。

#1


2  

If I remember correctly, the Custom Actions and Sequences view in InstallShield provide this option. If that's the case, you should only tweak the sequence of those two actions. Alternatively, you always have a Direct Editor option where you can modify the MSI InstallExecuteSequence and InstallUISequence tables.

如果我没记错的话,InstallShield中的Custom Actions and Sequences视图提供了这个选项。如果是这种情况,您应该只调整这两个动作的顺序。或者,您始终有一个Direct Editor选项,您可以在其中修改MSI InstallExecuteSequence和InstallUISequence表。