diff options
| author | JP Bruyère <jp_bruyere@hotmail.com> | 2016-07-24 10:27:13 +0200 |
|---|---|---|
| committer | JP Bruyère <jp_bruyere@hotmail.com> | 2016-07-24 10:27:13 +0200 |
| commit | e57d0950b298fd72d5bdcbc44701417af2ea64a6 (patch) | |
| tree | 31b1968e51a804b726c61ccc6bb572d170cd16b9 | |
| parent | e1179a765df938425962140c0453cc14207475e7 (diff) | |
update appveyor config
| -rw-r--r-- | appveyor.yml | 1 | ||||
| -rw-r--r-- | frameworks.ps | 48 |
2 files changed, 0 insertions, 49 deletions
diff --git a/appveyor.yml b/appveyor.yml index df2186a3..dca08d8c 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -8,7 +8,6 @@ clone_depth: 1 before_build: - cmd: nuget restore -- ps: frameworks.ps build: diff --git a/frameworks.ps b/frameworks.ps deleted file mode 100644 index e9a634c2..00000000 --- a/frameworks.ps +++ /dev/null @@ -1,48 +0,0 @@ -function Get-KeyPropertyValue($key, $property) -{ - if($key.Property -contains $property) - { - Get-ItemProperty $key.PSPath -name $property | select -expand $property - } -} -function Get-VersionName($key) -{ - $name = Get-KeyPropertyValue $key Version - $sp = Get-KeyPropertyValue $key SP - $install = Get-KeyPropertyValue $key Install - if($sp) - { - "$($_.PSChildName) $name SP $sp" - }else{ - "$($_.PSChildName) $name" - } -} -function Get-FrameworkVersion{ - dir "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP\" |? {$_.PSChildName -like "v*"} |%{ - if( $_.Property -contains "Version") - { - Get-VersionName $_ - }else{ - $parent = $_ - Get-ChildItem $_.PSPath |%{ - $versionName = Get-VersionName $_ - "$($parent.PSChildName) $versionName" - - } - } -} -$v4Directory = "hklm:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" -if(Test-Path $v4Directory) -{ - $v4 = Get-Item $v4Directory - $version = Get-KeyPropertyValue $v4 Release - switch($version){ - 378389 {".NET Framework 4.5"; break;} - 378675 {".NET Framework 4.5.1 installed with Windows 8.1 or Windows Server 2012 R2"; break;} - 378758 {".NET Framework 4.5.1 installed on Windows 8, Windows 7 SP1, or Windows Vista SP2"; break;} - 379893 {".NET Framework 4.5.2"; break;} - { 393295, 393297 -contains $_} {".NET Framework 4.6"; break;} - { 394254, 394271 -contains $_} {".NET Framework 4.6.1"; break;} - } -} -}
\ No newline at end of file |