SCInstall.ps1
$SitecoreModuleName = 'SitecoreInstallFramework' $SitecoreRepositoryUrl = 'https://sitecore.myget.org/F/sc-powershell/api/v2' $SitecoreRepositoryName = 'SCGallery' # Install NuGet package repository Install-PackageProvider "NuGet" -MinimumVersion 2.8 -Force | Out-Null # Install Sitecore's powershell gallery $SCGallery = Get-PSRepository $SitecoreRepositoryName -ErrorAction SilentlyContinue If ($null -eq $SCGallery) { Register-PSRepository $sitecoreRepositoryName $SitecoreRepositoryUrl -InstallationPolicy "Trusted" | Out-Null } # Install Sitecore Installation Framework $SIF = Get-Module $SitecoreModuleName -ListAvailable If ($null -eq $SIF) { Install-Module $SitecoreModuleName -Repository $SitecoreRepositoryName -Force | Out-Null } |