Solved

Instlling DLL

Posted on 1998-10-20
8
150 Views
Last Modified: 2011-09-20
I know that when I install a new application I've created on a clients PC, including the dlls I have made, I should use the set-up wizard to register the dlls.

What I don't know is : what happens when I create a new version of the dll? Do I just copy it over the old version on the clients PC, or do I have to register it again. If so, how do I do this?

Thanks.

Ridley.
0
Comment
Question by:ridleys
[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
  • 4
  • 3
8 Comments
 
LVL 1

Expert Comment

by:wford
ID: 1440717
when you have a new dll, with compatablitiy, it will overwrite the old version and should work.

If/when you reinstall, the old dll will have an older version number and creation date and setup wizard will overwrite this older version with your new one
0
 
LVL 1

Expert Comment

by:wford
ID: 1440718
however, you should make sure that you don't remove any methods and such that the old dll had, this will cause problems in your user application
0
 

Author Comment

by:ridleys
ID: 1440719
>> If/when you reinstall, the old dll will have an older version number and creation date and setup wizard will overwrite this older version with your new one

Sorry, but what I wanted to know was...when I put the replacement dll in do I just copy it in with file manager or do I have to reinstall the whole application?
Or is there a way of using the setup wizard to install just the new dll??

Thanks...
0
Technology Partners: 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!

 

Author Comment

by:ridleys
ID: 1440720
Sorry, but what I wanted to know was...when I put the replacement dll in do I just copy it in with file manager or do I have to reinstall the whole application?
Or is there a way of using the setup wizard to install just the new dll??
Thanks...
0
 

Author Comment

by:ridleys
ID: 1440721
Sorry, but what I wanted to know was...when I put the replacement dll in do I just copy it in with file manager or do I have to reinstall the whole application?
Or is there a way of using the setup wizard to install just the new dll??
Thanks...
0
 

Accepted Solution

by:
pbirkbeck earned 50 total points
ID: 1440722
Using the setup wizard, if you install again, the only thing that will get overwritten will be the changed DLL (assuming that was the only file that has changed).  If you have changed the Class ID then you will have to re-register it.  The Class ID gets changed if you change the interface (add/remove methods or properties) and you haven't set your version compatibility to be on in the Project...Properties... Component Tab.  If it is something you can control, it is probably just easier to copy your DLL over the old one (using explorer or whatever).  If you have not kept version compatibility you should register it again.
0
 

Author Comment

by:ridleys
ID: 1440723
Thanks. that last answer cleared a lot up for me. One last point if you would: Can I put just the new dll in the setup wizard, without the rest of the program, the exe and ocxs and other dlls etc? This is because I would like my users client machines to look in a directory each morning for new stuff on the server, and have this just copied down or, as you say may be necessary, run the setup...
0
 
LVL 1

Expert Comment

by:wford
ID: 1440724
sorry I couldn't get back sooner, every time I tryed to post a comment here it failed. You can normally do this (copy using explorer, or use setupwizard to setup a dll on its own) but I found a case where this failed, and am trying to figure out why.

It was with an activeX dll and I got error "cannot create activeX component", re-registering made no differance, but I belive the problem is with our app.
However, I may have a weird bug somewhere, but do some test runs on your dll to make sure.  
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

729 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