Applies to:  Windows Server 2008, Windows Server 2008 R2

You would get below error message, when you try to install IIS 7 on  Windows Server 2008/R2.



Post IIS error, another error message is displayed “message Windows must be reinstalled”



Probable cause:

You would likely to receive aforementioned errors if Windows Servers activated via KMS. In this scenario, Windows was not completely activated (though you would see OS is activated on System Info) hence ,OS prevented IIS installation.

 

Fix for 2008 :

 1.        Go to  following folder C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft

2.       Right click SoftwareLicensing folder,  in the security add user slsvc ( NT Service\slsvc – local service account) and provide full control.

3.       Install IIS.

 Fix for 2008 R2 :

 1.        Go to following folder C:\Windows\ServiceProfiles\NetworkService\AppData\Roaming\Microsoft

2.       Right click SoftwareProtectionPlatform folder,  in the security add user sppsvc (NT Service\sppsvc – local service account) and provide full control.

3.       Install IIS.

 

P.S. : Please note the difference between 2008 and 2008 R2 fix. Also, AppData is a hidden folder !

 

Please have a look at MS KB article below.

 

http://support.microsoft.com/kb/978305