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
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
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.
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