Solved

Install/Register DLL From VS Setup Project

Posted on 2011-02-17
7
604 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
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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 …
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…

828 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