Partager via


SharePoint 2010–Everything you need to know…

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:

C:\SharePointFiles

2. Extract the Installation files from the CMD prompt window,

For SharePoint Foundation 2010:

C:\SharePointFiles\SharePoint /extract:C:\SharePointFiles

For SharePoint Server 2010:

C:\SharePointFiles\OfficeServer /extract:C:\SharePointFiles

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 
 Setup Script. 

6. Now install the following Pre-Requisites:

-

Microsoft FilterPack 2.0. At a command prompt, type the following:

  
  • c:\SharePointFiles\PrerequisiteInstallerFiles\FilterPack\FilterPack.msi

 

Step2-2

-

[Microsoft Sync Framework](https://go.microsoft.com/fwlink/?LinkID=141237)

  

 

Step2-3

-

[SQL Server Native Client](https://go.microsoft.com/fwlink/?LinkId=123718)

  

 

6. Make sure the following features are enabled and your Windows Features should look like this:

image

This is the Second part…

image

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;

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

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

image

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 -

step3-1 

After this, you are presented with the new sharePoint site.

final

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’

-Mithun Dhar

Technorati Tags: SharePoint installation,SharePoint Developer environment,install SharePoint on Windows 7,sharepoint on win7

Comments

  • Anonymous
    November 09, 2010
    Thank you so much for sharing such a comprehensive post. I am anxiously waiting for your next post. As the title is every thing about SharePoint so i will also like to share something with you. The first thing is if anyone wants SharePoint 2010 Migrator he can freely download from the www.xavor.com/.../sharepoint2010migrationtool.aspx and secondly there is also video availble to help you to install and use the Migrator tool, www.youtube.com/watch

  • Anonymous
    November 10, 2010
    Thanks for the information. I'll be sure to check out...can you send me more information about the migration tool? mithund at microsoft

  • Anonymous
    December 03, 2010
    Mithun - Please let me know if only certain versions of Win 7 only support SharePoint 2010?  I could install SharePoint 2010 Foundation on Win 7 Home Premium in an hour but not working instead going to blank page when accessing the site and admin page. The only missing steps are Windows & Digest Authentication options I could NOT select as these are not available in Home Premium. Please let me know your comments.

  • Anonymous
    November 15, 2011
    is there any user control for enable the upload new document in library sp2010