参考:
http://www.99net.net/study/page/67103656.htm
http://www.99net.net/study/page/67103656.htm
解决方案 »
- 关于获取ID 删除的问题
- c# 向Excel中传数据
- 如何使用 WebBrowser 控件在 Visual C# 2005 或 Visual C# .NET 中打开 Office 文档
- 急急急急急急急C#)C#窗体中关闭以前隐藏的窗体
- ComponentArt.Web.UI.TreeView 相关问题求解
- 提问,有在 .net下做串口的吗?RS-232
- c# 如何跟踪调试 dll ,我从来没有跟踪过,大哥们指点一下了????????????
- 急聘项目经理、技术经理、高级程序员
- 压力!!25岁的时候真正的感觉到压力的存在,你有这种感觉吗?
- 简单问题,各位帮我。
- 请问如何部署基于web的程序。
- 如何知道我按的是哪个健?
iis_common = on 公用文件
iis_inetmgr = on IIS管理器
iis_www = on WWW服务
iis_ftp = on FTP服务
iis_htmla = on Web方式的IIS管理器[InternetServer]
Path="D:\inetsrv" Common文件放置位置(如果你是卸载了IIS再手动装,公用文件还是会位置保持不变)
PathFTPRoot="D:\inetPub\FTPRoot" FTP的根路径
PathWWWRoot="D:\InetPub\wwwroot" WWW的根路径将该文件存盘后,运行“sysocmgr /i:%windir%\inf\sysoc.inf /u:d:\iis5install.txt”,
不会有提示框出现,系统将自动的为你安装好IIS,而且Scripts目录将会在D盘,使用“Unicode解码目录遍历漏洞”也就失效了。如果你需要安装更多的IIS组件,以下是一个比较详细的无人值守安装文件:
=========================================BEGIN============================;This is an example Unattended installation file
;IIS, MTS, and Index Server are ON
;Target Path should be new directory
;Adminpassword is blank.[Unattended]
Unattendmode = FullUnattended
OemPreinstall = NO
TargetPath = *
Filesystem = LeaveAlone[UserData]
FullName = "Your User Name"
OrgName = "Your Organization Name"
ComputerName = "ComputerName"[GuiUnattended]
TimeZone = "004"
AdminPassword = *
AutoLogon = Yes[LicenseFilePrintData]
AutoMode = "PerServer"
AutoUsers = "0"[Display]
BitsPerPel = 4
XResolution = 800
YResolution = 600
VRefresh = 70[Networking]
InstallDefaultComponents = YES[Identification]
JoinWorkgroup = Workgroup;Turns NT Components (and their respective sections) ON or OFF
[Components]
iis_common = on
iis_inetmgr = on
iis_www = on
iis_ftp = on
iis_htmla = on
iis_doc = on
iis_pwmgr = on
iis_smtp = on
iis_smtp_docs = on
mts_core = on
msmq = off
terminalservices = off
reminst = off
certsrv = off
rstorage = off
indexsrv_system = on
certsrv_client = off
certsrv_server = off
certsrv_doc = off[InternetServer]
;Without these keys specified IIS will use the default settings
; Note that the Path is location for INETSRV, the core IIS programs and files.
Path=D:\Securelocation
PathFTPRoot=E:\Inetpub\Ftproot PathWWWRoot=E:\Inetpub\Wwwroot
如果你是因为要给IIS安装网站的话,可以用vs.net做安装程序。
但是希望在安装程序中对IIS进行一定的配置
不知在VS.NET中可不可以进行这样的配置?
如果是这样,那直接读写XML文件就OK了...
我不确定,因为我也没弄过,但是我觉得可行
P.S.我也想在程序中实现楼主需要的功能
顺便up