Last active
August 29, 2015 14:16
-
-
Save benwillkommen/32a53db7f3a9e0b3fef5 to your computer and use it in GitHub Desktop.
install Commerce Server assemblies in GAC windows server 2012
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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