Differences
This shows you the differences between the selected revisions of the page.
| 2014-03-28 | 2014-06-10 | ||
| actually setting build action to none is not needed, content may be good too (martin) | Added powershell script GacInstall example (24.120.185.25) | ||
| Line 49: | Line 49: | ||
| * Any other installer system that supports installing to GAC, e.g. [[&url(innosetup)|Inno Setup]]; | * Any other installer system that supports installing to GAC, e.g. [[&url(innosetup)|Inno Setup]]; | ||
| * [[msdn>System.EnterpriseServices.Internal.Publish.GacInstall]] method. | * [[msdn>System.EnterpriseServices.Internal.Publish.GacInstall]] method. | ||
| + | |||
| + | <code powershell> | ||
| + | # Here is an example using the GacInstall method | ||
| + | # within an Administrative Powershell console. | ||
| + | # Note: this script assumes that your WinSCP | ||
| + | # install location is set to C:\Program Files (x86) | ||
| + | |||
| + | Set-location "C:\Program Files (x86)\WinSCP" | ||
| + | [System.Reflection.Assembly]::Load("System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") | ||
| + | $publish = New-Object System.EnterpriseServices.Internal.Publish | ||
| + | $publish.GacInstall("C:\Program Files (x86)\WinSCP\WinSCPnet.dll") | ||
| + | </code> | ||
| ===== [[registering]] Registering for COM ===== | ===== [[registering]] Registering for COM ===== | ||