Solved

Install/Register DLL From VS Setup Project

Posted on 2011-02-17
7
599 Views
Last Modified: 2012-05-11
I am trying to redistribute a DLL with my software (completely legally) using a Setup Project in VS to create the installer.  VS recognizes the DLL as a dependancy and includes it in the project.  The DLL is in the system folder in the setup project, Register is set to 'vsdraCOM' (and I have tried the other two) and System is set to true.

When I run this installer and attempt to run the application it says it cannot locate the DLL.  The DLL is physically installed, so I'm assuming it is not registered correctly.

The DLL comes with its own installer (unfortunately I cannot just use that because it installs other DLLs and source code as well); when I install the DLL via its original installer my application works fine.

What am I missing?  

The DLL is attached if that will be helpful.
OleStorage.dll
0
Comment
Question by:jmoran18251
  • 5
7 Comments
 
LVL 1

Expert Comment

by:bradypyl
ID: 34920784
To register a dll you need to open a command prompt and type "regsvr32 <path & filename of dll>"
0
 

Author Comment

by:jmoran18251
ID: 34922498
Regsvr32 will not work on this DLL, I believe that is because it is a .net DLL.  I have also tried regasm with no luck.
0
 

Author Comment

by:jmoran18251
ID: 34926006
500 points?
0
Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

 
LVL 29

Expert Comment

by:nffvrxqgrcfqvvc
ID: 34928917
Figure out the type of DLL first if it's just an assembly it doesn't need to be registered. If it's a COM interop assembly and it doesn't have a strong key name then the DLL must be placed in the same directory as your executable. If it has a strong key name then mscore would be able to find it anywhere on the system which doesn't appear to be the case here.

So have you tried placing it the same location as your executable and your certain this DLL doesn't depend on other files in the installation package?
0
 

Author Comment

by:jmoran18251
ID: 34930377
I have tried placing it in the application directory with no success.  It works on my machine from the system folder.  It does not depend on any other files.
0
 

Accepted Solution

by:
jmoran18251 earned 0 total points
ID: 34951477
I figured it out.  The DLL needs to be registered in the Global Assembly Cache.  
0
 

Author Closing Comment

by:jmoran18251
ID: 34990710
This is the correct solution.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now