https://www.autoitscript.com/forum/topic/204729-powershell-com-files/
https://docs.microsoft.com/en-us/dotnet/framework/interop/registering-assemblies-with-com
C:\Windows\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe ActiveXPosh.dll /codebase
https://www.sapien.com/forums/viewtopic.php?t=6841
regasm.exe activexposh.dll /codebaseActiveXPosh in PrimalScript?
我一直在尝试使用位于 Support Downloads ->Free Components中的 ActiveXPosh,因为我认为它现在已与 PrimalScript 集成。
免费组件文件夹(v2 和 v3)中的 ActiveXPosh 无法创建对象。
答案:
That component has always been part of PrimalScript. I haven't looked at it in some time but it should still work. If it fails to create, most likely you didn't register the COM object or your don't have a prerequisite installed for it to register properly.
该组件一直是 PrimalScript 的一部分。 如果创建失败,很可能您没有注册 COM 对象,或者您没有安装先决条件来正确注册。
由于免费部分的最后一个版本是 V3,我猜它正在寻找 PS V3 和 .Net 3。
该组件通常安装在此处:C:\Program Files\Common Files\SAPIEN Common
PrimalScript 安装程序会正确注册组件(通常),但手动运行 regasm 版本可能会搞砸(screw things up)。
regasm.exe activexposh.dll /codebase
From your path to regasm you ran the 32 bit version of it.
The 64 bit version is in C:\Windows\Microsoft.NET\Framework64\v2.0.50727 (note \framework64\ versus \framework)
If you want to run and use it on a 64 bit machine from a 64 bit VBScript engine, you need to register it as a 64 bit component.
更多Jerry的原创文章,尽在:"汪子熙":
网友评论