InstallShield CustomAction:如何加载托管依赖项程序集 [英] InstallShield CustomAction : How to load the managed dependency assemblies

查看:181
本文介绍了InstallShield CustomAction:如何加载托管依赖项程序集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基本的MSI InstallShield安装,该安装具有从Binary表运行的托管EXE自定义操作.我尝试了一个简单的测试,该测试仅运行一个控制台并且运行良好.当我向EXE添加.DLL程序集引用时,找不到DLL.如何使InstallShield知道此引用的程序集,以便它可以与EXE一起加载?

I have a basic MSI InstallShield installation with a managed EXE custom action running from the Binary table. I tried a simple test that just runs a console and that works fine. When I add a .DLL assembly reference to the EXE, it can't find the DLL. How do I make InstallShield aware of this referenced assembly so it can load it with the EXE?

推荐答案

自定义操作"仅将单个文件提取到临时名称下的临时位置.为了使对.dll的依赖关系起作用,必须同时提取它们,并且至少.dll必须具有预期的名称.通常,最简单的做法是将它们都添加到设置文件"中,并为自定义操作引用[SUPPORTDIR]\your.exe.

Custom Actions only extract a single file to a temporary location under a temporary name. For the dependency on the .dll to work, they need to both be extracted, and at least the .dll must have the expected name. Typically this is easiest to do by adding both to "setup files" and referencing [SUPPORTDIR]\your.exe for the custom action.

这篇关于InstallShield CustomAction:如何加载托管依赖项程序集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