You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If (!($Force)) { Write-Error$Result-ErrorAction Stop }
1015
+
}#End If
1005
1016
}#End If
1006
1017
}#End If
1007
-
}#End If
1008
1018
1009
-
$DotNET=Get-ChildItem'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP'-recurse |Get-ItemProperty-name Version -EA 0|Where-Object{ $_.PSChildName-match'^(?!S)\p{L}'} |Select-Object-ExpandProperty Version
1010
-
}#End If
1019
+
$DotNET=Get-ChildItem'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP'-recurse |Get-ItemProperty-name Version -EA 0|Where-Object{ $_.PSChildName-match'^(?!S)\p{L}'} |Select-Object-ExpandProperty Version
1020
+
}#End If
1011
1021
1012
-
If (-not ($DotNet-like'3.5.*')){
1013
-
If (($Force)) {
1014
-
If ($DotNet-like'2.0.*'){
1015
-
Write-Error"ERROR: .NET 3.5 is not detected and could not be installed."-ErrorAction Continue
1022
+
If (-not ($DotNet-like'3.5.*')){
1023
+
If (($Force)) {
1024
+
If ($DotNet-like'2.0.*'){
1025
+
Write-Error"ERROR: .NET 3.5 is not detected and could not be installed."-ErrorAction Continue
1026
+
} Else {
1027
+
Write-Error"ERROR: .NET 2.0 is not detected and could not be installed."-ErrorAction Stop
1028
+
}#End If
1016
1029
} Else {
1017
-
Write-Error"ERROR: .NET 2.0 is not detected and could not be installed."-ErrorAction Stop
1030
+
Write-Error"ERROR: .NET 3.5 is not detected and could not be installed."-ErrorAction Stop
1018
1031
}#End If
1019
-
} Else {
1020
-
Write-Error"ERROR: .NET 3.5 is not detected and could not be installed."-ErrorAction Stop
0 commit comments