Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save benwillkommen/32a53db7f3a9e0b3fef5 to your computer and use it in GitHub Desktop.
Save benwillkommen/32a53db7f3a9e0b3fef5 to your computer and use it in GitHub Desktop.
install Commerce Server assemblies in GAC windows server 2012
Set-location "C:\Assemblies"
[System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")
$publish = New-Object System.EnterpriseServices.Internal.Publish
$assemblyPaths = Get-ChildItem -recurse | select FullName | where { $_.FullName -like "*.dll" }
foreach ($assembly in $assemblyPaths)
{
$publish.GacInstall($assembly.FullName)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment