INFO: Installing and Replacing DLLs During SetupID: Q225043
|
If your Setup program installs DLLs, check each DLL to make sure that it does not already exist in the target folder. If the DLL already exists, check the version of the DLL that you are replacing to make sure that you are not copying over a newer version.
Never attempt to replace a System DLL. Windows 2000 prevents applications from replacing any System files.
When you are writing a Setup program you determine where your files should be installed, identify conflicts with currently installed files, and perform the installation process. A conflict occurs when a file that your Setup program will copy is an older version of an existing file. If you downgrade an existing DLL, other applications may not work properly. Always check the file version, and only replace an existing DLL if it is older than the one your Setup program will copy.
See "About File Installation" in the Platform SDK documentation for information on how to compare file versions.
It is not a good idea to replace System files with an application Setup program. Windows 2000 System File Protection prevents applications from overwriting System files. If your application tries to replace System files, it will not work on Windows 2000.
For additional information about Windows 2000 System File Protection, please see the following article in the Microsoft Knowledge Base:
Q222193 Description of the Windows 2000 System File Protection Feature
Additional query words: compatguidesetup
Keywords : kbAppSetup kbWinOS2000 kbGrpKernBase
Version : winnt:
Platform : winnt
Issue type : kbinfo
Last Reviewed: May 20, 1999