Custom Deployment

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bobneedshelp
    New Member
    • Feb 2007
    • 17

    #1

    Custom Deployment

    Is it possible through an install to run a script to disable a service and then install the files in VB.NET?

    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.

    Code:
    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
    Any help on getting a script to run then the install of the files would be great. The installation has to be done without human intervention.
Working...