How to open a help webpage after installation is complete
Posted
by Kapil
on Stack Overflow
See other posts from Stack Overflow
or by Kapil
Published on 2010-05-26T10:17:10Z
Indexed on
2010/05/26
10:21 UTC
Read the original article
Hit count: 541
visual-studio-2008
|installer
I have built an installer for my windows app using the VisualStudio 2008 IDE. I also use some custom-actions to do a few extra stuff at the time of installation/uninstallation.
What I also want to do is that when the installation is completed, the installer should launch a help webpage or a getting-started page for the users to know how to go ahead with the app. I am doing the following for this:
private void CustomInstaller_Committed(object sender, InstallEventArgs e)
{
System.Windows.Forms.LinkLabel lbl = new System.Windows.Forms.LinkLabel();
lbl.Links.Remove(lbl.Links[0]);
lbl.Links.Add(0, lbl.Text.Length, "http://www.mywebsite.com/help.aspx");
ProcessStartInfo pInfo = new ProcessStartInfo(lbl.Links[0].LinkData.ToString());
Process.Start(pInfo);
}
Also, I set the event handler as such:
this.Committed += new InstallEventHandler(CustomInstaller_Committed);
This is launching the webpage, but not at the right point in the flow where I would have wanted it. It launches the IE browser even before the user dismisses the installation window (i.e clicks 'Close' in the Installation Completed dialog box). I want the webpage to open only when the user finally dismisses the installation. Any ideas how can I achieve this?
Thanks, Kapil
© Stack Overflow or respective owner