Run executable AFTER deployment project completes the installation

Posted on 2008-10-09
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?
Question by:caoimhincryan
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
LVL 26

Accepted Solution

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

Author Comment

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

Im using VS2008 but I doubt that is the difference is it??
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)
          Assembly.GetExecutingAssembly().Location) + "\\InstallSample.exe");
        // 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");
Veeam gives away 10 full conference passes

Veeam is a VMworld 2017 US & Europe Platinum Sponsor. Enter the raffle to get the full conference pass. Pass includes the admission to all general and breakout sessions, VMware Hands-On Labs, Solutions Exchange, exclusive giveaways and the great VMworld Customer Appreciation Part


Author Comment

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).

Author Comment

ID: 22678445
Where do i access my installerClass?
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

Author Closing Comment

ID: 31504590
Thanks again..

Featured Post

The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

Question has a verified solution.

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

In my previous article ( we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

622 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