In order to do some development work using Visual Studio you can install Visual Studio on a development server with SharePoint installed.   However, there is an alternative method which is to install SharePoint and Visual Studio locally on Windows 7!

so I have just installed SharePoint 2010 on my Macbook Pro (running Windows 7) using a PowerShell script at the following link …

Script to Install SharePoint 2010 on Windows 7.

Couple of things to note …

If you are using the ISO version of the SharePoint files then you will not need to extract the files from OfficeSetup.exe so this line within function ExtractSP2010SetupExe can be changed.  I changed it to setup.exe.

You will need to set up IIS in Windows 7 prior to configuration of SharePoint, so you can follow step 9 from here for the correct settings:

I also downloaded the prerequisites prior to installation as I did not have internet access on my Macbook at the time.  You can use the links from the script (then delete the download links from the script before running it):

I received an error when trying to run the “SharePoint 2010 Products Configuration Wizard” – “Failed to create the configuration database”, and the problem was to do with the Microsoft Identity Model.  You will need to download the latest version (Windows Identity Foundation) from microsoft here:

If you installed the Geneva version of WIF then you will need to uninstall it and reboot prior to installing the latest version.

I restarted the Macbook and ran the wizard again which went through no problem.  SharePoint is now installed and running very well.