Solved

How can I distribute DLL Libraries correctly?

Posted on 2008-10-09
3
277 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 500 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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mssql 7 32
Modifying Powershell to list all server with SQL Server running ? 4 24
SQL Query 20 25
Access - convert query for SQL Server 5 10
If you don't know how to downgrade, my instructions below should be helpful.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

751 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