== Do you have any examples of how to setup installing/uninstalling of programs using WPKG? ==
There are basic examples in the WPKG package if you download it. Below - some more examples.
You will find working examples in the [[:Category: Silent Installers | Silent Installers]] category (you may need to modify paths to match your setup of course).
This is an example hosts.xml file - it lists host names and associated profile:
<wpkg>
<host name="pc001" profile-id="profile01" />
<host name="pc002" profile-id="profile01" />
<host name="pc003" profile-id="profile01" />
<host name="pc004" profile-id="profile01" />
<host name="pc005" profile-id="profile01" />
<host name="pc106" profile-id="profile02" />
<host name="pc107" profile-id="profile02" />
<host name="pc108" profile-id="profile02" />
<host name="pc109" profile-id="profile02" />
<host name="pc110" profile-id="profile02" />
</wpkg>
This is an example profiles.xml - it lists profiles available to the workstations:
<profiles>
<profile id="default">
<package package-id="office2000" />
</profile>
<profile id="profile01">
<depends profile-id="default" />
<package package-id="acrobat" />
<package package-id="rdc" />
</profile>
<profile id="profile02">
<depends profile-id="default" />
<package package-id="rdc" />
</profile>
</profiles>
This is an example packages.xml - it list of all packages that can be deployed to workstations:
<packages>
<package
id="rdc"
name="Remote Desktop Connection"
revision="1"
reboot="false"
priority="0">
<check type="file" condition="exists" path="C:\WINNT\system32\mstsc.exe" />
<install cmd="msiexec /i \\server\unattended\packages\RemoteDesktopConnection\msrdpcli.msi /q allusers=1">
<exit code="0" />
</install>
<remove cmd="msiexec /x \\server\unattended\packages\RemoteDesktopConnection\msrdpcli.msi /q allusers=1" />
<upgrade cmd="" />
</package>
<package
id="acrobat"
name="Adobe Acrobat Reader"
revision="1"
reboot="false"
priority="0">
<check type="file" condition="exists" path="C:\Programme\Adobe\Acrobat 6.0\Reader\AcroRd32.exe" />
<install cmd="msiexec /i \\server\unattended\packages\acrobatreader6\AdobeReader6.0-Deutsch.msi /q allusers=1">
<exit code="0" />
</install>
<remove cmd="msiexec /x \\server\unattended\packages\acrobatreader6\AdobeReader6.0-Deutsch.msi /q allusers=1" />
<upgrade cmd="" />
</package>
<package
id="office2000"
name="office2000"
revision="1"
reboot="false"
priority="0">
<check type="file" condition="exists" path="C:\Programme\Microsoft Office\Office\WDREAD9.TXT" />
<install cmd="msiexec /i \\server\unattended\packages\MSOffice2000\data1.msi /q allusers=1">
<exit code="0" />
</install>
<remove cmd="msiexec /x \\server\unattended\packages\MSOffice2000\data1.msi /q allusers=1" />
<upgrade cmd="" />
</package>
== I'm getting "Unable to load specified XML document from \\server\wpkg\packages.xml" error. But packages.xml is there! ==