使用 3rd Party exe 打包自定义 DLL 的方法
我很想知道如何将一些第 3 方 exe 文件打包到我的 dll 中进行部署。
目前,我们依赖于安装了第 3 方软件的已部署系统,并且我们的包装器将其控制台应用程序公开给我们的 MVC 应用程序。
理想情况下,我希望包装器和 exe 全部打包在一个漂亮的捆绑包中,无论安装了第 3 方应用程序,都可以将其部署在任何地方。
任何关于在我的应用程序中存储 exe 文件的位置的建议也会非常有帮助。我目前正在将它们扔进垃圾箱。
我知道许可可能是一个问题,而且我已经在处理这个问题了。
I'm curious to know how to wrap up some 3rd party exe files into my dll for deployment.
At the moment we rely on the deployed system having the 3rd party software installed and our wrapper exposes their console app to our MVC application.
Ideally I'd like the wrapper and the exe's all packaged up together in a nice bundle that can be deployed anywhere regardless of the 3rd party app being installed.
Any advice on where to store the exe files in my application would also be really helpful. I'm curently dropping them into the bin.
I'm aware that licencing can be an issue here and it's something I'm already ontop of.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你所说的“打包”是指将.exe文件包含在你的dll中吗?我的意思是,您当然可以将 .exe 文件包含到您的安装包中,但如果我理解正确的话,这不是您想要的。
我相信在 Windows 中启动物理上不存在的 .exe 文件是不可能的。但是您可以将 .exe 文件作为资源包含到您的 .dll 中......可能以压缩形式。当您需要它时,可以将其放入临时目录中,在使用后或在 dll 未初始化时执行和删除。
然而,这种技术可能可能会提醒某些安全软件......
By "packaging" you mean including the .exe file in your dll? I mean you could of course include the .exe file into your setup package, but that's not what you want if I understand correctly.
I believe starting a .exe file which does not physically exist ist not possible in windows. But you could include the .exe file as a ressource into your .dll.... possibly in a compressed form. When you need it, it could be dropped into a temporary directory, executed, and deleted after use or on dll uninitialization.
However this technique could maybe alert some security software...