Big*_*Bob 22
我通过复制gacutil.exe,gacutil.exe.config和gacutlrc.dll来实现它.我理解这是违反许可证的,但是你无法在VisualStudio Express中获得InstallShield,所以这是最简单的解决方案.
老问题,但是在没有安装SDK的机器上,只要PowerShell可用,您就可以这样做:
#Note that you should be running PowerShell as an Administrator
[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:\Path\To\DLL.dll")
Run Code Online (Sandbox Code Playgroud)
来自https://www.andrewcbancroft.com/2015/12/16/using-powershell-to-install-a-dll-into-the-gac/
归档时间: |
|
查看次数: |
86071 次 |
最近记录: |