Install Shield 的事件 函数

本文详细介绍了InstallShield的事件函数,这些函数贯穿整个安装过程,包括初始化、移动数据前后、特性事件及各种杂项事件等。通过重写这些事件函数,开发者能够实现对安装过程的精确控制。

InstallShield的事件函数

在InstallShield Help Library的库中,的Reference/Event Handlers的下面,是Install

Shield的一些事件函数。这些事件包含了安装的所有过程,通过重载这些事件函数,即可以实现其过程序的控制,而不用系统默认的方式。所以了解这些函数是什么时候才会运行的非常重要。而且这些事件函数会调用各个InstallShield API函数.分为四类,分别为

1.   Global Event Handlers

其又分为四类,分别为:

1.1  Initialization Handlers

它有三个函数为, OnCheckMediaPassword, OnSetTARGETDIR, OnSetUpdateMode

1.2  Before Move Data Handlers

它有十八个函数,分别为:

OnAdminInstallUIBefore, OnAdvertisementBefore, OnAppSearch, OnBegin,

OnCCPSearch, OnFirstUIBefore, OnIISInitialize, OnMaintUIBefore, OnPatchUIBefore,

OnResumeUIBefore, OnSQLComponentInstalled, OnSQLComponentUninstalled, OnSQLLogin,OnSQLServerInitialize, OnSQLServerInitializeMaint, OnUpdateUIBefore, OnFilterComponents, OnXMLInitialize,

1.3  Move Data Handlers

它有二十三个函数, 分别为:

OnCustomizeUninstInfo, OnGeneratedMSIScript, OnGeneratingMSIScript, OnGeneratingMSIScript, OnIISComponentInstalled, OnIISVRootUninstalling, OnInstalledFile, OnInstallFontFile, OnInstallFilesActionBefore, OnInstallFilesActionAfter, OnInstallingFile, OnMoved, OnMoveData, OnMoving,

OnNetApiCreateUserAccount, OnSQLBatchScripts, OnSQLComponentUninstalled, OnUninstalledFile, OnUninstallingFile, OnUninstallingDIFxDriverFile, OnUninstallingFontFile, OnXMLComponentInstalled, OnXMLComponentUninstalling.

1.4  After Data Move Handlers

它一共有十个函数,分别为:

OnIISUninitialize, OnXMLUninitialize, OnFirstUIAfter, OnMaintUIAfter, OnUpdateUIAfter, OnPatchUIAfter, OnResumeUIAfter, OnAdvertisementAfter, OnEnd

2.   Feature Event Handlers

一共有四个函数,分别为:

OnInstalling, OnInstalled, OnUnInstalled, OnUnInstalling.

3.   Miscellaneous Event Handlers

OnAbort, OnAdminPatchUIAfter, OnAdminPatchUIBefore, OnCanceling, OnDIFxLogCallback, OnError, OnException, OnFileInUse, OnHelp, OnInternetError,

OnLaunchAppAndWaitCallback, OnMsiSilent, 注意此函数好像可以使用默认安装等等。OnOutOfDiskSpace, OnRebooted, OnResolveSource, OnRMFilesInUse, OnSelfRegistrationError,

OnUninstall, OnWarning, OnFileLocked, OnFileReadOnly, OnRemovingSharedFile,

OnNextDisk, OnMD5Error,

4.   Advanced Event Handlers

只有两个函数,分别为:

OnShowUI, OnUninstall

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值