| 发表于:2007-03-29 17:40:1910楼 得分:0 |
终于搞清楚状况了.. vs.net的所谓custom action 都是事后进行的,比如: 重载install(),则安装程序会在执行完install动作后才会来执行你重载的代码,相当于你重写的代码只是额外添加的动作而不能左右整个程序的安装过程。uninstall同样如此。。 但奇怪的是,你若同时重载了install()、onbeforeinstall()、onafterinstall()方法,则安装程序在执行完封装的install动作后会先执行你重载的install()方法,然后才执行beforeinstall,接着是after。。。 参考:http://thespoke.net/blogs/andrew_webber_/archive/2005/02/25/82410.aspx | | |
|