469,608 Members | 2,257 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,608 developers. It's quick & easy.

launch the installed application immediatley after completing setup

Can any one guide me how to launch the installed application immediatley after the Finished screen button clicked. Once the user clicks the finished screen "Close" button, i need to launch the installed application. I tried with installer class. Sample code is given below.I have created a class library and within that an installer class. I tried with the afterInstall event, but its not working.

namespace ClassLibrary1
{
[RunInstaller(true)]
public partial class Installer1 : Installer
{

public event InstallEventHandler AfterInstall;

public Installer1()
{
InitializeComponent();
AfterInstall += new InstallEventHandler(AfterInstallEventHandler);
}

private void AfterInstallEventHandler(object sender, InstallEventArgs e)
{
Process.Start(@"C:\Program Files\Surisoft\SampleSetup\SampleApplication.exe", "/q");
}
}
}

Is there any other way to reach this requirement. Please help me im strugling.

Regards
Mukilan.P.S
Mar 16 '06 #1
0 1424

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by Kendal Goodrich | last post: by
reply views Thread by guiromero | last post: by
reply views Thread by devrayhaan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.