• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Run executable AFTER deployment project completes the installation

Hi all,

I have created a custom .NET project and have created the setup deployment project. The setup runs fine.

What I'm looking to do is, after my setup completes installation, is there a way to get the .exe of the Project to run?
0
caoimhincryan
Asked:
caoimhincryan
  • 4
  • 3
1 Solution
 
Anurag ThakurTechnical ManagerCommented:
yes definitely you can do that
go through the tutorial in the following link and you will be able to do that
http://www.codeproject.com/KB/install/Installation.aspx
0
 
caoimhincryanAuthor Commented:
I followed them steps and still my app wont start.

Im using VS2008 but I doubt that is the difference is it??
0
 
Anurag ThakurTechnical ManagerCommented:
as per my knowledge this is the event that will be fired when the installation is committed and the following code section of your installer class will be executed on the commit

    // Event handler for 'Committed' event.
    private void MyInstaller_Committed(object sender, InstallEventArgs e)
    {
      try
      {
        Directory.SetCurrentDirectory(Path.GetDirectoryName
            (Assembly.GetExecutingAssembly().Location));
        Process.Start(Path.GetDirectoryName(
          Assembly.GetExecutingAssembly().Location) + "\\InstallSample.exe");
      }
      catch
      {
        // Do nothing...
      }
    }


can you try one thing - try to execute the below line from a new project to see if the Process.Start can actually start any .net executable

Process.Start(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\InstallSample.exe");
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
caoimhincryanAuthor Commented:
I tried that and it does start any .net Execuatable.

Do you know if what exactly this means for the primary output that is added:

In the Properties window, make sure that the InstallerClass property is set to True (this is the default).
0
 
caoimhincryanAuthor Commented:
Where do i access my installerClass?
0
 
Anurag ThakurTechnical ManagerCommented:
i think everything was clearly mentioned in the sample - how to override the installer base class
you needed to do some programming for it
0
 
caoimhincryanAuthor Commented:
Thanks again..
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now