You can find on MSDN How to: Create and Run an Unattended Visual Studio Setup. This post focuses on unattended installation of VS 2010 product only (without SDK) along with screenshots and hints on what to avoid. Below are the steps I have followed to create a silent unattended installation script for VS 2010.
- Create the VS 2010 unattend configuration file
<path to VS installation folder>\setup\setup.exe /createunattend c:\VS2010Config.ini
Note: Make sure you run the \setup\setup.exe and not \setup.exe directly.
- The wizard will launch… Accept license terms, select the feature you want to install, then click Save Settings.
- Once you click “Save Settings”, the VS config file will be created at c:\VS2010Config.ini
- Now, do the unattended installation with the command below
<path to VS installation folder>\setup\setup.exe /unattendfile c:\VS2010Config.ini
As you can see, the steps are pretty straight-forward. Enjoy!
There is existing documentation on MSDN about How to: Install SQL Server 2008 R2 from the Command Prompt, but this post focuses on creating a silent unattended install of SQL Server 2008 R2 (Standard or Enterprise) using a configuration file. With the instructions below, you’ll be able to create a new customized SQL silent installation in minimal time. Note that the configuration below doesn’t work with the Express edition of SQL Server 2008 R2.
- Run setup.exe
- Click on the installtion tab
- Click “New Installation”
- Go through the wizard: Enter product key, accept license, install setup support files, and select the features you want to install:
- Continue the installation until you reach the “Ready To Install” step. Notice the path to the configuration file highlighted below in blue.
- Now that you have the configuration file, copy it to your own folder or network share where you want to start the unattended installation.
- Cancel setup since we’re interested in the unattended silent mode of installation; not the UI one.
- Edit the configuration file as follows:
After getting the configuration file ready, you’ll need to create a batch file that will run the silent unattended setup. Simply, create a new file “InstallSQL2008R2.bat” with extension = “.bat” with the following content, and make sure you replace <path to SQL setup folder> and <path to config file> with the proper values.
echo Installing SQL Server 2008 R2
"<path to SQL setup folder>\setup.exe" /ConfigurationFile="<path to config file>"
All we’re doing in the script above is running SQL setup.exe and passing the configuration file as an argument to it. You can download both the batch and config files here.
This MSDN article describes in detail how to install SharePoint Foundation 2010 for development purposes on Windows Vista, Windows 7 and Windows Server 2008. The purpose of this post is to focus on the SharePoint installation on Window 7 only and clear out all the details for the other operating systems.
- Download SharePoint Foundation 2010 x64 for free. Note that there is no x86 version of SharePoint Server, so don’t bother setting it up if you have a 32-bit machine.
- Create a new folder “C:\SharePointFiles” and copy “SharePointFoundation.exe” to it.
- Start command prompt, change directory to C:\SharePointFiles and run the following command to extract the “SharePointFoundation.exe” to C:\SharePointFiles
- Open C:\SharePointFiles\files\Setup\config.xml, add a new <Setting> tag under the <Configuration> element, then save the file. Make sure you copy the below element as is since all of the text in the configuration file is case-sensitive.
<Setting Id=”AllowWindowsClientInstall” Value=”True”/>
- Install the following Prerequisites:
- Enable the required windows features by running this batch file: http://cid-e38f9fc6490b29d9.skydrive.live.com/self.aspx/Public/Scripts/EnableSPWinFeatures.bat
- Restart your computer to complete the changes that you made to Windows Features.
- Install SharePoint 2010
- Run Setup.exe under C:\SharePointFiles
- Select standalone (Windows 7 can’t be used for production deployments of SharePoint 2010 and it’s recommended that you use Standalone only)
- After the installation is complete, you will be prompted to start the SharePoint Products and Technologies Configuration Wizard.
- After a SharePoint solution (.wsp file) is deployed, it recycles the application pool. To improve the initial page load times, set the optimizeCompilations property of the <compilation> tag in your web.config file (C:\inetpub\wwwroot\wss\VirtualDirectories\80\web.config) to true.
SharePoint Designer 2010 is also free and can help you better design your SharePoint site(s). You can download it here.