<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE PRCheckReport
[
	<!ELEMENT Exename (#PCDATA)>
	<!ELEMENT Status (#PCDATA)>
	<!ELEMENT CaptionID (#PCDATA)>
	<!ELEMENT DescriptionID (#PCDATA)>
	<!ELEMENT ButtonMask (#PCDATA)>
	<!ELEMENT URLID (#PCDATA)>
	<!ELEMENT LinkID (#PCDATA)>
	<!ELEMENT AllPassElement (#PCDATA)>
	<!ELEMENT AllFailElement (#PCDATA)>
	<!ELEMENT HeadingFeatureString (#PCDATA)>
	<!ELEMENT HeadingDescriptionString (#PCDATA)>
	<!ELEMENT Param1 (#PCDATA)>
	<!ELEMENT Param2 (#PCDATA)>
	<!ELEMENT Param3 (#PCDATA)>

	<!ELEMENT Feature (PRCheckID+)>
	<!ATTLIST Feature
		name CDATA #REQUIRED
>

	<!ELEMENT FeatureList (Feature+)>
	<!ELEMENT PRCheck (Exename, Paramstring, Status?, CaptionID, ButtonMask, DescriptionID?, URLID?, LinkID?, Param1?, Param2?, Param3?)>
	<!ATTLIST PRCheck
	pr_id ID #REQUIRED
		executed (true | false) #REQUIRED
>
	<!ELEMENT PRCheckID EMPTY >
	<!ATTLIST PRCheckID
		value IDREF #REQUIRED
>
	<!ELEMENT PRCheckList (PRCheck+)>
	<!ELEMENT PRCheckReport (HeadingList, AllPassList, AllFailList, FeatureList, PRCheckList)>
	<!ATTLIST PRCheckReport
		status (executed | failed | notexecuted) #REQUIRED
>
	<!ELEMENT Paramstring (#PCDATA)>

	<!ELEMENT AllPassList (AllPassElement, CaptionID, ButtonMask)>
	<!ELEMENT AllFailList (AllFailElement, CaptionID, ButtonMask)>
	<!ELEMENT HeadingList (HeadingFeatureString, HeadingDescriptionString)>
]
>

<?xml-stylesheet type="text/xsl" href="prcheckreport.xsl"?>
<PRCheckReport status="notexecuted">

	<HeadingList>
		<HeadingFeatureString>hfs_feature</HeadingFeatureString>
		<HeadingDescriptionString>hds_description</HeadingDescriptionString>
	</HeadingList>

	<AllPassList>
		<AllPassElement>alp_allpass</AllPassElement>
		<CaptionID>cap_all</CaptionID>
		<ButtonMask>0</ButtonMask>
	</AllPassList>

	<AllFailList>
		<AllFailElement>alf_allfail</AllFailElement>
		<CaptionID>cap_all</CaptionID>
		<ButtonMask>15</ButtonMask>
	</AllFailList>

	<FeatureList>
		<Feature name="ALL">
			<PRCheckID value="pr001"/>
			<PRCheckID value="pr002"/>
			<PRCheckID value="pr003"/>
			<PRCheckID value="pr004"/>
      <PRCheckID value="pr019"/>
      <PRCheckID value="pr020"/>
      <PRCheckID value="pr021"/>
	  <PRCheckID value="pr022"/>
	  <PRCheckID value="pr023"/>
      <PRCheckID value="pr024"/>
      <PRCheckID value="pr099"/>
		</Feature>
	</FeatureList>

	<PRCheckList>
		<!--Guidelines for PRChecks:
			Must only return non-zero if there is a condition that has to do with run-time failure/warning/information.
			All pre-requisite codes should be returned in the format of Status=0|1|2|3
			where 0 is pre-req passed, 1 is information, 2 is a warning, and 3 is a failure.

			The prcheck must define a caption id.
			The Paramstring is dynamic depending upon the executable being invoked. Refer to your executable for the
			  number and order of the parameters to be passed.
			The prcheck must pass a description id in the Paramstring. If a check fails the description id will be displayed.
			The prcheck must pass a status value in the Paramstring. If a check fails the status value will be displayed.
			Optionally it may define a url id and link id.
			They must be in the format of one of the following examples:

		<PRCheck pr_id="prNNN" executed="false">
			<Exename><![CDATA[(executable name)]]></Exename>
			<Paramstring><![CDATA[(DYNAMIC: parameter(s) to pass to executable, Status value(s), and a description id, more parameters]]></Paramstring>
			<CaptionID>cap_(some string identifier)</CaptionID>
			<ButtonMask>(some bitmask number)</ButtonMask>
		</PRCheck>

        or optionally:

	    <PRCheck pr_id="prNNN" executed="false">
			<Exename><![CDATA[(executable name)]]></Exename>
			<Paramstring><![CDATA[(DYNAMIC: parameter(s) to pass to executable, Status value(s), and a description id, more parameters]]></Paramstring>
			<CaptionID>cap_(some string identifier)</CaptionID>
			<URLID>url_(some string identifier)</URLID>
			<LinkID>lnk_(some string identifier)</LinkID>
			<ButtonMask>(some bitmask number)</ButtonMask>
		</PRCheck>

			The PRCheck element specifies id values, but they will be overwritten by the output of the prcheck output.
			So when you define a captionID element in a PRCheck and the output contains a caption id, the corresponding
			translated message string from a prereqstrings.xml file, will overwrite whatever you defined in this xml.
			All ids MUST resolve to an id attribute in the prereqstrings.xml string file for each supported language.

			Be sure to wrap your exename and paramstring values in ![CDATA[]] statements so they will parse correctly.
		-->

		<PRCheck pr_id="pr001" executed="false">
			<!-- This will check for the admin rights. Error if user is not administrator -->
			<Exename><![CDATA[omchecks]]></Exename>
			<Paramstring><![CDATA[ADMINCHECK 3 desc_pb_admin]]></Paramstring>
			<CaptionID>cap_all</CaptionID>
			<ButtonMask>12</ButtonMask>
		</PRCheck>
		<PRCheck pr_id="pr002" executed="false">
			<!-- This will check if user is running from proper folder when running from CDROM -->
			<Exename><![CDATA[omchecks]]></Exename>
			<Paramstring><![CDATA[PBCDFOLDERCHECK 3 desc_pb_cdfolder]]></Paramstring>
			<CaptionID>cap_all</CaptionID>
			<ButtonMask>12</ButtonMask>
		</PRCheck>
		<PRCheck pr_id="pr003" executed="false">
			<!-- This will check for valid OS -->
			<Exename><![CDATA[omchecks]]></Exename>
			<Paramstring><![CDATA[PBOSCHECK 3 desc_pb_oscheck]]></Paramstring>
			<CaptionID>cap_all</CaptionID>
			<ButtonMask>4</ButtonMask>
		</PRCheck>
		<PRCheck pr_id="pr004" executed="false">
			<!-- This will check for valid OS -->
			<Exename><![CDATA[omchecks]]></Exename>
			<Paramstring><![CDATA[ISITANIUM 3 desc_pb_itanium]]></Paramstring>
			<CaptionID>cap_all</CaptionID>
			<ButtonMask>4</ButtonMask>
		</PRCheck>
		<PRCheck pr_id="pr006" executed="false">
			<!-- This will check if the MSI file has a valid signature -->
			<Exename><![CDATA[omchecks]]></Exename>
			<Paramstring><![CDATA[SIGNCHECK 3 desc_pb_signinvaliddocs PITBULLDOCS]]></Paramstring>
			<CaptionID>cap_all</CaptionID>
			<ButtonMask>8</ButtonMask>
		</PRCheck>
    <PRCheck pr_id="pr019" executed="false">
      <!-- This will check if iSCSI is installed -->
      <Exename><![CDATA[omchecks]]></Exename>
      <Paramstring><![CDATA[ISCSICHECK 1 desc_pb_dummy]]></Paramstring>
      <CaptionID>cap_all</CaptionID>
      <ButtonMask>2</ButtonMask>
      <URLID>url_iscsi</URLID>
      <LinkID>lnk_iscsicheck</LinkID>
    </PRCheck>
    <PRCheck pr_id="pr020" executed="false">
      <!-- This will check if a hotfix is present -->
      <Exename><![CDATA[omchecks]]></Exename>
      <Paramstring><![CDATA[STORPORTSP1 2 desc_pb_dummy 5.2.3790.3030]]></Paramstring>
      <CaptionID>cap_all</CaptionID>
      <ButtonMask>4</ButtonMask>
      <URLID>url_kb943545</URLID>
      <LinkID>lnk_kb943545</LinkID>
    </PRCheck>
    <PRCheck pr_id="pr021" executed="false">
      <!-- This will check if a hotfix is present -->
      <Exename><![CDATA[omchecks]]></Exename>
      <Paramstring><![CDATA[STORPORT 2 desc_pb_dummy 5.2.3790.4173]]></Paramstring>
      <CaptionID>cap_all</CaptionID>
      <ButtonMask>4</ButtonMask>
      <URLID>url_kb943545</URLID>
      <LinkID>lnk_kb943545</LinkID>
    </PRCheck>
	<PRCheck pr_id="pr022" executed="false">
      <!-- This will check if a hotfix is present -->
      <Exename><![CDATA[omchecks]]></Exename>
      <Paramstring><![CDATA[STORPORTSP1 2 desc_pb_dummy 5.2.3790.3205]]></Paramstring>
      <CaptionID>cap_all</CaptionID>
      <ButtonMask>4</ButtonMask>
      <URLID>url_kb950903</URLID>
      <LinkID>lnk_kb950903</LinkID>
    </PRCheck>
    <PRCheck pr_id="pr023" executed="false">
      <!-- This will check if a hotfix is present -->
      <Exename><![CDATA[omchecks]]></Exename>
      <Paramstring><![CDATA[STORPORT 2 desc_pb_dummy 5.2.3790.4368]]></Paramstring>
      <CaptionID>cap_all</CaptionID>
      <ButtonMask>4</ButtonMask>
      <URLID>url_kb950903</URLID>
      <LinkID>lnk_kb950903</LinkID>
    </PRCheck>
    <PRCheck pr_id="pr024" executed="false">
      <!-- This will check if iSCSI is installed -->
      <Exename><![CDATA[omchecks]]></Exename>
      <Paramstring><![CDATA[ISCSIVERSION 1 desc_pb_dummy 5.2.3790.3640]]></Paramstring>
      <CaptionID>cap_all</CaptionID>
      <ButtonMask>2</ButtonMask>
      <URLID>url_iscsi</URLID>
      <LinkID>lnk_iscsi</LinkID>
    </PRCheck>
    <PRCheck pr_id="pr099" executed="false">
             		<!-- Delete temp file -->
			<Exename><![CDATA[omsmchecks]]></Exename>
			<Paramstring><![CDATA[DELETETEMPFILE 0 desc_pb_dummy]]></Paramstring>
			<CaptionID>cap_all</CaptionID>
			<ButtonMask>0</ButtonMask>
		</PRCheck>
	</PRCheckList>
</PRCheckReport>
