如何通过Web安装项目在IIS中创建网站 [英] How to create a website in IIS through web setup project

查看:135
本文介绍了如何通过Web安装项目在IIS中创建网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,



我试图通过网页设置项目在IIS中创建一个网站。但我从来不知道它。在我创建虚拟目录之前,我访问了一个类似http // localhost / virtualdirectoryname / Login.aspx的网站。



我想让用户选择用于安装Web应用程序的文件夹位置。 (无需在inetpub / wroot / virutaldirectory下创建路径。)



请给我解决方案。



谢谢。

Hello,

I trying to create a website in IIS by web setup project. But I never get any idea about it. Before I created a virtual directory and and I access a site like "http//localhost/virtualdirectoryname/Login.aspx".

And I want ask a user to select a folder location to install the web application. (No need to create a path under inetpub/wroot/virutaldirectory.)

Kindly give me the solution.

Thank you.

推荐答案

你好,



我之前做过这个





点击此链接 http://www.iis.net/ConfigReference/system.applicationHost/sites/site [ ^ ]



您还需要创建自定义操作,该操作将在开始安装和自定义时触发动作将创建网站,并将设置其他东西。
Hello,

I have done this Before


Go through this link http://www.iis.net/ConfigReference/system.applicationHost/sites/site[^]

Also you need to create Custom action which will be triggered on starting installation and that custom action will create Website and will setup other things.


你好deepakdynamite,感谢您的回复。但我不想手动创建一个网站。我想通过Web Setup Project创建一个网站。您对它有什么想法吗?
hello deepakdynamite, Thanks for your reply. But i dont want create a website by manually. I want create a website through Web Setup Project. Have you any idea about it?


我想在Web安装项目中在iis上创建网站。

但Web安装项目要求指定的TARGETSITE必须存在在IIS中。

那么,我如何使用自定义操作来创建TARGETSITE?如果之前未创建指定的TARGETSITE,则Instalation proccess将无法启动。
I want to create web site on iis in Web setup project to.
But Web setup project requires that specified TARGETSITE must exists in IIS.
So, how can i use custom action to create TARGETSITE? Instalation proccess will not start if specified TARGETSITE not created before.


这篇关于如何通过Web安装项目在IIS中创建网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