brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
170 stars 80 forks source link

AutoSPInstaller not getting SP year #72

Open laromeo opened 3 years ago

laromeo commented 3 years ago

The only way I can get the installer to install the year is by editing line 35 as indicated below.

Create hash table with product year to major version mappings

$spVersions = @{"2010" = "14"; "2013" = "15"; "2016" = "16"; "2019" = "16"} # SharePoint 2019 still uses major build 16 $spYear = "2016" #$xmlInput.Configuration.Install.SPVersion if ([string]::IsNullOrEmpty($spYear))