Install Shield 的事件 函式

2021-09-01 10:16:08 字數 2005 閱讀 7935

installshield的事件函式

在installshield help library的庫中,的reference/event handlers的下面,是install

shield的一些事件函式。這些事件包含了安裝的所有過程,通過過載這些事件函式,即可以實現其過程式的控制,而不用系統預設的方式。所以了解這些函式是什麼時候才會執行的非常重要。而且這些事件函式會呼叫各個installshield api函式.分為四類,分別為

1.global event handlers

其又分為四類,分別為:

1.1initialization handlers

它有三個函式為, oncheckmediapassword, onsettargetdir, onsetupdatemode

1.2before move data handlers

它有十八個函式,分別為:

onccpsearch, onfirstuibefore, oniisinitialize, onmaintuibefore, onpatchuibefore,

onresumeuibefore, onsqlcomponentinstalled, onsqlcomponentuninstalled, onsqllogin,onsqlserverinitialize, onsqlserverinitializemaint, onupdateuibefore, onfiltercomponents, onxmlinitialize,

1.3move 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.4after 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,

onuninstall, onwarning, onfilelocked, onfilereadonly, onremovingsharedfile,

onnextdisk, onmd5error,

4.advanced event handlers

只有兩個函式,分別為:

onshowui, onuninstall

實際應用中installshield的事件處理

比如 建立乙個installshield工程之後 intallshield程式 會自動生成程式執行的 看指令碼 生成了乙個 function onfirstuibefore 該方法是用於 在安裝程式執行期間的 所有視窗的 你可以隨意修改 需要哪些視窗 去掉哪些視窗 比如現在有這樣乙個 問題 我需要在...

Install Shield 的事件 函式

installshield的事件函式 在installshield help library的庫中,的reference event handlers的下面,是install shield的一些事件函式。這些事件包含了安裝的所有過程,通過過載這些事件函式,即可以實現其過程式的控制,而不用系統預設的方...

InstallShield系統變數

batch install 指示當傳輸檔案採用lockedfile或sharedfile時是否鎖定檔案 cmdline setup.exe傳遞的命令列引數 commonfiles common files全路徑如 c program file common files errorfilename f...