Installing SharePoint 2010 on Windows 7 for Development Purposes

As developers we like to have a “development environment” to essentially develop our skills, and I know these days having some sort of Virtual Machine is the way to go forward, but all that memory sharing and extra required disk space to run that VM really slows down the development especially when you maybe short on those resources like me, and the machine in question is a laptop. Of course this is to work on outside of the office where you ‘may’ be blessed with a powerful machine. Anyway to learn SharePoint 2010 you really need a development environment to study all those features and that’s what I did. This article will list the steps necessary to install SharePoint 2010 (any of the available flavours) on your Windows 7 system, and as such I source two areas to bring this information together and give you the benefit of my experience in setting up this environment:-

Source 1:- this is the gem of a book that was published in 2010 which devotes its last chapter on setting up a development environment – the title is called ‘SharePoint 2010 Development with Visual Studio 2010′.

Source 2:- The TechNet article which pretty much lists the same information as the link above.

Both of the above do a very good job at describing the process BUT I suspect that the instructions were listed a while back before many of the patches and updates, and don’t consider the fact that developer machines will already have some of the pre-requisites installed, which is why when following the instructions you get a few messages saying that a later version is already installed, and also some of the downloads you need to install come in different versions now. I hope that these instructions make it clear.
My own system (a modest laptop) constituted the following:-

  • SQL Server 2008 R2 – All options selected for this when it was installed.
  • Visual Studio Pro 2010 – patched to SP1 level
  • Microsoft Office Pro Plus 2010
  • Windows 7 64-bit Pro Patched to SP1
  • 4GB RAM, and over 100GB of free disk space on the system drive, you won’t need that much but I would recommend you have 40GB spare on the system drive

Now the two sources that I have put at the top as a reference do not specify that you need any of the software listed above as pre-requisites. But what you do need as a bare minimum is a Windows 7 64-bit edition installed at a recommendation of at least 4GB of RAM. SharePoint 2010 REQUIRES a 64-bit environment and a machine that can handle 64-bit processing. You will also require an internet connection to download some of the pre-requisite components. I would also like to point out at this stage that I have done the installation on both a Pentium Core 2 Duo with processor clocked at more than 2GHz, and also more recently on a Core i5 clocked at more than 2GHz. On the Microsoft’s official hardware requirements listing for SharePoint 2010 – I remember seeing an article stating that you should have a processor clocked at 2GHz or above, but am not certian that this is required for a development environment.

Initial Preparation Steps

Using the ISO file for SharePoint 2010 Server I downloaded from my MSDN account with a valid license key:-

  1. I mounted the ISO content I then copied the drive content into a directory on my C drive which I named C:\SharePoint2010. All the files from the folder are then extracted to:-C:\SharePoint2010\SERVER14Note that in some cases you may have an executable named either SharePointFoundation.exe or OfficeServer.exe – if this is the case then to extract the contents to the SharePoint2010 folder we created you would need to run the following from the command prompt:-

    {name of exe} /extract:C:\SharePoint2010

    Where the name of the exe is either SharePointFoundation.exe or OfficeSever.exe

  2. Now within the extracted folder (in the case of the copied ISO – locations of all files will be within C:\SharePoint2010\SERVER14) – there should be a folder path \Files\Setupin which there will be an XML file name config.xml. You need to open this up and add the following XML tag and data to the end of the file before the closing </Configuration> tag:-<Setting Id=”AllowWindowsClientInstall” Value=”True” />Once the above is done – please save the file.

Pre-Installations Required

The table below lists the items required and they should be installed in the order listed – although from experience I don’t think it matters too much. However, I have always followed the order listed below but my experience of not downloading in the right order is based on not sometimes installing the listed component because Windows 7 would not let me – only to later find out after SharePoint installs that I need that component for the post-install wizard to configure SharePoint 2010 so I went back and found that another version of that component actually existed which was acceptable for installation by Windows 7. So therefore when following some of the links listed – please ensure that you select the latest one that is available for Windows 7 64-bit edition.

Download Exe Location on Installation media OR URL Link/Exe Download
Microsoft Filter Pack 2.0 \PrerequisiteInstallerFiles\FilterPack\FilterPack.msi
{not required on my installation}
Microsoft Sync Framework Runtime http://go.microsoft.com/fwlink/?LinkID=141237
{not required on my installation}
Microsoft SQL Server 2008 Native Client Support

http://go.microsoft.com/fwlink/?LinkId=123718

{not required on my installation – probably because I installed it as part of my SQL Server 2008 R2 installation}

Windows Identity Foundation http://support.microsoft.com/kb/974405
{Make sure you chose the right one – I got this wrong and selected the 6.0 edition for Windows 7 64-bit, which did not install so carried on, but I should have installed the 6.1 version. If you don’t install this then the configuration wizard after the software installs will fail in its second step}
Microsoft ADO.Net Data Services Update (KB976127) –required for REST support, that is part of SharePoint http://www.microsoft.com/downloads/details.aspx?familyid=79D7F6F8-D6E9-4B8C-8640-17F89452148E&displaylang=en
{was not required on my installation}
Chart Controls (not required for SharePoint Foundation) http://go.microsoft.com/fwlink/?LinkID=122517
SQL Server Analysis Services – ADOMD.Net (this is not
required for SharePoint Foundation)
http://download.microsoft.com/download/A/D/0/AD021EF1-9CBC-4D11-AB51-6A65019D4706/SQLSERVER2008_ASADOMD10.msi

 

