Test AspNetMVC4

This topic contains 2 replies, has 2 voices, and was last updated by Profile photo of Michael Felkins Michael Felkins 1 year, 11 months ago.

  • Author
    Posts
  • #21117
    Profile photo of Michael Felkins
    Michael Felkins
    Participant

    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 }

    Olddog

  • #21118
    Profile photo of Don Jones
    Don Jones
    Keymaster

    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
    Profile photo of Michael Felkins
    Michael Felkins
    Participant

    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.

    OldDog

You must be logged in to reply to this topic.