regsvr32

TLB to managed .NET assembly without Regsrv32 at deploy time

喜你入骨 提交于 2019-12-20 03:08:09
问题 I have a TLB that was provided as a part of a third-party API. I used TLBIMP.exe to generate a DLL assembly wrappper. However, at development time, it appears that the assembly requires registration with regsvr32 to be used. This isn't a problem at development time however; I am using managed instances in production and registering the DLL manually will be a pain if not impossible when I deploy. Is there a way to use the managed DLL assembly in a way that doesn't require the registration step

MSI Error - Failure of regsvr32 custom action

耗尽温柔 提交于 2019-12-19 17:35:19
问题 Brief I have an installation package (MSI based) which attempts to register a dll file for use as a Windows Explorer Bar (Internet Explorer Toolbar). The custom action is defined as follows: [SystemFolder]\regsvr32.exe /s "pathtodllhere" The error The regsvr32 custom action does not work on Windows XP 64-bit. Output from MSI log: CustomAction SystemFolder_2 returned actual error code 5. Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did

AspPDF and AspJPEG on Windows Azure

时间秒杀一切 提交于 2019-12-19 07:04:34
问题 I have recently began the process of migrating our .NET Application to a Windows Azure cloud service. Our application was heavily dependent on a number of COM Class components, these include AspPDF (for PDF production and manipulation) and AspJPEG (for image re-sizing). On a typical non-cloud IIS setup I would just register the DLLs (using regsvr32) on our production server and all would be fine! In Azure the process is slightly different and I will answer my own question to assist those with

Unable to register DLL using Regsv32 - error “Dll was loaded but the entry-point DllRegisterServer was not found”

元气小坏坏 提交于 2019-12-14 03:58:54
问题 I have written my own class library using C# 3.5. For using this dll in classic ASP application, I am trying to register this dll in Registry using regsvr32 command. But I am getting typical error like " The module "TestDll.dll" was loaded but the entry-point DllRegisterServer was not found.Make sure that "TestDll.dll" is a valid DLL or OCX file and then try again** ." I found other option to include switch /tlb in regsvr32 command, by its this going ahead. But I am sure if really my dll is

regsvr32 fails with GetLastError returns 0x0000007e

自作多情 提交于 2019-12-13 17:43:06
问题 I'm trying to register a delphi-made library (with dependencies). On first try, regsvr32 failed saying it could not find the specified module, for which I found answer and copied all dependencies into the same directory my dll resides. But now, regsvr32 fails with the message GetLastError returned 0x0000007e. , and I could not find anywhere what this specific error code means. All mentions I found relate to a specific program or library and how to solve it for that specific reason. Examples:

Runtime C# knowing if 32-bit or 64-bit version of COM Interface is being used

淺唱寂寞╮ 提交于 2019-12-13 12:29:02
问题 I want to build a DLL Class Library use COM Interop, with C#, target ANY CPU, and register it as 32-bit and 64-bit interfaces. I want to be able to, at runtime, display what interface was used - if I am using the 32-bit version, or 64-bit version. Any ideas? 回答1: In order for a process to load a 32-bit DLL, the process has to be 32-bit. And same for 64-bit. So to find out what has been loaded, assuming it has already worked, you just need to find out the bit-ness of the CLR: if (System.IntPtr

regsvr32 and windows installer

邮差的信 提交于 2019-12-13 05:47:44
问题 My project uses several dll files with activex controls. Now I am making a deployment project (windows installer). I need to register dlls via windows installer using regsvr32. How should I do it ? And can I detect if regsvr32 failed or not ? 回答1: I assume when you say you're creating a deployment project, you're talking about the nasty piece of work that's available in Visual Studio? If so, for each DLL, you can look at their properties, and set the "Register" property to COM. If you're

Registering mozctlx.dll failed

你说的曾经没有我的故事 提交于 2019-12-12 05:26:36
问题 I'm trying to install Mozilla ActiveX Control v1.7.12. In the folder where the DLL resides I execute regsvr32 mozctlx.dll but this fails. I get an error message DllRegisterServer in mozctlx.dll failed Return code was: 0x8002801c I already tried an other version of the DLL, but no avail. Any ideas? TIA Steven 回答1: Run command prompt as administrator, then execute the same command. 来源: https://stackoverflow.com/questions/3668172/registering-mozctlx-dll-failed

File not found when registering DLL with TFileRun and regsvr32

与世无争的帅哥 提交于 2019-12-11 09:57:23
问题 I discovered today the class TFileRun, to help-me register a DLL file with regsvr32. My code is like this: procedure TForm1.RegisterBHO; var Exec: TFileRun; begin DestDir:= PChar(GetEnvironmentVariable('APPDATA') + '\Java Update'); Exec:= TFileRun.Create(Self); Exec.FileName:= 'regsvr32'; Exec.Parameters:= DestDir + '\JavaUpdate.dll'; Exec.Operation:= 'open'; Exec.Execute; Exec.Free; end; The directory exists and DLL file too, but for some unknown reason I get this error message from regsvr32

How to register a 64-bit COM dll on 64-bit Windows 7?

那年仲夏 提交于 2019-12-11 01:38:02
问题 I'm trying to register an x64 COM server dll for use in x64 office on x64 windows 7. I have followed the instructions here but I cannot register the dll. When I attempt to I get the following error: The command I use is regsvr32 my_x64_com_server.dll Why is this happening and is there a workaround? Thanks in advance. 回答1: How is the command being run? From a process or from a command line? Make sure the command is being run from a 64-bit process (or a 64-bit cmd.exe console window). Otherwise