Hi Srihari,
 Thanks for the info, I think we are on the different platform....
I was talking about DOT NET Deployment Project, and I am not able to find a
place where I can code something, rather I am not able to find the code
editor in that project.  ??


Thanks,
Amit Sinha


-----Original Message-----
From: Unmoderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] Behalf Of Srihari
Angaluri
Sent: Thursday, September 16, 2004 3:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [ADVANCED-DOTNET] DOT NET Installer project-Help


Amit, you have to override the "Commit" method in your project installer
class like so:

[RunInstaller(true)]
public class ProjectInstaller : System.Configuration.Install.Installer
{
  public override void Install(IDictionary savedState)
  {
     base.Install(savedState);
  }

  public override void Uninstall(IDictionary savedState)
  {
    ...
  }

  public override void Commit(IDictionary savedState)
  {
    base.Commit(savedState);
    DialogResult dr = MessageBox.Show("Would you like to launch the
        application now?",
        "Installation complete!",
        MessageBoxButtons.YesNo,
        MessageBoxIcon.Question);

    if (dr == DialogResult.Yes)
    {
      //launch the application
    }
  }
}

Srihari

On Thu, 16 Sep 2004, Amit Sinha wrote:

> Hi Experts,
>  Was working on DOT NET Installer project. What I want that after the
> installation of my application is over, the question from the user should
be
> called "Do you want to launch the application now.?" like the typical
> installer do..
>
> ? Things I have checked - Was looking to do something with Custom editor
> screen, but didn't get the breakthrough.
>
>
> I would appreciate any help in this regards, thanks in advance
>
>
> Thanks,
> Amit Sinha
>
>
>
> Thanks,
> Amit Sinha
>
> ===================================
> This list is hosted by DevelopMentor®  http://www.develop.com
> Some .NET courses you may be interested in:
>
> Essential .NET: building applications and components with CSharp
> August 30 - September 3, in Los Angeles
> http://www.develop.com/courses/edotnet
>
> View archives and manage your subscription(s) at
http://discuss.develop.com
>

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com
Some .NET courses you may be interested in:

Essential .NET: building applications and components with CSharp
August 30 - September 3, in Los Angeles
http://www.develop.com/courses/edotnet

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to