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

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 289
  • Last Modified:

How can I distribute DLL Libraries correctly?

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
aferia
Asked:
aferia
  • 2
1 Solution
 
CSecurityCommented:
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
 
aferiaAuthor Commented:
Do you know if the VS2005 Setup Distribution Project clean the registry entries after a program is removed?
0
 
CSecurityCommented:
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now