DTF正在复制自定义操作dll文件 [英] DTF is copying custom action dll files

查看:64
本文介绍了DTF正在复制自定义操作dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在installshield中创建的msi安装程序,并且我正在将DTF自定义操作dll作为提交自定义操作执行.如果将MessageBox.Show插入到自定义操作中,则可以看到[PROGRAMFILESDIR]中有一个名为"CustomActionProject.CA.dll-"的临时文件夹,并且复制了CustomActionProject.CA.dll及其所有引用.

I have msi setup that was created in installshield and I am executing the DTF custom action dll as a commit custom action. If I insert MessageBox.Show into the custom action, I can see that there is a temporary folder inside [PROGRAMFILESDIR] called "CustomActionProject.CA.dll-" and there is copied CustomActionProject.CA.dll with all its references.

是否有任何方法告诉技术不要创建此临时文件夹,而是在.CA.dll所在的同一文件夹中提取并执行CustomActionProject.CA.dll?

Is there any way to tell the technology not to create this temp folder and extract+execute the CustomActionProject.CA.dll in the same folder where is .CA.dll located?

我发现我无法通过配置wix.ca.targets将引用包含在.CA.dll中.在我的情况下,这可以防止.CA.dll包含20MB的dll.

I found out that I can not include the references in .CA.dll by configuring wix.ca.targets. Which prevents .CA.dll to contain 20MB of dlls in my case.

现在,我想确保CustomActionProject.dll将能够看到与产品一起安装的引用.

Now I would like to make sure that CustomActionProject.dll will be able to see the references that are installed with the product.

文件为:

<ProgramFilesFolder>
  <MyApplicationFolder>
    CustomActionProject.CA.dll
    ... About 30 dlls installed with the application that CustomActionProject.dll needs to call
    <Place I Would Like to See CustomActionProject.dll extracted> 

推荐答案

DTF会自动将其文件提取到temp文件夹中以供执行,然后进行清理.这非常好,因为它消除了某些比赛条件.如果愿意,您仍然可以将这些文件创作到安装程序中.例如,在以前的公司中,我们的安装程序在安装过程中使用了多个DLL进行许可证检查,并安装了它们以供应用程序在运行时使用.

DTF automatically extracts it's files to a temp folder for execution and then cleans up on disposal. This is very good in that it eliminates certain race conditions. You can still author those files into your installer if you like. For example, at a previous company, our installer used several DLL's for license checking during the install and installed them for use by the application at runtime.

顺便说一句,请确保您已看到以下内容:

BTW, make sure you've seen this:

WiX DTF行为警报

这篇关于DTF正在复制自定义操作dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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