A component's advanced settings allow you to handle installing components with special requirements, as described below. More help is available in this pane when you select any of the items under Advanced Settings in the Components explorer.

## 应用程序路径

Use this advanced setting to specify the paths to your component's files and folders. When you run your installation, it will create the App Paths key for your component under the registry key HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths\.

## Assembly

Use this advanced setting to install a .NET or Win32 assembly with a component.

## COM 注册

Use COM Registration to enter or modify registration information for the COM server that you have set as your component's key file. The COM Registration advanced setting is intended to replace self-registration, which is a violation of Setup Best Practices.

To add a new COM class, ProgID, version-independent ProgID, or type library, right-click an item in the COM Registration explorer, and then click the New command. Click the new item to set the properties for the registration data.

The recommended way to specify file registration is to use the Component Wizard and have it automatically extract the necessary information for you. Use the COM Registration explorer only if you need to make advanced modifications.

## 文件类型

This advanced setting registers the following information about a file type on the target system when the component is installed or advertised:

- File Extensions—You can associate file extensions (such as doc and txt) with the component's key file.
- ProgIDs—By setting the ProgID property in the extension, you can name a progID—for example, `txtfile`—that will contain the file type registration.
- Verbs—You can register command verbs (such as Open and Print) that appear in the context menu for a file of the registered extension.
- MIME Type—You can register the multipurpose Internet mail extension (MIME) types, also known as media types or content types, for the component's key file. You can also associate a MIME type with a class ID.

## 控制 NT 服务

This advanced setting allows you to control an NT service when the component is installed or uninstalled. Right-click the Control NT Services explorer and then click New Service to specify the service that you want to control. Then, click the service to view its Service Name property. Enter the actual name of the service.

Next, right-click the service to create a service event. Give the event any unique name you like. Finally, click the event to set its properties and specify how you want to control the service during installation and uninstallation.

## 安装 NT 服务

If this component's key file contains one or more NT services, use the Is advanced setting to specify installation information for the services.

Right-click the Install NT Services explorer to create a new service name. Right-click and select Rename to change the service's name.

Click the service to edit its properties. You must be familiar with the technical details of your service before you can set its properties.

## ODBC 资源

This advanced setting enables you to modify the driver, data source name, or translator attributes that you created for this ODBC resource in the ODBC Resources view.

You cannot add or remove an ODBC resource in this view. You can only edit its attributes. Use the ODBC Resources view to add a new ODBC resource. To remove an ODBC resource from your project, delete the component containing the ODBC resource or deselect the ODBC resource in the ODBC Resources view.

## 发布

Use this advanced setting to publish your component. Publishing is a type of advertising ("just-in-time" installation) in which no user-interface elements are created for the component during installation, but the component can be installed through Add or Remove Programs of the Control Panel or when an installed component requests the published component from the installer.

## 设备驱动程序

This advanced settings allows you to specify whether the current component includes a device driver, and, if so, which type.

## 其他数据

This advanced setting displays a list of Windows Installer tables that are related to the component as well as a list of any SQL Script files associated with a component. Furthermore, it lists the number of records found in the Complus, DuplicateFile, Environment, IniFile, MoveFile, RemoveIniFile, RemoveRegistry, and ReserveCost tables. XML file changes are also listed when they apply to the project.