Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Install/Register DLL From VS Setup Project

Posted on 2011-02-17
7
Medium Priority
?
607 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

715 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