Solved

Install/Register DLL From VS Setup Project

Posted on 2011-02-17
7
600 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

23 Experts available now in Live!

Get 1:1 Help Now