Solved

Instlling DLL

Posted on 1998-10-20
8
145 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
Comment Utility
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
Comment Utility
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
Comment Utility
>> 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
Comment Utility
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
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 

Author Comment

by:ridleys
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

743 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

16 Experts available now in Live!

Get 1:1 Help Now