- Add an installer class to your application with the following code:
[sourcecode language='vb']
Public Overrides Sub Install(ByVal stateSaver As IDictionary)
MyBase.Install(stateSaver)
Dim Asm As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly
System.Diagnostics.Process.Start(Asm.Location)
End Sub
[/sourcecode] - Right click on your setup project and go to View - Custom Actions
- Right click on Install under Custom Actions and select Add Custom Action...
- Select the primary output of your project from the application folder
- Do the same for the Commit
That's it. Your installer will now run your application after setup.
No comments:
Post a Comment