Test AspNetMVC4

This topic contains 2 replies, has 2 voices, and was last updated by  Michael Felkins 3 years, 7 months ago.

  • Author
  • #21117

    Michael Felkins

    Any one know how to Test if AspNetMVC4 is already installed?

    My set script looks like this:

    $setup = Start-Process "D:\Install\AspNetMVC4Setup.exe" -ArgumentList "/q" -Wait
    if ($setup.exitcode -eq 0){ $True }


  • #21118

    Don Jones

    If it installs via Windows Installer, you should be able to query Win32_Product. If it's a server feature, Get-WindowsFeature (2008R2+) should show it. You could also test for the existence of some file that the installer creates.

  • #21129

    Michael Felkins

    Not showing up in Wn32_Product, it's not a feature. I guess I'll have to look for some file that the installer creates.

    I wish MS would make everything an msi.


You must be logged in to reply to this topic.