Solved

vs 2005 deployment project and prebuildevent

Posted on 2007-03-21
2
693 Views
Last Modified: 2013-11-26
All,
I have a deployment/install project in VS 2005.
I have a pre req of .NET framework embedded into it and seems to work fine.

I need to run a little EXE program AFTER the framework is installed but BEFORE the Project is installed.
I am flirting around with the prebuildevent, but it doesnt seem to run from there.
I have tried:
Call Cmd(program.exe)
and just:
Cmd(program.exe)

I am new to deployment projects and feel this is something simple, but can someone give me the proper syntax or call for this?

Thanks!
0
Comment
Question by:Cleavis
[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
2 Comments
 
LVL 15

Accepted Solution

by:
igor_alpha earned 500 total points
ID: 18769292
Hi, Cleavis!
For perform some operations on installing or run some executables you need to add custom actions to deployment projects.
Then you need to create installer class, which would execute your .exe and set custom action to it.
Installer class would just start your programm so it code would be simple:
            ProcessStartInfo info = new ProcessStartInfo();
            info.FileName = Path.Combine(System.Environment.GetEnvironmentVariable("somedir"),
                 "program.exe");
            info.CreateNoWindow = true;
            info.UseShellExecute = false;
            Process.Start(info);
Detailed article, described how to create custom action you can find below.
Building Custom Installer Classes in .NET
http://www.devx.com/dotnet/Article/20849/0/page/1
0
 

Author Comment

by:Cleavis
ID: 18882869
igor,

yes, this should work for me.

thanks for the info!
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

729 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