Pipelines/Steps/Install/OnPrem/Sitecore/Prerequisites/9.0/Install-Prerequisites.ps1
$ErrorActionPreference = "Stop" $currentVersion = (Get-Module -Name SitecoreInstallFramework).Version if (!(Get-Module -Name SitecoreInstallFramework -ListAvailable | Where-Object {$_.Version -lt $SAFSitecore91SIFMaxVersion})) { Install-Module -Name SitecoreInstallFramework -MaximumVersion $SAFSitecore91SIFMaxVersion -Repository "SitecoreGallery" -AllowClobber -Force } Get-Module -Name SitecoreInstallFramework | Remove-Module -Force Import-Module -Name SitecoreInstallFramework -MaximumVersion $SAFSitecore91SIFMaxVersion -Force -Global $sifConfiguration = "$PSScriptRoot\Prerequisites.json" Install-SitecoreConfiguration -Path $sifConfiguration Get-Module -Name SitecoreInstallFramework | Remove-Module -Force Import-Module -Name SitecoreInstallFramework -RequiredVersion $currentVersion -Force -Global |