How to add IIS to the installer

Source: Internet
Author: User

There are some such methods on the Internet, but I will mainly make some comparisons and extensions here.

OnlineArticleThe age is relatively large. After server 08r2 and win7 are released, I cannot find any articles on this information. So I will share my experience with you here.

First, let's talk about 08r2. the IIS version with 08r2 and win7 is 7.5, while the previous server08 and Vista versions are 7.0.

Here we mainly talk about the differences between the three commands: to add IIS in the above system, it is generally inseparable from these commands: pkgmgr, servermanagercmd, dism

I learned from each other and proved that dism is used for version 7.5, server08 uses servermanagercmd, and pkgmgr can be used for almost no 08r2.

The following describes the advantages and disadvantages of these commands:

1. dism is a new command added by win7 and 08r2. The command is relatively simple. The server and client are commonly used in the same kernel version as 6.1 and later. The component name is case sensitive. The prefix of the IIS component name is "IIS-", for example, runcmd (@ "Start/Wait dism/online/enable-feature/featurename: IIS-webserverrole "), only common components are added. If you need components that are not commonly used, you must specify them, to use IIS6 metadata, add runcmd (@ "Start/Wait dism/online/enable-feature/featurename: IIS-metabase "). Dism/online/get-features> C: \ feature.txt you can see all the options in the new text file on drive C.

2. servermanagercmd is a proprietary server and is easy to use. /A after runcmd (@ "Start/Wait % WINDIR % \ system32 \ servermanagercmd.exe-install Web-server/a") indicates that all sub-component items of IIS will be added, but it will take longer. Convenience is convenient, but there are also many disadvantages. For example, if the 64-bit support is poor, you must switch to the current path % WINDIR % \ system32 \ servermanager.exe and you cannot directly use servermanager.exe. This file is not found in the system64 directory. In addition, servermanager.exe-Remove does not seem to be able to be deleted successfully. If you want to delete one or two functions, you can use pkgmgr.exe/UU: IIS-directorybrowsing/norestart. The delete function must be restarted (even if the service is stopped first.

3. pkgmgr is the most widely used method on the Internet, because it was generated earlier. But it is also the most tedious. If you want to add all the functions, there are a lot of commands, except 08r2. For example:

string iis7_5 = "Start/Wait pkgmgr. EXE/L: log_iis7.etw/IU: IIS-webserverrole; IIS-webserver; IIS-commonhttpfeatures; IIS-staticcontent; IIS-defaultdocument; IIS-directorybrowsing; IIS-httperrors; IIS-httpredirect; IIS-applicationdevelopment; IIS-ASP; IIS-CGI; IIS-isapiextensions; IIS-isapifilter; IIS-serversideincludes; IIS-healthanddiagnostics; IIS-httplogging; IIS-clients; IIS-requestmonitor; IIS-httptracing; IIS-customlogging; IIS-odbclogging; IIS-security; IIS-basicauthentication; IIS-windowsauthentication; IIS-digestauthentication; IIS-authentication; IIS-encryption; IIS-urlauthorization; IIS-requestfiltering; IIS-ipsecurity; IIS-performance; IIS-httpcompressionstatic; IIS-httpcompressiondynamic; IIS-webservermanagementtools; IIS-compliance; IIS-ASPNET; IIS-netfxextensibility; IIS-managementservice; IIS-managementconsole; IIS-IIS6ManagementCompatibility; /norestart ";

Runcmd (iis7_5); All IIS sub-components except FTP are added.

In addition, you do not need to restart to add the IIS component. You need to restart to delete the component.

In addition, I would like to thank the following blog post for comparing 2003 and 2008, but here I am comparing 2008 and 2008r2.

Http://www.cnblogs.com/sabrinahuang/archive/2011/09/06/2168472.html.

The above is only for communication. please correct me if you have any shortcomings!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.