I have more than 30 Sitecore instances on my laptop, and I often need to have a clean of a specific version/revision of the product done quick.

With all the love PowerShell is having around Sitecore community, I have dreamed up a quick install script that performs the following actions:

  • reads incoming parameters (you can just say –latest or –recommended) and parses versions.config file to validate the version
  • downloads a manual distributive from a local network share to a temp folder
  • unzips it in a target web root dir
  • creates an app pool
  • creates an IIS site
  • modifies hosts file
  • modifies web.config and connectionStrings.config
  • attaches the databases
  • opens IE with the newly installed instance

Check out this quick demo:

What I really like about this script is that it simply demonstrates how easy it is to install Sitecore in a basic dev environment. It is a rather straightforward and transparent process.

How do you install Sitecore on your machines?