InstallShield 2012 Spring新功能试用(13): Suite/Advanced UI 和 Advanced UI 工程支持InstallScript安装程序(Part 2)

继续上一篇,Suite/Advanced UI 和 Advanced UI 工程支持InstallScript安装程序,同时在InstallScript工程增加了针对Suite/Advanced UI 和 Advanced UI 工程的事件响应函数。

通过Setup.exe启动(并不是由Suite/Advanced UI 或Advanced UI安装程序启动)标准的InstallScript安装程序,大部分的事件响应函数是通过事件响应函数OnShowUI直接调用的。在Suite/Advanced UI 或Advanced UI安装程序中启动InstallScript安装包,OnShowUI将被OnSuiteShowUI所取代,见下图。


依据安装包的运行模式(初次安装,维护模式或是升级),OnSuiteShowUI忽略类型OnFirstUIBefore,OnFirstUIAfter等类型的用户操作界面事件响应函数,取而代之的是调用下面的事件响应函数:

  • 初次安装 – OnSuiteInstallBefore,OnSuiteInstallAfter
  • 维护模式 – OnSuiteMaintBefore,OnSuiteMaintAfter
  • 升级 – OnSuiteUpdateBefore,OnSuiteUpdateAfter

InstallScript脚本语言还增加了一些用于InstallScript安装包和Suite/Advanced UI 或Advanced UI安装程序间进行数据交互的函数。比如,InstallScript脚本语言新增加的函数允许我们将InstallScript安装包的Log信息记入到Suite/Advanced UI 和Advanced UI安装程序的Log中,设置和读取Suite/Advanced UI 和Advanced UI的属性,从Suite/Advanced UI 和Advanced UI安装程序传参数到InstallScript安装包中等。

为了识别InstallScript安装程序是否被Suite/Advanced UI或Advanced UI安装程序作为InstallScript安装包所调用,InstallScript脚本代码中特增加了一个新的变量SUITE_HOSTED。

原文地址:https://www.cnblogs.com/wanbinghong/p/2517708.html