简体   繁体   English

InnoSetup的GAC安装问题

[英]GAC install issue with InnoSetup

Windows 8.1 has by default these .net assemblies installed here: Windows 8.1默认情况下在以下位置安装了这些.net程序集:

C:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\Microsoft.PowerShell.ConsoleHost\\v4.0_3.0.0.0__31bf3856ad364e35\\Microsoft.PowerShell.ConsoleHost.dll C:\\ WINDOWS \\ Microsoft.NET \\装配\\ GAC_MSIL \\ Microsoft.PowerShell.ConsoleHost \\ v4.0_3.0.0.0__31bf3856ad364e35 \\ Microsoft.PowerShell.ConsoleHost.dll

here: 这里:

C:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\Microsoft.PowerShell.ConsoleHost.Resources\\v4.0_3.0.0.0_es_31bf3856ad364e35\\Microsoft.PowerShell.ConsoleHost.Resources.dll C:\\ WINDOWS \\ Microsoft.NET \\装配\\ GAC_MSIL \\ Microsoft.PowerShell.ConsoleHost.Resources \\ v4.0_3.0.0.0_es_31bf3856ad364e35 \\ Microsoft.PowerShell.ConsoleHost.Resources.dll

and here: 和这里:

C:\\Windows\\Microsoft.NET\\assembly\\GAC_MSIL\\Policy.1.0.Microsoft.PowerShell.ConsoleHost\\v4.0_1.0.0.0__31bf3856ad364e35\\Policy.1.0.Microsoft.Powershell.ConsoleHost.dll C:\\ WINDOWS \\ Microsoft.NET \\装配\\ GAC_MSIL \\ Policy.1.0.Microsoft.PowerShell.ConsoleHost \\ v4.0_1.0.0.0__31bf3856ad364e35 \\ Policy.1.0.Microsoft.Powershell.ConsoleHost.dll

I would like to install them from my innosetup installer to other Windows 8.1 that has Powershell features removed and the lack of that assemblies. 我想将它们从我的innosetup安装程序安装到其他Windows 8.1,该Windows 8.1删除了Powershell功能并且缺少该程序集。

I've read about the gacinstall flag but I'm not sure how I should do it to reproduce the same structure that Windows has by default and also I'm not sure whether I should locate and specifiy an strong name in the StrongAssemblyName parameter for those dlls, someone could give an installer example? 我已经读过有关gacinstall标志的信息,但是我不确定如何重现Windows默认具有的结构,也不确定是否应在StrongAssemblyName参数中找到并指定一个强名称。这些dll,有人可以举一个安装程序的例子吗?

It is OK to set any target folder such as {app} in [Files] for the assembly file, 可以在程序集文件的[Files]设置任何目标文件夹,例如{app}

http://odd-staff.blogspot.com/2010/04/well.html http://odd-staff.blogspot.com/2010/04/well.html

But you need to specify gacinstall flag so that Inno Setup takes care of registering it into GAC. 但是您需要指定gacinstall标志,以便Inno Setup负责将其注册到GAC。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM