根据VS2003中创建的WEB安装项目每次总是建立在默认WEB中,如何可以更改?
或者如何在安装时执行BAT文件?以前看过PETSHOP1.5在安装时好像通过脚本来达到控制虚拟目录的,
请各位赐教一二.

解决方案 »

  1.   

    manually configure a web application with the IIS manager or the websharing feature of the Explorer, then connect to the web app when you create a new projectsee
    HOW TO: Use File Share Mode for a Share Other Than the Default wwwroot$ Share
    http://support.microsoft.com/default.aspx?scid=kb;en-us;320265
    VS.NET Tip: Web Project Not Under wwwroot
    http://scottwater.com/blog/archive/2003/03/07/3560
      

  2.   

    http://scottwater.com/blog/archive/2003/03/07/3560
      

  3.   

    谢谢思归的回复
    我想是我没有说清楚,
    我不是在启动VS2003来创建一个WEB项目,而是我的ASP.NET程序开发完,
    在部署到客户机器时,每次总是选择默认的WEB(除了可以修改端口)
    且安装的位置也不能修改,我想问的就是这个安装包中的这些是否可以修改?
      

  4.   

    try to use Custom Actions, I think the property you need to modify is TARGETDIR, 参考Modifying Internet Information Services During Deployment with Custom Actions
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/vbtchusingcustomactionstomodifyinternetinformationserverduringdeployment.asp