Start application at the end of setup

  • Thread starter Thread starter Vittorio Pavesi
  • Start date Start date
V

Vittorio Pavesi

Hello,
anyone know how to launch the application as soon as the installation
package finish.
I'm using VB .NET 2003
Thanks

Vittorio
 
Are you using "setup project" in VS? You can simply add a custom action
(which is the app you install) at commit time. You can change parameters,
conditions on the property grid.

Thanks
Lifeng
MS VB Team
 
i guess i should have qualified this a little more since you have to look
fairly deep in the source code provided by the ms web site link that i
cited.

you can do this only w/n vs.net 2003 afaik b/c it has an installer class
template. you'd simply select this template and add it to your regular
project.

your custom install class will inherit from
system.configuration.install.installer (namespace doesn't appear in
2002)...like this:

<RunInstaller(True)>Pulic Class Installer
Inherits System.Configuration.Install.Installer
' the template addes code here...you don't have to muck w/ it though
' insert code from previous post here
End Class

lemme know if it works for you.

hth,

steve
 
Back
Top