Solved

Run executable AFTER deployment project completes the installation

Posted on 2008-10-09
7
284 Views
Last Modified: 2013-12-17
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
Comment
Question by:caoimhincryan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 26

Accepted Solution

by:
Anurag Thakur earned 500 total points
ID: 22677040
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
 

Author Comment

by:caoimhincryan
ID: 22677154
I followed them steps and still my app wont start.

Im using VS2008 but I doubt that is the difference is it??
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22677221
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
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 

Author Comment

by:caoimhincryan
ID: 22677287
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
 

Author Comment

by:caoimhincryan
ID: 22678445
Where do i access my installerClass?
0
 
LVL 26

Expert Comment

by:Anurag Thakur
ID: 22679482
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
 

Author Closing Comment

by:caoimhincryan
ID: 31504590
Thanks again..
0

Featured Post

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question