开发者

Setup project, custom install class overriding OnBeforeInstall, OnAfterInstall

开发者 https://www.devze.com 2023-02-12 08:05 出处:网络
I’m working on a setup project and have my own custom installer class in a separate library. From within my custom class I override the install, rollback, commit and uninstall methods.

I’m working on a setup project and have my own custom installer class in a separate library. From within my custom class I override the install, rollback, commit and uninstall methods.

From the setup project, custom actions I add my custom library project output to each available folder. (Install Uninstall, Commit, and Rollback)

I find that there isn’t a corresponding folder for other install methods.

What should I do if I decide to override other methods like OnBeforeInstall开发者_StackOverflow or OnAfterInstall?

Thanks


If you add your Custom Action primary project output to the Install folder, then I think the following methods will be called in this order:

  1. OnBeforeInstall
  2. Install
  3. OnAfterInstall

The same goes for Uninstall, Commit and Rollback. So the OnBeforeXXX and OnAfterXXX methods don't require their own folder.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号