SharePoint is the fastest Billion dollar business for Microsoft! And, it’s gotten there because it is one of the best things since sliced bread! Enterprises love SharePoint and the simplicity it offers to its employees. SharePoint helps employees, Collaborate, find (Search) and work smart!
I am starting a series on SharePoint 2010. This series will help you understand SharePoint from a Developer perspective. I’ll start from the basics, How to Install SharePoint and set up your Dev environment to writing SharePoint app’s for Windows Phone and everything in between. As always, if you have any questions or if you need more information about anything in particular – let me know! You can tweet me at – @mithund or email me at mithund at Microsoft com.
This blog post will begin by helping you understand how to ‘Setup your SharePoint Dev Environment’ on a Windows 7 box.
One of the biggest advantages of SharePoint 2010 is the ability to run on Windows 7 machine. Albeit, this runs only on a Windows 7 64 bit machine. I successfully installed SharePoint server on this box within an hour or so. My original machine started off with a base Windows 7 (For Enterprise SKU) 64 bit and I had installed Visual Studio 2010 with all the pre-req’s. The VS 2010 SKU I’ve got installed is the ‘Ultimate’ one. My Hardware is a Lenvo Laptop with 8 GB RAM and Intel Core 2 processor. As mentioned earlier it’s a 64 bit machine, As a side note, I’ve tried this on a 6 GB machine and I can tell you that the additional 2 GB makes a huge difference.
Before you start you must install the WCF Hotfix for Microsoft Windows. The hotfix is available for Windows Server 2008 R2 and Windows 7. In addition, you must also install the ADO.NET Data Services Update for .NET Framework 3.5 SP1 to enable REST-based data services. This update is available for Windows Server 2008 R2 and Windows 7.
Now that your basic setup is complete, let’s install the prerequisites for SharePoint 2010 – Note that for Windows 7 (Or Windows Vista) you cannot use the PreRequisiteInstall.exe tool that’s included in the setup library. This works only on a Windows Server 2008 R2 OS. Because the default installation works only for WS 2008, you must edit one of the configuration files and install the Pre-Requisites manually. Note that you need to be logged on as the administrator to perform these installations.
Also, these steps assume that you received the SharePoint 2010 distribution as a single compressed executable file named SharePointFoundation.exe for SharePoint Foundation 2010 and setup.exe for SharePoint Server 2010.
1. Begin by copying the SharePointFoundation.exe (or Setup.exe) installation file to a folder on the computer. I copied in the following path:
2. Extract the Installation files from the CMD prompt window,
For SharePoint Foundation 2010:
For SharePoint Server 2010:
3. Open the Configuration file in Notepad – Config.xml is located in C:\SharePointFiles\Files\Setup\config.xml
Add this line inside the <configuration> tag:
<Setting Id="AllowWindowsClientInstall" Value="True"/>
4. Save & Close the Config file.
5. The completed Config File should now look like this:
<Configuration> <Package Id="sts"> <Setting Id="SETUPTYPE" Value="CLEAN_INSTALL" /> </Package> <DATADIR Value="%CommonProgramFiles%\Microsoft Shared\Web Server Extensions\14\Data" /> <Logging Type="verbose" Path="%temp%" Template="Microsoft Windows SharePoint Services 4.0 Setup *.log" /> <PIDKEY Value="PIDKey Value" /> <Setting Id="UsingUIInstallMode" Value="1" /> <Setting Id="SETUP_REBOOT" Value="Never" /> <Setting Id="AllowWindowsClientInstall" Value="True"/> </Configuration>
Please note that this Config file will be longer for SharePoint Server 2010
(The above file is for SharePoint Foundation 2010).
But that said, you should use the same setting for the AllowClientInstall attribute.
Note that all of this is case-sensitive. If there’s an error you will get a Setup Error message when you try to run the
6. Now install the following Pre-Requisites:
Microsoft FilterPack 2.0. At a command prompt, type the following:
Chart Controls (this is not required if you are going to install SharePoint Foundation 2010).
SQL Server Analysis Services - ADOMD.Net (this is not required if you are going to install SharePoint Foundation 2010).
6. Make sure the following features are enabled and your Windows Features should look like this:
This is the Second part…
And if you are like me, you can enable all of these features from the Command Prompt – (Please note that there are line breaks in the script below)
start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
Verify that the required Windows Features are enabled. The command in the previous step enables all of the required features in the Internet Information Services section of the Windows Features dialog box (which you can access through the Programs section in Control Panel). Use the above figures to check that you have enabled all of the required Windows Features. If any features are missing in your operating system, return to the Internet Information Services section of the Windows Features dialog box and enable them.
Finally, install SharePoint – Open the Command prompt and type the following - C:\SharePointFiles\Setup.exe
Accept the terms and conditions and you will be bought to this splash screen
Please note that since this is a Developer environment that we are setting up, I chose to install using the Standalone option. If any errors occur, you can debug using the information in the log file. To find the log file type the following in the command prompt window,
cd %temp% dir /od *.log
Now your SharePoint site is being configured -
After this, you are presented with the new sharePoint site.
And Voila, you now have a SharePoint developer environment installed on your local Windows 7 –64 bit machine.
I’ll follow up with a blog post on customizing your new SharePoint site….
If you have any questions, let me know – mithund at microsoft dot ‘you know what’