Pages

23 March, 2012

Installing Sharepoint Foundation 2010 - Windows 7

One of the great things of Microsoft Sharepoint Foundation 2010 is the capability of creating a development environment in Microsoft Windows 7 Professional (does not work in Windows 7 Home editions). This become pretty handy for me, my working computer is a laptop, so I can now develop applications anywhere without restrictions.

So how I did it in 6 easy steps?



1. Download Sharepoint Foundation 2010 and all the required software

2. Configure IIS web server in Windows 7
Copy and paste the following script in a command line.
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;^
IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;^
IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;^
IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;^
IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-ManagementScriptingTools;^
IIS-Security;IIS-BasicAuthentication;IIS-WindowsAuthentication;IIS-DigestAuthentication;^
IIS-RequestFiltering;IIS-Performance;IIS-HttpCompressionStatic;IIS-HttpCompressionDynamic;^
IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-IIS6ManagementCompatibility;^
IIS-Metabase;IIS-WMICompatibility;WAS-WindowsActivationService;WAS-ProcessModel;^
WAS-NetFxEnvironment;WAS-ConfigurationAPI;WCF-HTTP-Activation;^
WCF-NonHTTP-Activation
3. Extract Microsoft Sharepoint Foundation 2010 installer
You will need to change some files inside the installer package, if you try to run it as is, you will receive and error with a message that operating system is not supported.

So execute the following command in the installer folder:
SharePointFoundation.exe /extract:c:\SharePointFiles

This will extract all the files into c:\SharePointFiles

4. Install Microsoft FilterPack 2.0
In the files extracted in step 3 install:
c:\SharePointFiles\PrerequisiteInstallerFiles\FilterPack\FilterPack.msi

5. Edit config.xml
Ok, last but not least, edit in your favorite text file editor the c:\SharePointFiles\files\Setup\config.xml and add the line

<Setting Id="AllowWindowsClientInstall" Value="True"/>

just before

</Configuration>

6. FINALLY!! Install Microsoft Sharepoint Foundation 2010
Just run the file c:\SharePointFiles\Setup.exe and follow the steps.


Ok, you now have a small Sharepoint installation that should be used for development, but it can serve up to 10 clients, with a 10GB database. Enjoy.