我刚刚使用Visual Studio 2005中的Web Setup Project模板构建了一个Setup.msi文件,以将我的Web应用程序部署到另一台Web服务器。

虽然运行正常,但它会在目标网络服务器上产生一个新的虚拟目录,该目录需要使用目标网络服务器上的INETMGR进行相当多的自定义(即手动)配置步骤。

我注意到Web设置项目为“注册表编辑器”,“用户界面编辑器”等各种“编辑器”提供了。但是我找不到任何使我能够自动化配置任务的东西,例如:

- How to change "Execute permissions" from "Scripts only" to "Scripts and Executables"

- How to disable "Anonymous access" and check "Integrated Windows authentication" 

- How to set a particularfile.aspx as the default content page (instead of default.aspx)

此项目模板是否可以使用这样的自定义化,或者我应该在部署中包含“ readme.txt”之类的东西?谢谢。

编辑:09/09/09

- How to add a Path such that installing user can put the code somewhere other than c:\inetpub\wwwroot\ 

That is, when the .msi runs, the only choice for "Site" is "Default Web Site" and it cannot be changed at install time. 

NOTE: My development PC (where my Web Setup Project is) runs Windows XP and thus IIS 5.1; I do not see any properties exposed for the Web Application Folder that look appropriate; only something called Property with a value called TARGETDIR.  
有帮助吗?

解决方案

如何将“执行权限”从“仅脚本”更改为“脚本和可执行文件”

  1. 右键单击设置项目
  2. 选择视图>文件系统
  3. 选择Web应用程序文件夹
  4. 编辑属性“执行部门”

如何禁用“匿名访问”并检查“集成的Windows身份验证”

我自己正在寻找同样的东西,但我认为它需要定制操作。查看 http://www.codeproject.com/kb/install/setiisettings.aspx

如何将特定file.aspx设置为默认内容页面(而不是default.aspx)

  1. 右键单击设置项目
  2. 选择视图>文件系统
  3. 选择Web应用程序文件夹
  4. 编辑属性“ DefaultDocument”
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top