Networking Forums

Networking Forums > Computer Networking > Windows Networking > What sequence of operations to change DLL location and version?

Reply
Thread Tools Display Modes

What sequence of operations to change DLL location and version?

 
 
Stan Hilliard
Guest
Posts: n/a

 
      04-11-2007, 09:03 PM
I am in the process of improving my home network security and want to
update versions of SNMPAPI.DLL on Win98SE. (I think.) I have recently
networked this PC with an XP-Pro (Ethernet) and an XP-home (wireless).

On Win98SE, I have two versions of SNMPAPI.DLL:

Version currently in use:
C:\Windows\SNMPAPI.DLL, 5/11/98, v5.00.1662.1, 32kb

New version that I just downloaded from www.dll-files.com:
C:\Windows\System\SNMPAPI.DLL, 5/3/02, v5.00.2134.1, 18kb

Q1) Shouldn't I be using the newest version?

Q2) Do I need to uninstall and reinstall the DLL's with regsvr32?

Q2) What is the sequence of operations to make the conversion?

Information will be appreciated?
Stan Hilliard

 
Reply With Quote
 
 
 
 
Don Phillipson
Guest
Posts: n/a

 
      04-11-2007, 09:17 PM
"Stan Hilliard" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...

> On Win98SE, I have two versions of SNMPAPI.DLL . . .
> Q1) Shouldn't I be using the newest version?
>
> Q2) Do I need to uninstall and reinstall the DLL's with regsvr32?
>
> Q2) What is the sequence of operations to make the conversion?


Because this file is already in your Win98 Registry
no special operation is needed. If there were a
difference you could test for yourself by making
backup copies of both and then copying either
to c:\Windows, its usual home. (I would not
bother. It looks as if this file was associated
with Windows Update Q314147 which wrote it to
C:\Windows\VCM instead of C:\Windows.)

--
Don Phillipson
Carlsbad Springs
(Ottawa, Canada)


 
Reply With Quote
 
Stan Hilliard
Guest
Posts: n/a

 
      04-12-2007, 12:31 AM
>"Stan Hilliard" wrote:
>> On Win98SE, I have two versions of SNMPAPI.DLL . . .
>> Q1) Shouldn't I be using the newest version?
>>
>> Q2) Do I need to uninstall and reinstall the DLL's with regsvr32?
>>
>> Q3) What is the sequence of operations to make the conversion?

>
>Because this file is already in your Win98 Registry
>no special operation is needed.


I am not sure that it is registered because "regsvr32 /u snmpapi.dll"
produces the following message (which I do not understand):

"snmpapi.dll was loaded, but the DllUnregisterServer entry point was
not found."

and:

"DllUnregisterServer may not be exported, or a corrupt version of
snmpapi.dll may be in memory. Consider using PView to detect and
remove it"

> If there were a
>difference you could test for yourself by making
>backup copies of both and then copying either
>to c:\Windows, its usual home. (I would not
>bother.


I wouldn't know how to compare the versions because I do not know all
their functions or intended compatibilities in my network arrangement.
I am limited to deciding based on recommendations and assumptions
about good practice.

I should have phrased my question as:
(Q1) "Is there good reason NOT to use the latest version?"

>It looks as if this file was associated
>with Windows Update Q314147 which wrote it to
>C:\Windows\VCM instead of C:\Windows.)


The older version is in C:\Windows\. The download site recommended
C:\Windows\system\ for Win98. Does it matter where the file is placed?
Is there a good practice guide?

Stan Hilliard
 
Reply With Quote
 
Bill Blanton
Guest
Posts: n/a

 
      04-12-2007, 12:49 AM
"Stan Hilliard" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> >"Stan Hilliard" wrote:
>>> On Win98SE, I have two versions of SNMPAPI.DLL . . .
>>> Q1) Shouldn't I be using the newest version?
>>>
>>> Q2) Do I need to uninstall and reinstall the DLL's with regsvr32?
>>>
>>> Q3) What is the sequence of operations to make the conversion?

>>
>>Because this file is already in your Win98 Registry
>>no special operation is needed.

>
> I am not sure that it is registered because "regsvr32 /u snmpapi.dll"
> produces the following message (which I do not understand):
>
> "snmpapi.dll was loaded, but the DllUnregisterServer entry point was
> not found."


Not all *.dlls need to be registered, or unregistered. No "entry
point" means its code wasn't designed to be loaded by regsvr32.

Does this newer version have something specific you need? Will it
work with other code that calls it, or that it calls? Most *.dlls are
not so much "stand-alone" products, and depend on and have
their own dependencies.


 
Reply With Quote
 
Jeff Richards
Guest
Posts: n/a

 
      04-12-2007, 12:28 PM
The messages you have received when attempting to register this DLL indicate
it is not designed to be registered. It will be loaded when an application
calls for it. The version that will be loaded depends on the application
calling it, and it will start with the copy in the application's own folder,
then look in Windows\System. So it is quite possible that you will use
both versions at different times. However, if an application finds a copy
already loaded it will not load a fresh copy, and that could create version
problems. You control the version that is used by controlling which version
actually exists as a file on the machine, and the folder in which it exists.

