在重载Install的时候
System.Diagnostics.Process  p=new  System.Diagnostics.Process();  
p.StartInfo.FileName="test.exe"  ;//需要启动的程序名  
p.StartInfo.WorkingDirectory="c:";
p.Start();//启动

解决方案 »

  1.   

    我测试了一下这个方法,好像还不行(我方法不对?)
    p.StartInfo.FileName = "myServices.exe";
    p.Start();
    这样是肯定不对的,installutil.exe是我需要启动的程序,而myServices.exe是我要用installutil来安装的对象。
      

  2.   

    I t's easy to archieve this function by using Wise
      

  3.   

    if the program I want to add to a deployment project is a database project(including a .cmd file and .dat files),is it possible? When the setup is completed,the data is imported into a SQL server database.
    as far as I know,the  database project can't be compiled .
    thanks
      

  4.   

    upup
    大家继续来帮帮忙看看。
      

  5.   

    可以加参啊System.Diagnostics.Process  p=new  System.Diagnostics.Process();  
    p.StartInfo.FileName="InstallUtil"  ;//需要启动的程序名  
    p.StartInfo.Arguments="SimpleService.exe";
    p.StartInfo.WorkingDirectory=@"C:\WINNT\Microsoft.NET\Framework\v1.0.3705";
    //p.StartInfo.WindowStyle
    p.Start();//启动