Installing Core Components with Setup Files

   Tasks

Some of the files that a setup file must install are "core" files, which must be treated in special ways in a Windows logo-compliant installer. Core files are usually placed in a default location so that other applications can use the same files.

While core files can be installed, they must never be removed during an uninstall process. The Microsoft development environment knows which files are core files, and creates a Windows logo-compliant installer in the setup distribution unit without your needing to know whether a particular file is a core file or not — just add whatever files are needed and the development environment will treat them correctly.

In this topic you can:

Handling Core Components in a Setup File

Core components are all files included with the operating system, plus crucial files that may be added by secondary installations, such as ODBC, DirectX, and similar components. These core components are shared by many applications and should be installed in the same common folder (which is almost always the Windows System folder) by each application's installer or setup program.

The Microsoft development environment contains a list of core components and will automatically create a setup file that handles core components correctly (they will not be removed during uninstallation, for example).

Although the development environment knows which files are core files, you must specify that a core file should be installed in the Windows System folder, because the development environment will not do this by default.

An important Microsoft logo requirement for setup distribution units is that applications must not register, reference count, uninstall, or overwrite any core components of the operating system (although they may check versions and upgrade.).

For More Information   For step-by-step instructions on installing shared files in the system folder, see Installing Shared Files in the System folder.

Checking and Updating the Core Component List

New files are sometimes added to the core component list. The core component list that was included with the development environment was current at that time, but changes may have been made since then. Veritest, Inc., maintains a list of core components at their Web site. You can download the list of core components from this site and use it to update the list the development environment uses. To do this, download the Corelist.exe file and run it to extract the Corelist.txt file, and then use it to replace the file Corelist.txt in the Microsoft Visual Studio\Common\Ide\Ide98 folder.

It is good practice to check the core file list before the final build of a setup file that you will be distributing to your users. The core file list is relatively stable and doesn't change that often, so it isn't necessary to check the list before every build.