I've tried using an installer class with the custom actions and that is not working. The files are installing first and then the custom action runs. I've used message boxes in the code, instead of a script, to see when the files are actually getting written vs the script running.
Expand|Select|Wrap|Line Numbers
- Public Class TestInstaller
- Public Sub New()
- MyBase.New()
- MsgBox("Script here: Public New before Initialize comp")
- 'This call is required by the Component Designer.
- InitializeComponent()
- MsgBox("Script here: Public New after Initialize comp")
- End Sub
- Public Overrides Sub Install(ByVal savedState As IDictionary)
- MsgBox("Script would run here: Install before")
- MyBase.Install(savedState)
- MsgBox("Script would run here: Install after")
- End Sub
- Public Overrides Sub Commit(ByVal savedState As IDictionary)
- MsgBox("Script would run here: Commit before")
- MyBase.Commit(savedState)
- MsgBox("Script would run here: Commit after")
- End Sub 'Commit
- End Class