<?xml version="1.0" encoding="UTF-8"?>

<!-- Available package database.

     This is a list of all packages that can be deployed to workstations.
     
     Each package has the following attributes:
     
        id          A unique identifier representing the package. Should be
                    short and to the point.
                
        name        Longer textual description of the package. This should be
                    the full product name.
                
        revision    User created integer to represent the "version" of the
                    specific package. Should be incremented when creating a new
                    release.
                    
        reboot      If "true" system reboots when done installing, removing or
                    upgrading the package.
                    
        priority    Specifies a numeric value that determines in what order a
                    package will be installed.
                    
    The following additional elements can or must be included within a package:
    
        depends     Specifies that this package depends on another package and
                    optionally version. Either that package must be installed or
                    must be installable.
    
        install     Contains command(s) to be run when the package is to be
                    installed.
                    
        remove      Contains command(s) to be run when the package is to be
                    removed.
                    
        upgrade     Contains commands(s) to be run when the package is already
                    installed, but the new revision number is greater than the
                    old revision number.
                    
        env         Sets an environmental variable to the specified value.
                    
    THIS IS A SAMPLE FILE
    
    For more info, see http://wpkg.org/index.php/Category:Documentation


TEMPLATE:  Cut & paste in appropriate section.

<package
	id="XXX"
	name="XXX"
        revision="XXX1"
	reboot="XXXfalse"
	priority="XXX0" >            
        <check 
		type="registry" 
		condition="exists" 
		path="HKLM\Software\wpkg\full\key\not\part\of\it" />
        <check 
		type="file" 
		condition="exists" 
		path="C:\wpkg\wpkg.bat" />
	<check 
		type="uninstall" 
		condition="exists" 
		path="WPKG 0.6-test1" />
	<install 
		cmd='msiexec /i (path to msi)'>
            <exit code="0" />
        </install>
        <remove  cmd='msiexec /x (path to msi)' />
        <upgrade cmd='msiexec /i (path to msi)' />
    </package>
        
-->

<packages>
	<package
		id="changename"
		name="Run computer name check"
		revision="1"
		reboot="true"
		priority="0" >            
		<install 
			cmd='perl startup'>
		    <exit code="0" />
		</install>
		<remove  cmd='msiexec /x (path to msi)' />
		<upgrade cmd='msiexec /i (path to msi)' />
	    </package>
		<package
			id="W2K-SP4"
			name="Windows 2000 service pack 4"
			revision="4"
			reboot="true"
			priority="100" >            
			<check 
				type="uninstall" 
				condition="exists" 
				path="Windows 2000 SP 4" />
			<install 
				cmd='msiexec /i /qb %WPKG%/MicroSoft/W2KSP4_EN.EXE)'>
			    <exit code="0" />
			</install>
			<remove  cmd='msiexec /x (path to msi)' />
			<upgrade cmd='msiexec /i (path to msi)' />
		</package>

<package
	id="K9"
	name="NTP Time Synchronization Client"
        revision="1"
	reboot="false"
	priority="0" >            
        <check 
		type="file" 
		condition="exists" 
		path="%SYSTEMROOT%\system32\k9nt.exe" />
	<install 
		cmd='\\conan\Installers\wpkg\k9-install.bat'>
            <exit code="0" />
        </install>
        <remove  
		cmd='\\conan\Installers\wpkg\k9-remove.bat' />
</package>


<package
	id="INSP1300Chipset"
	name="Inspiron Chipset Package"
        revision="1"
	reboot="false"
	priority="100" >            
	<install 
		cmd='%HDWRINSP%/ChipSet/install.bat ' />
    </package>

<package
	id="INSP1300Audio"
	name="Inspiron Audio Drivers"
        revision="1"
	reboot="false"
	priority="0" >            
	<check 
		type="uninstall" 
		condition="exists" 
		path="SigmaTel Audio" />
	<install cmd='%HDWRINSP%/Audio/install'/>
    </package>

<package
	id="INSP1300Video"
	name="Inspiron Video Drivers"
        revision="1"
	reboot="false"
	priority="0" >            
	<check 
		type="uninstall" 
		condition="exists" 
		path="Intel(R) Graphics Media Accelerator Driver for Mobile" />
	<install cmd='%HDWRINSP%/Audio/install'/>
    </package>

<package
	id="INSP1300Wireless"
	name="Inspiron Wireless Drivers"
        revision="1"
	reboot="false"
	priority="0" >            
	<check 
		type="uninstall" 
		condition="exists" 
		path="Intel(R) Graphics Media Accelerator Driver for Mobile" />
	<install cmd='%HDWRINSP%/Network-Wirelss/install.bat'/>
    </package>


<package
	id="msoffice-XP"
	name="Microsoft Office XP"
	revision="1"
	reboot="true"
	priority="0">
	<check 
		type="uninstall" condition="exists" 
		path="Microsoft Office Professional Edition XP" />

	<install 
		cmd='msiexec /i "%INST%\OfficeXP\PRO.MSI" /q allusers=1 ADDLOCAL=ALL'>
		<exit code="0" />
	</install>
	<remove cmd='MsiExec.exe /q /x{90110407-6000-11D3-8CFE-0150048383C9}' />
	<upgrade cmd="" />
</package>


 
</packages>
