dllregistration

MSI register dll - Self-Registration considered harmful

不羁的心 提交于 2019-11-26 05:58:59
问题 I have a .NET winform application that requires to register a native dll during installation. My question is how can I register a dll ( regsvr32 ABC.dll ) as part of MSI installion process? Similary how can I un-register a dll as part of un-installation process? 回答1: vsdrfCOMSelfReg is not a best practice. Try vsdrfCOM instead. This will "extract" ( or try, vdproj is a POS sometimes ) the COM metadata from the DLL and author it into the correct COM tables. This is better then hoping an out of

How do I register a DLL file on Windows 7 64-bit?

折月煮酒 提交于 2019-11-26 02:41:59
问题 I have tried to use the following code: cd c:\\windows\\system32 regsvr32.exe dllname.ax But this is not working for me. How can I register a DLL file on Windows 7 with a 64-bit processor? 回答1: Type regsvr32 name.dll into the Command Prompt (executed in elevated mode!) and press "Enter." Note that name.dll should be replaced with the name of the DLL that you want to register. For example, if you want to register the iexplore.dll, type regsvr32 iexplore.dll . 回答2: Well, you don't specify if it