Rauland
Rauland

Reputation: 3034

Setup project, custom install class overriding OnBeforeInstall, OnAfterInstall

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 or OnAfterInstall?

Thanks

Upvotes: 0

Views: 5138

Answers (1)

sheikhjabootie
sheikhjabootie

Reputation: 7376

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.

Upvotes: 3

Related Questions