Differences

This shows you the differences between the selected revisions of the page.

2014-06-10 2014-06-11
Added powershell script GacInstall example (24.120.185.25) simpler powershell gac install example (martin)
Line 48: Line 48:
  * Windows Installer, by creating ''.msi'' package;   * Windows Installer, by creating ''.msi'' package;
  * 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. PowerShell example:
<code powershell> <code powershell>
-# Here is an example using the GacInstall method  +Add-Type -AssemblyName System.EnterpriseServices
-# 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 = New-Object System.EnterpriseServices.Internal.Publish
-$publish.GacInstall("C:\Program Files (x86)\WinSCP\WinSCPnet.dll")+$publish.GacInstall("WinSCPnet.dll")
</code> </code>

Last modified: by martin