title: How do I run a Windows installer and get a succeed/fail value in PowerShell?
body: <p>I would like to install a set of applications: .NET 4, <a href="http://en.wikipedia.org/wiki/Internet_Information_Services">IIS</a> 7 <a href="http://en.wikipedia.org/wiki/Windows_PowerShell">PowerShell</a> snap-ins, <a href="http://en.wikipedia.org/wiki/ASP.NET_MVC_Framework">ASP.NET MVC</a> 3, etc. How do I get the applications to install and return a value that determines if the installation was successful or not?</p>