Differences

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

2019-05-08 2019-06-24
correcting download link for the new design (martin) formatting + grammar (martin)
Line 49: Line 49:
Use correct ''gacutil.exe'' for your version of .NET framework: Use correct ''gacutil.exe'' for your version of .NET framework:
-  * For .NET framework 4.0 or newer, use ''gacutil'' from Windows SDK 7.1 (or newer): ''C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1\bin\gacutil.exe''; &winpath &win32 &win64 +  * For .NET framework 4.0 or newer, use ''gacutil'' from Windows SDK 7.1 (or newer): \\ ''C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1\bin\gacutil.exe''; &winpath &win32 &win64 
-  * For .NET framework 3.5, use ''gacutil'' from Windows SDK 6.0: ''C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe''+  * For .NET framework 3.5, use ''gacutil'' from Windows SDK 6.0: \\ ''C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bin\gacutil.exe''
==== On Production or User's Machine ==== ==== On Production or User's Machine ====
Line 56: Line 56:
  * 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]];
-  * [[dotnet>System.EnterpriseServices.Internal.Publish.GacInstall]] method. PowerShell example: +  * [[dotnet>System.EnterpriseServices.Internal.Publish.GacInstall|''System.EnterpriseServices.Internal.Publish.GacInstall'' method]]. PowerShell example: \\ <code powershell>
- +
-<code powershell>+
Add-Type -AssemblyName "System.EnterpriseServices" Add-Type -AssemblyName "System.EnterpriseServices"
$publish = New-Object System.EnterpriseServices.Internal.Publish $publish = New-Object System.EnterpriseServices.Internal.Publish
$publish.GacInstall("C:\path\WinSCPnet.dll") $publish.GacInstall("C:\path\WinSCPnet.dll")
-</code> +</code>·Absolute path to the DLL is required to be specified or the above method will fail (and the only indication of the failure is sent to Windows Event log).
- +
-Absolute path to the DLL is required to be specified or the above method will fail (and only indication of failure is sent to Windows Event log.)+
===== [[registering]] Registering for COM ===== ===== [[registering]] Registering for COM =====

Last modified: by martin