You can add all the required components to Internet Information Services (IIS) as follows:
On Windows 7:
1. Go to Control Panel>Programs and Features screen.
2. Select the option “Turn Windows features on or off”.
3. In the Windows Features screen, click the “Internet Information Services” option and select all its sub-options (except "FTP Server”).
4. In addition to the IIS features, .NET Framework 4.5 or 4.6 is also required.
5. You must also have the Windows Process Activation Service installed.
When all the options are selected and installed, IIS should be ready for use.
On Windows Server/Small Business Server
1. Go to Control Panel>Programs and Features screen.
2. Select the option “Turn Windows Features on or off”.
3. In the Server Manager, expand Roles and select “Add Roles”.
4. The Add Roles Wizard starts. Click Next.
5. Select Server Roles: Web Server (IIS) and click Next.
6. On the Web Server (IIS) screen, click Next.
7. On the Role Services screen, select all the role services for the Web Server (IIS). Click Next.
8. Confirm installation selections and click Install. The installation is done successfully.