?
Solved

How can I distribute DLL Libraries correctly?

Posted on 2008-10-09
3
Medium Priority
?
285 Views
Last Modified: 2013-12-03
I need to distribute SQLDMO with a program that I have developed (using Visual Studio 2005 Setup and Distribution project). The SQLDMO has several .DLL/.RLL files that are installed with SQL Enterprise Manager. But not everyone that uses the program will have it already installed in their machines. Right now I am installing and registering the files if I cannot find them on the locations that they are usually found (using file check conditions). But, I would like to know if it is possible to check if the dlls that need to be registered are already in the windows registry (because I think this may be safer than just checking for the actual file where I expect to find it).
My biggest fear is that I will overwrite registries locations with the files I am installing. This could be a problem if the version I am providing is older than the one that was already in the registry.
I am new to this area and I am not sure of what the safest way to handle this situation is.
Any information will be greatly appreciated!
0
Comment
Question by:aferia
[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
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
CSecurity earned 2000 total points
ID: 22684863
GO and download InnoSetup from:
http://www.innosetup.com/isdl.php

Then use and example Inno Setup script, include your dlls and your program files, for checking existance of file onlyifdoesntexist

It's a flag. Like this:

Source: "MSCOMCTL.OCX"; DestDir: "{win}"; Flags:  regserver onlyifdoesntexist

If a file is deleted and only it's entry in registry exists, it's useless, you need to check it with checking for existence of file not with registry.


0
 

Author Comment

by:aferia
ID: 22686502
Do you know if the VS2005 Setup Distribution Project clean the registry entries after a program is removed?
0
 
LVL 17

Expert Comment

by:CSecurity
ID: 22686518
If you create your installer with InnoSetup it will have uninstaller and uninstaller will remove ALL entries from files and folders and from registry.
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

In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

719 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