Generally, a newer version will do all the things that the older version
does, but this is not guaranteed.

Unless you know that you have an application that needs the newer version,
or that there is some feature or bug fix in that newer version that you
need, I would recommend sticking with the one that you know works OK. You
can right-click the DLL file and select Properties to see version details -
don't rely on the file date to identify the newer version.
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Stan Hilliard" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> >"Stan Hilliard" wrote:
>>> On Win98SE, I have two versions of SNMPAPI.DLL . . .
>>> Q1) Shouldn't I be using the newest version?
>>>
>>> Q2) Do I need to uninstall and reinstall the DLL's with regsvr32?
>>>
>>> Q3) What is the sequence of operations to make the conversion?

>>



 
Reply With Quote
 
Lee
Guest
Posts: n/a

 
      04-14-2007, 06:50 AM
On Apr 11, 3:03 pm, Stan Hilliard
<usenetrepl...@samplingplansNOTSPAM.com> wrote:
> I am in the process of improving my home network security and want to
> update versions of SNMPAPI.DLL on Win98SE. (I think.) I have recently
> networked this PC with an XP-Pro (Ethernet) and an XP-home (wireless).
>
> On Win98SE, I have two versions of SNMPAPI.DLL:
>
> Version currently in use:
> C:\Windows\SNMPAPI.DLL, 5/11/98, v5.00.1662.1, 32kb
>
> New version that I just downloaded fromwww.dll-files.com:
> C:\Windows\System\SNMPAPI.DLL, 5/3/02, v5.00.2134.1, 18kb
>
> Q1) Shouldn't I be using the newest version?
>

No, not necessarily at all. Just because it is newer/higher versioned
doesn't mean that it was written for your version of Windows - does
it? When YOU can answer this question - then you are qualified to
replace dll files. Until you know for sure, you run a great risk of
ruining your system.


> Q2) Do I need to uninstall and reinstall the DLL's with regsvr32?
>

Generally yes, but only IF the dll files are self-registering and most
are not.


> Q2) What is the sequence of operations to make the conversion?
>
> Information will be appreciated?
> Stan Hilliard


Depends. Usually one would want to unregister a registerable file,
then copy over the new file and then re-register the new file. Self-
registering files can have registry sections wherein they produce
entries into the registry telling various other apps where to find the
file and it's functions. Rarely, a file's location could be changed
and thus require a rewrite of the registry to point to it. And all
this is still dependent upon if the file is in use by Windows such
that one can not move it or overwrite it with a new version. This is
where inf files and installation packages are used to do these things
for us while we blindly agree to reboot now? boxes.
Explanation of Regsvr32 Usage and Error Messages (Q249873)
http://support.microsoft.com/?kbid=249873

It does matter very much where the file is placed, it should be placed
where it was designed to work at. Often that IS the Windows\System
folder for dll files but not always, and in this specific case, it is
NOT the place to put this file. Windows Update Q314147 contains
version 5.00.2195.5513 of the snmpapi.dll file which IS specifically
for the Win98 platform and puts it in the C:\Windows folder and
another copy in the c:\Windows\Options\Cabs folder. Best way to
proceed would be to download the update and install it to let the
update do all this hassle for you jiffy quick.
http://www.microsoft.com/windows98/d...47/Default.asp

This update has version checking so that if you tried to run it on
Win95 for example, it wouldn't work. The update also contains same or
lower version only overwrite such that newer files can't be ruined by
this update, yet your same version file would get overwritten if the
update were to run twice. It is extremely hard to beat MS's built in
safety system using updates made for Win98, please feel at ease using
them to 'change DLL location'.

Doing it manually is a whole nother thing and a very slippery slope at
best. There is no good practices guide that I know of other than
common sense and resistance to change. I don't know why Don thinks
the file goes to c:\windows\vcm folder, if you would like to see this
info, use WinZip on the Update and read the 314147up.inf file
yourself. Use Resource Hacker on the update to view it's RCData and
see that it is Windows version protected as well.
Resource Hacker
http://www.angusj.com/resourcehacker/

To answer your rephrased question, provided apples are apples, oranges
are oranges, and the dll file was written for your system, YES it is
fine to try a newer or higher versioned file - carefully. This is
usually done by renaming the old file and keeping it around until the
new file has been soundly tested for several weeks. In the case of
updates, that has already been done for us many times.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Howto change network location type unter Win2008R2 Michael Kugler Windows Networking 0 01-27-2010 08:38 PM
Transfer server operations outlawclique@gmail.com Windows Networking 2 07-06-2006 03:29 PM
Range of BEFW11S4 version 1 vs. version 4 Bob Alston Wireless Internet 6 05-31-2005 12:05 AM
Telnet operations in a Batch file ??? Nils Koehler Linux Networking 1 02-07-2005 09:13 PM
Change c:\windows\Profiles Location Gary Belanger Windows Networking 0 07-04-2003 03:56 PM



1 2 3 4 5 6 7 8 9 10 11