IIS Required Features

In this next section I have listed all the required functions of IIS that need to be enabled. To get to the correct area to do the following please goto:-

Control Panel > Programs and then chose the option to ‘Turn Windows Features On or Off’ from the Programs and Features section. Then you need to enable all the named components as shown in the illustration below:-
IIS Features Required for SharePoint 2010 Installation
After the options in IIS have been selected you then need to download the following:-

KB976394 http://code.msdn.microsoft.com/KB976462/Release/ProjectReleases.aspx?ReleaseId=3571

 

SharePoint 2010 Installation Run

The following steps outline the actual installation and configuration steps of SharePoint 2010 from the actual media you have:-

  1. You can run Setup.exe Application by double clicking on it, and this will bring up the first dialog which is prompts you for a valid license key (well it does in my case as it’s an MSDN version based on SP 2010 Server edition and not the free SP Foundation).
  2. Once the key is validated you will be presented with the ‘Accept Terms and Conditions’ dialog – just tick the right box that you do accept (why would you not?) and then click Continue.
  3. The next dialog presents you with the option of selecting a ‘Standalone’ or ‘Farm’ installation – as we are installing on a Windows 7 system then for this installation to work we need to select the ‘Standalone’ button. This will then initiate the installation process.
  4. Once the installation is complete you will get a dialog asking to run the configuration wizard – make sure the little checkbox on the dialog is ticked and click on the Close button.
  5. You will then get the configuration wizard start up – so click ‘Next’ – you will be presented with a Warning dialog telling you that the SharePoint installation in this case is not to be used as a production instance (because you are running in a Vista/Windows 7 OS). Click OK button in the message box. Another dialog message will appear telling you that certain services will be started/reset during configuration – this is fine so just click on ‘Yes’.
  6. The configuration will start doing its magic and go through 10 steps which will include creating the necessary databases on a local SQL Server 2008 Express edition. After the 10 steps are completed (for a successful install) – you should get a dialog saying ‘Configuration Successful’ – click the Finish button once this appears, and immediately an IE window will load that will be in the process of creating a new Web Application to host a SharePoint site collection on port 80. During this process you will be asked to select a site template and also set the security – so for the first chose ‘Team Site’ and for the security just accept the defaults. The team site should then appear in a browser!!!

If during the execution of the configuration wizard you have problems – then you should read the error log, as any exception raised maybe to do with a missing component and this will be highlighted in the log file that is created. After rectifying the error, you can go back to the Configuration wizard from the Windows 7 menu group:–

All Programs > Microsoft SharePoint 2010 Products > SharePoint 2010 Products Configuration Wizard

when the wizard appears it will continue from the step it had failed previously.

Accessing the SharePoint 2010 Database(s)

You can access the database instances if you have SQL Server Management Studio installed. Assuming you are logged in as the user who installed SharePoint you need to type into the server name box:-

LocalHost\SharePoint

Leave the authentication method as Windows.

This will then bring up the SQL Server 2008 Express Instance that will contain all the databases that have been created as part of the SharePoint 2010 installation. You should have access to these databases using the account you installed SharePoint with.

UPDATE – INSTALL ON NEW LAPTOP I DID – FAILED TO LAUNCH SHAREPOINT PRODUCTS CONFIGURATION WIZARD TOOL (29/07/2015)

I recently got another laptop (mainly because it was time for an upgrade to my T410) – and after doing most of the above up to the point where SharePoint 2010 software installation was successful – I found that the SharePoint 2010 Products Configuration tool would not run.  Symptoms were:-

  • The wizard would not launch
  • When trying to manually run the psconfiggui.exe tool from the 14\Bin folder – I got a message in the command window saying that “only one copy of the SharePoint Products Configuration Wizard can be run at a time.

There seemed to be no way around the problem although I did come across a site which showed a solution to the problem by performing some trickery using the .Net dissembler tool.  However I was reluctant to go down that road due to the fact that I needed to understand more clearly why in this instance the instructions which have served me well since 2011 just did not work.  In the end I followed a recommendation from an Microsoft site where it listed possible issues that could be the root cause and included:-

- Disable any antivirus software

I had AVG 2015 running, and once  I disabled this and then ran the Products Configuration Wizard – and guess what it started up and did the job !!!

 

:

One Response to “Installing SharePoint 2010 on Windows 7 for Development Purposes”

  1. Sweet Site You Made Here!!! Very Informative Subject For A Post Keep Up The Super Great Works!. Check Out A Free Winnipeg Computer Repair Master Technician Weblog And Message Me Back What You Think!

Leave a Reply