code_junkie

Visual Studio 2008 Installer Project - Custom Actions not firing

Nov 12th, 2011
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. _
  2. Public Class ApplicationInstaller
  3. Inherits Installer
  4. Public Overloads Overrides Sub Commit(ByVal savedState As IDictionary)
  5. ' Do some work on commit
  6. The_Sub_I_Have_my_codein()
  7. MyBase.Commit(savedState)
  8. End Sub
  9. Public Overloads Overrides Sub Install(ByVal stateSaver As IDictionary)
  10. ' Do some work on install
  11.  
  12. End Sub
  13. Public Overloads Overrides Sub Uninstall(ByVal savedState As IDictionary)
  14. ' Do some work on uninstall
  15. End Sub
  16. End Class
  17.  
  18. [RunInstaller(true)]
  19. public class ApplicationInstaller : Installer
  20. {
  21. public override void Commit(IDictionary savedState) {
  22. // Do some work on commit
  23. }
  24. public override void Install(IDictionary stateSaver) {
  25. // Do some work on install
  26. }
  27. public override void Uninstall(IDictionary savedState) {
  28. // Do some work on uninstall
  29. }
  30. }
  31.  
  32. public override void Commit(IDictionary savedState) {
  33. // Do some work on commit
  34. base.Commit(savedState);
  35. }
  36.  
  37. InstallerClass
Add Comment
Please, Sign In to add comment