Solved

Instlling DLL

Posted on 1998-10-20
8
151 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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 

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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses
Course of the Month5 days, 7 hours left to enroll

626 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