Exercise 1: Modifying the SharePoint 2010 Easy Setup Script

In this exercise, you will modify the SharePoint 2010 Easy Setup Script to install the components required for Windows Phone 7 development.

Task 1 – Downloading and Extracting the SharePoint 2010 Easy Setup Script

In this task, you will download and extract the SharePoint 2010 Easy Setup Script.

  1. Download the SharePoint 2010 Easy Setup Script from the following location and save the file to your machine.https://www.microsoft.com/downloads/en/details.aspx?FamilyID=54dc2eef-e9ea-4c7b-9470-ec5cb58414de
  2. Double click the SharePoint2010EasySetup.exe to start the setup.
  3. Click Accept.
  4. Click Install.

Task 2 – Modifying the SharePoint 2010 Easy Setup Script

In this task, you will modify the SharePoint 2010 Easy Setup Script to make the script download and install components required for Windows Phone 7 development.

  1. Open the config.xml file in the following directory.<Easy Setup Script Installation Directory>\Labs\EasySetup\Source\config.xml
  2. In the <Applications> section, locate the following lines of XML.

    XML

    <!-- Visio 2010 --> <File friendlyName="Visio 2010" url="https://download.microsoft.com/download/3/2/4/324A7DB7-375A-4225-ACF4-98F2AB12D12F/VisioSingleImage.exe" installFunc="Install-Office" Product="Visior" PidKey="QXQ4D-FTJ2R-YVQ8Y-YXFPM-DGBMK" LogFile="Microsoft Visio Setup(*).txt" estDownloadTime="00:08:00" estInstallTime="00:05:00" installed="1" />

  3. Insert the following XML code snippet below the lines of code in the snippet above. This XML instructs the SharePoint 2010 Easy Setup Script to download and install the following components required for Windows Phone 7 development.

    1. Windows Phone Developer Tools
    2. Windows Phone Developer Tools January 2011 Update
    3. Windows Phone Developer Tools Fix

    XML

    <!-- Windows Phone Developer Tools --> <File friendlyName="Windows Phone Developer Tools" url="https://download.microsoft.com/download/1/7/7/177D6AF8-17FA-40E7-AB53-00B7CED31729/vm_web.exe" installArgs="/q /norestart" estDownloadTime="00:01:00" estInstallTime="00:15:00" /> <!-- Windows Phone Developer Tools Update --> <File friendlyName="Windows Phone Developer Tools January 2011 Update" url="https://download.microsoft.com/download/6/D/6/6D66958D-891B-4C0E-BC32-2DFC41917B11/WindowsPhoneDeveloperResources_en-US_Patch1.msp" installArgs="/q /l v /log [logDirPath]WP7Jan2011Patch.log /norestart" estDownloadTime="00:01:00" estInstallTime="00:15:00" /> <!-- Windows Phone Developer Tools Fix --> <File friendlyName="Windows Phone Developer Tools Fix" url="https://download.microsoft.com/download/6/D/6/6D66958D-891B-4C0E-BC32-2DFC41917B11/VS10-KB2486994-x86.exe" installArgs="/q /norestart" estDownloadTime="00:01:00" estInstallTime="00:5:00" />

  4. If you are using Windows 7 x64 installed on a physical machine, skip to step 10.
  5. If you are using Windows 7 x64 installed on a bootable VHD, continue to step 6.
  6. Locate the <Vhd> section in the file.
  7. In the Vhd element, change the setupPath attribute value to the location and name of the VHD the SharePoint 2010 Easy Setup Script generates. For example, the following code snippet demonstrates how to save the generated VHD to the file path c:\Generated VPCs\ with the file name SPWP7VPC.vhd

    XML

    <Vhd setupPath="c:\Generated VPCs\SPWP7VPC.vhd" bootDesc="SP WP7 Developer Machine"> <File path="c:\Existing VPCs\Windows 7.vhd" /> </Vhd>

  8. In the Vhd element, change the bootDesc attribute value to the name of the boot entry the SharePoint 2010 Easy Setup Script generates. For example, the following code snippet demonstrates how to create a boot entry named SP WP7 Developer Machine.

    XML

    <Vhd setupPath="c:\Generated VPCs\SPWP7VPC.vhd" bootDesc="SP WP7 Developer Machine"> <File path="c:\Existing VPCs\Windows 7.vhd" /> </Vhd>

  9. In the File element, change the path attribute value to the location where you saved the bootable VHD installed with Windows 7 x64. For example, the following code snippet indicates the script will make a copy of the bootable VHD installed with Windows 7 x64, named Windows 7.vhd, that is located in the c:\Existing VPCs directory.

    XML

    <Vhd setupPath="c:\Generated VPCs\SPWP7VPC.vhd" bootDesc="SP WP7 Developer Machine"> <File path="c:\Existing VPCs\Windows 7.vhd" /> </Vhd>

  10. In the first Property element, change the setupDir attribute value to the location where you want to save the files the script downloads and extracts. For example, the following code snippet indicates the SharePoint 2010 Easy Setup Script will place downloaded files in the c:\SPEasySetup directory.

    XML

    <Property name="setupDir" value="c:\SPEasySetup" />
    Note:
    The directory path you enter in the setupDir attribute must already exist on the file system; the script does not create this directory for you.

  11. Save config.xml.
  12. Close config.xml.