Well, If you are getting the error from the UI, it sounds like some dependencies are missing. I would do the following.
1. Backup you IIS configuraiton Files.
> %windir%\system32\inetsrv\
appcmd.exe
add backup "My_Backup"
2. Re-run the IIS installation from Server Manager.
3. Restore your IIS configuration files: By default that is \inetpub\history\cfgHistor
y_NNNNNNNN
NN directory and copy the applicationHost.config file into it's proper place: \windows\sytem32\inetsrv\c
onfig or do it through CMD.
To restore that backup, run this command:
> %windir%\system32\inetsrv\
appcmd.exe
restore backup "My_Backup"
http://blogs.iis.net/bills/archive/2008/03/24/how-to-backup-restore-iis7-configuration.aspxCheers,
Hades666