如何使用 Visual Studio 2005 中的 Web 安装项目影响 IIS 属性的配置

发布于 2024-08-04 09:14:32 字数 1124 浏览 2 评论 0原文

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

虽然它工作正常,但它会在目标 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.  

I just built a setup.msi file using the Web Setup Project template within Visual Studio 2005 to deploy my web application to another web server.

While it works OK, it results in a new virtual directory on the target webserver that requires a fair bit of custom (i.e. manual) configuration steps using INETMGR on the target webserver.

I've noticed the Web Setup Project provides for various "editors" such as "Registry Editor", "User Interface Editor", etc. but I could not find anything that enables me to automate configuration tasks such as:

- 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)

Are customizations like this possible with this project template or should I include something like a "ReadMe.txt" in the deployment? Thanks.

EDIT: 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.  

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

平定天下 2024-08-11 09:14:32

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

  1. 右键单击安装项目
  2. 选择视图 > 文件系统
  3. 选择 Web 应用程序文件夹
  4. 编辑属性“ExecutePermission”

如何禁用“匿名访问”并选中“集成 Windows
身份验证”

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

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

  1. 右键单击​​安装项目
  2. 选择“视图”>文件系统
  3. 选择 Web 应用程序文件夹
  4. 编辑属性“DefaultDocument”

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

  1. right-click on setup project
  2. select view > file system
  3. select web application folder
  4. edit properties "ExecutePermission"

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

I'm looking for the same thing myself, but i think it needs a custom action. Check out http://www.codeproject.com/KB/install/SetIISettings.aspx

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

  1. right-click on setup project
  2. select view > file system
  3. select web application folder
  4. edit properties "DefaultDocument"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文