InstallShield的事件函数
在InstallShield Help Library的库中,的Reference/Event Handlers的下面,是Install
Shield的一些事件函数。这些事件包含了安装的所有过程,通过重载这些事件函数,即可以实现其过程序的控制,而不用系统默认的方式。所以了解这些函数是什么时候才会运行的非常重要。而且这些事件函数会调用各个InstallShield API函数.分为四类,分别为
1.<wbr><wbr><span></span>Global Event Handlers</wbr></wbr>
其又分为四类,分别为:
1.1<wbr><span></span>Initialization Handlers</wbr>
它有三个函数为, OnCheckMediaPassword, OnSetTARGETDIR, OnSetUpdateMode
1.2<wbr><span></span>Before Move Data Handlers</wbr>
它有十八个函数,分别为:
OnAdminInstallUIBefore, OnAdvertisementBefore, OnAppSearch, OnBegin,
OnCCPSearch, OnFirstUIBefore, OnIISInitialize, OnMaintUIBefore, OnPatchUIBefore,
OnResumeUIBefore, OnSQLComponentInstalled, OnSQLComponentUninstalle<wbr>d, OnSQLLogin,OnSQLServerInitialize, OnSQLServerInitializeMai<wbr>nt, OnUpdateUIBefore, OnFilterComponents, OnXMLInitialize,</wbr></wbr>
1.3<wbr><span></span>Move Data Handlers</wbr>
它有二十三个函数, 分别为:
OnCustomizeUninstInfo, OnGeneratedMSIScript, OnGeneratingMSIScript, OnGeneratingMSIScript, OnIISComponentInstalled, OnIISVRootUninstalling, OnInstalledFile, OnInstallFontFile, OnInstallFilesActionBefo<wbr>re, OnInstallFilesActionAfte<wbr>r, OnInstallingFile,
OnMoved, OnMoveData, OnMoving,</wbr></wbr>
OnNetApiCreateUserAccoun<wbr>t, OnSQLBatchScripts, OnSQLComponentUninstalle<wbr>d, OnUninstalledFile, OnUninstallingFile, OnUninstallingDIFxDriver<wbr>File, OnUninstallingFontFile, OnXMLComponentInstalled, OnXMLComponentUninstalli<wbr>ng.</wbr></wbr></wbr></wbr>
1.4<wbr><span></span>After Data Move Handlers</wbr>
它一共有十个函数,分别为:
OnIISUninitialize, OnXMLUninitialize, OnFirstUIAfter, OnMaintUIAfter, OnUpdateUIAfter, OnPatchUIAfter, OnResumeUIAfter, OnAdvertisementAfter, OnEnd
2.<wbr><wbr><span></span>Feature Event Handlers</wbr></wbr>
一共有四个函数,分别为:
OnInstalling, OnInstalled, OnUnInstalled, OnUnInstalling.
3.<wbr><wbr><span></span>Miscellaneous Event Handlers</wbr></wbr>
OnAbort, OnAdminPatchUIAfter, OnAdminPatchUIBefore, OnCanceling, OnDIFxLogCallback, OnError, OnException, OnFileInUse, OnHelp, OnInternetError,
OnLaunchAppAndWaitCallba<wbr>ck, OnMsiSilent, 注意此函数好像可以使用默认安装等等。OnOutOfDiskSpace, OnRebooted, OnResolveSource, OnRMFilesInUse, OnSelfRegistrationError,</wbr>
OnUninstall, OnWarning, OnFileLocked, OnFileReadOnly, OnRemovingSharedFile,
OnNextDisk, OnMD5Error,
4.<wbr><wbr><span></span>Advanced Event Handlers</wbr></wbr>
只有两个函数,分别为:
OnShowUI, OnUninstall