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
1015
1016
}#End If
1016
1017
}#End If
1017
-
}#End If
1018
1018
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
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
1021
1021
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
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
1026
1029
} Else {
1027
-
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
1028
1031
}#End If
1029
-
} Else {
1030
-
Write-Error"ERROR: .NET 3.5 is not detected and could not be installed."-ErrorAction Stop
0 commit comments