无法使用WiX注册DLL [英] Cannot register DLL using WiX

查看:765
本文介绍了无法使用WiX注册DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用WiX注册一个DLL。现在我知道和理解,我应该使用 heat ,并得到它拉我的注册表信息,但加热似乎失败,并显示以下错误消息: heat.exe:warning HEAT5150:无法从预期为SelfReg DLL的文件中获取数据:C:\Users\seb\Desktop\Development\addin.dll。如果此文件不支持SelfReg,您可以忽略此警告。否则,此错误详细信息可能有助于诊断失败:无法加载文件:C:\Users\seb\Desktop\Development\addin.dll,错误:193

I am trying to register a DLL using WiX. Now I know and understand that I should use heat and get it to pull the registry information for me, but heat seems to fail with the following error message: heat.exe : warning HEAT5150 : Could not harvest data from a file that was expected to be a SelfReg DLL: C:\Users\seb\Desktop\Development\addin.dll. If this file does not support SelfReg you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: Unable to load file: C:\Users\seb\Desktop\Development\addin.dll, error: 193

我已经找到了这篇文章,详细解释了

I've looked around and found this post which explains a bit more in detail about registering DLLs but I would like to avoid the self registration route if possible. I also see mention of manually registering the DLLs further down below, but I'm not too well versed with the registry or COM objects that well to know where I could even get the CLSID, ProgId, and any other information that has been mentioned.

如果任何人可以指出正确的方向或向我解释我需要通过 heat

If anyone can point me in the right direction or explain to me what I need to do to run the DLL through heat it would be greatly appreciated.

推荐答案

我知道这是老的,但我想在这里添加一个答案 - 发生是因为你试图注册的dll是64位dll - 并且Heat.exe是32位,所以它不能加载其地址空间中的dll。无论如何,只是指向一个32位版本的dll来创建wxs文件,你不应该收到那个错误。

I know this is old but I wanted to add an answer here - the reason this occurs is because the dll you are trying to register is 64 bit dll - and Heat.exe is 32 bit so it cannot load the dll in its address space. Anyway, just point to a 32 bit version of the dll to create the wxs file and you should not receive that error.

这篇关于无法使用WiX注册DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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