# adds all dll files from folders into GAC # **** Attention *** in case of permission/signature error Execute this command from powershell to allow run powershell files : Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass # load System.EnterpriseServices assembly [Reflection.Assembly]::LoadWithPartialName("System.EnterpriseServices") > $null # create an instance of publish class [System.EnterpriseServices.Internal.Publish] $publish = new-object System.EnterpriseServices.Internal.Publish Get-ChildItem "C:\Program Files (x86)\Microsoft Enterprise Library 5.0\Bin" -Filter *.dll | Foreach-Object { $content = $_.FullName Write-Output "registering "+$content; $publish.GacInstall($content) }
Monday
register dlls into GAC on server 2012
You may noticed that gacutil is missing in on server 2012.There is no clear way to download and install gacutil or have portable gacutil.exe to deploy.
This powershell script will register multiple dlls from folder.
Change path if you have to do batch install dlls from another directory.
Subscribe to:
Posts (Atom)
imagemagic add text to image
rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...
-
Error:The element 'Schedule' has invalid child element 'RecurrenceRule'. List of possible elements expected: 'Occurring&...
-
Perfect blog post must include following elements (from 1 to 13): 1.Big catchy header in 30px font size 2.First copy of social links and com...
-
SetKeyDelay , 75 , 75 ;Exits AutoHotKey application. $^CapsLock:: ExitApp return ;Pauses AutoHotKey Script. F6:: Pause , Toggle, 1 $x:: ...