(0) exportieren Drucken
Alle erweitern
Dieser Artikel wurde noch nicht bewertet - Dieses Thema bewerten.

Appendix F: Prerequisites Schema

The prerequisites.xml file is used to define the prerequisites for an installation. The schema is described in the following section

Prerequisites Schema

The elements of the prerequisites schema are listed in the following table.

 

Schema Element Description

PrereqResults

Root element.

Result

The result of a single prerequisite check. There may be 0…nResult elements, one for each prerequisite.

Status

The localized description of the status code.

Check

The product or component to be checked.

Components

The component(s) for which this is a prerequisite. There may be 0…nComponent elements in a Components element.

Component

One of the component(s) for which this is a prerequisite.

Description

The description of the problem.

Resolution

The way the customer may resolve the problem.

In addition, the Result element has an attribute StatusCode. The possible values of StatusCode are 0 (success), 1 (error), 2 (warning).

Example

The following is an example of a prerequisites.xml file.

<?xml version="1.0" encoding="utf-8"?>
<PrereqResults>
    <Result StatusCode="0">
        <Status>Passed</Status>
        <Check>Windows Server 2003 Server</Check>
        <Components>
            <Component>Windows Server Update Services</Component>
        </Components>
    </Result>
    <Result StatusCode="1">
        <Status>Failed</Status>
        <Check>SQL Server 2005</Check>
        <Components>
            <Component>Windows Server Update Services</Component>
        </Components>
        <Description>SQL Server 2005 or later not detected</Description>
        <Resolution>Download the required version from http://www.microsoft.com/downloads/</Resolution>
    </Result>
    <Result StatusCode="1">
        <Status>Warning</Status>
        <Check>SQLINSTANCE_NAME</Check>
        <Components>
            <Component>Windows Server Update Services</Component>
        </Components>
       <Description>This database version cannot be upgraded. Version is too old. </Description>
        <Resolution>Choose another location for the database to keep this one otherwise this database will be overridden. </Resolution>
    </Result>
    …
</PrereqResults>
Fanden Sie dies hilfreich?
(1500 verbleibende Zeichen)
Vielen Dank für Ihr Feedback.

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2014 Microsoft. Alle Rechte vorbehalten.