Skip to content

Instantly share code, notes, and snippets.

@thinkfreshnick
Last active May 23, 2019 05:52
Show Gist options
  • Save thinkfreshnick/1cf16eb4f1a05e7bcce4fe2189b3b8f0 to your computer and use it in GitHub Desktop.
Save thinkfreshnick/1cf16eb4f1a05e7bcce4fe2189b3b8f0 to your computer and use it in GitHub Desktop.
Install latest version of the Sitecore Install Framework and remove any previously installed versions
Import-Module SitecoreInstallFramework
$Module = Get-Module SitecoreInstallFramework
Remove-Module $Module.Name
Remove-Item $Module.ModuleBase -Recurse -Force
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2
Set-PSRepository -Name SitecoreGallery -InstallationPolicy Trusted
Install-Module SitecoreInstallFramework
Get-Module -Name SitecoreInstallFramework -ListAvailable
@michaellwest
Copy link

Thanks for sharing. I believe you can add -InstallationPolicy Trusted to the end of Register-PSRepository to suppress the trust notifications.

@thinkfreshnick
Copy link
Author

Thanks Mike, now updated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment