Install Shield 的事件 函数

来源:互联网 发布:淘宝怎么设置周末收货 编辑:程序博客网 时间:2024/05/17 22:45

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

原创粉丝点击