Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Install/Register DLL From VS Setup Project

Posted on 2011-02-17
7
Medium Priority
?
608 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and 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…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

927 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