Test AspNetMVC4

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
3 years, 10 months ago.

  • Author
    Posts
  • #21117

    Participant
    Points: 0
    Rank: Member

    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

    Keymaster
    Points: 3
    Rank: Member

    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

    Participant
    Points: 0
    Rank: Member

    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

The topic ‘Test AspNetMVC4’ is closed to new replies.