When a system does not already have .net 3.5 installed, the sqlserver module attempts to install it. However, the DISM command that it uses references an undefined $LocalSource variable.
From sqlserver.rb:
Install-WindowsFeature NET-Framework-Core
|
|
Write-Host "Installing .Net Framework 3.5, do not close this prompt..."
|
DISM /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:$LocalSource | Out-Null
|
$Result = Dism /online /Get-featureinfo /featurename:NetFx3
|
If($Result -contains "State : Enabled")
|
{
|
Write-Host "Install .Net Framework 3.5 successfully."
|
}
|
Else
|
{
|
Write-Host "Failed to install Install .Net Framework 3.5,please make sure the local source is correct."
|
}
|
Improvement Request
Define LocalSource variable, and add parameterized version to allow users on offline systems to install the module using custom install path for .net 3.5
- relates to
-
MODULES-3814 SQLServer application of manifest without source shows UI
-
- Closed
-
- links to