Skip to content

Instantly share code, notes, and snippets.

@rsleggett
Created January 11, 2016 10:35
Show Gist options
  • Save rsleggett/4cd0594cde1b3beb57fa to your computer and use it in GitHub Desktop.
Save rsleggett/4cd0594cde1b3beb57fa to your computer and use it in GitHub Desktop.
powershell
Write-Host "Running Content Manager upgrade script"
$items = Get-ChildItem -File -Path dd4t-tbb
[Reflection.Assembly]::LoadWithPartialName("System.EnterpriseServices") | Out-Null
[System.EnterpriseServices.Internal.Publish] $publish = new-object System.EnterpriseServices.Internal.Publish
foreach($item In $items)
{
Write-Host "Installing $item in GAC"
$publish.GacInstall($item.FullName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment