使用vs.net的安装工程。根据向导进行打包。

解决方案 »

  1.   

    lrxz :)
    I have the experience to deploy web application using setup project provided by visual studio.net 
    there are 7 projects in the Duwamish7.We just use 5 .they are : " BusinessFacadeProjects ","BusinessRulesProjects","DataAccessProjects","SystemFrameworksProjects" and "WebUIProjects".
    Till now  " WebServiceProjects" and " WinUIProjects " are not used.
    please specify if you have experience by wizard.thanks
      

  2.   

    这个问题我也碰到过:多层结构的安装程序做起来相当麻烦,尤其是包括WebService时,或者说WebService部分是多层结构安装程序制作过程中的重中之重。
        在没有涉及WebService的情况下,编译起来还是比较简单,只是可能需要要把Common.dll,DataAcess.dll两个文件手工添加到安装程序的bin目录下,其余按向导即可;至于涉及WebService的情况,那就像微软问一下吧,目前来讲,我还没有见过较成功的例子。
      

  3.   

    我们目前的做法是分成二个程序,一个客户端安装和一个webservice的安装,配置数据库的时候用一个显示一个连接数据库的对话框,
    try 
    {
    MessageBox.Show("请选择数据库"); DataLinksClass objDataLink=new DataLinksClass();
    objDataLink.hWnd = this.Handle.ToInt32();
    Connection objConn = (Connection) objDataLink.PromptNew();
    objConn.Open(objConn.ConnectionString,null,null,(int) ConnectModeEnum.adModeUnknown);
    Object RecordsAffected=null;
    Recordset objRecordset = objConn.Execute("select * from products",out RecordsAffected,(int) CommandTypeEnum.adCmdText);

    DataSet objDS = new DataSet();

    OleDbDataAdapter oda = new OleDbDataAdapter();

    oda.Fill(objDS,objRecordset,"products"); dataGrid1.DataSource=objDS.DefaultViewManager; objDataLink=null;
    objConn=null;
    objDS=null;
    oda=null;
    }
    catch(Exception exObj)
    {
    MessageBox.Show(exObj.Message);
    }
    客户端的安装就比较简单啦,