Changes between Initial Version and Version 1 of OSGeo4W_jp/dllupdate


Ignore:
Timestamp:
03/18/10 23:58:37 (15 years ago)
Author:
hfujii
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • OSGeo4W_jp/dllupdate

    v1 v1  
     1= dllupdate.exe =
     2
     3This is a commandline utility installed as part of [wiki:pkg-msvcrt] that can be used to install dlls into \windows\system32 with logic for version testing. The source is available in svn (http://svn.osgeo.org/osgeo4w/trunk/utils/dllupdate.cpp), and it is maintained by FrankWarmerdam. 
     4
     5{{{
     6Usage: dllupdate.exe [-q] [-oite] [-copy] source_dll [target_directory]
     7
     8 -q: quiet
     9 -oite: only copy if target dll exists
     10 -copy: enable copy/update (default is info only)
     11 source_dll: The full path to the source dll
     12 target_directory: path to target dir, default is C:\windows\system32
     13}}}
     14
     15The normal use is in a post install script, like the one for [wiki:pkg-openssl]:
     16
     17{{{
     18dllupdate -q -oite -copy %OSGEO4W_ROOT%\bin\libeay23.dll
     19dllupdate -q -oite -copy %OSGEO4W_ROOT%\bin\ssleay23.dll
     20}}}
     21
     22The source DLL is given, with the -copy switch to enable copying (without it the program just provides version information).  The -oite switch used here indicates that the dll should only be copied to \windows\system32 if there is already a dll there.  The normal behavior is to test the version of the source dll and the version of the target dll and only replace the target dll if it is an older version.
     23
     24If the \windows\system32 dll is in use, the new dll will be copied with a .new name and will be renamed replacing the target file on system bootup.