Solved

Instlling DLL

Posted on 1998-10-20
8
146 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
  • 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
 

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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Excel object stays open 19 71
Microsoft Access combo box help 2 38
MS Date Picker 64 bit 32 bit issue 12 50
MS SQL store procedure to calculate and return result 6 50
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…

863 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

Need Help in Real-Time?

Connect with top rated Experts

27 Experts available now in Live!

Get 1:1 Help Now