Today while installing Enterprise Library 4.0 on my Windows 2008 “desktop” machine I received the following error towards the end of the installation: “The system administrator has set policies to prevent this installation”
After clicking OK to acknowledge this error the prompt closes and the installation completes successfully. I quickly looked to see what had happened and it seems everything installs except for the Source and Samples. I then tried to run the Enterprise Library 4.0 - May 2008 - Source Code.msi file again (this is what fails and can be found in C:\Program Files\Microsoft Enterprise Library 4.0 - May 2008\src if you have left the install path at default) but got the same error again.
This is actually a known issue and is documented here on CodePlex: http://www.codeplex.com/entlib/WorkItem/View.aspx?WorkItemId=16681
To work around the problem simply open a command prompt as Administered and run the MSI from that prompt which will give it the elevated privileges it requires to install. Problem solved and everything is installed:
