Solved

Instlling DLL

Posted on 1998-10-20
8
147 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

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…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
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…

773 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