<p style="margin:0;padding:0;" align="left">Hello,<br />First, excuse me for my english, i'm french... !<br /><br />I want to use WPKG to deploy but i can't use the packages dependencies with chain !!<br /><br />I want to install PACKET1 before PACKET2.<br />To simplify, my packet1 contain an install (setup..) and my packet2 contain a copy of an INI file to the install directory of the packet1.<br /><br />- My host.xml refereded to a profile-id<br /><br />- In my Profiles.xml, my profile id refereded to a package-id as this :<br /><profiles><br />    <profile id="PROFILE-TEST"><br />        <package package-id="PACK1" /><br />    </profile><br /></profiles><br /><br />- In my Packages.xml, my package-id PACK1 is chain with PACK2 :<br /> <br /><packages><br />    <package<br />        id="PACK1"<br />        name="PACK1"<br />        revision="1"<br />        reboot="false"<br />        priority="1"><br />        <install cmd='\\SERVER\WPKG-1.1.2\APP\Setup.exe -s'><br />        </install><br />        <chain package-id="PACK2" /><br />    </package><br /><br />    <package<br />        id="PACK2"<br />        name="PACK2"<br />        revision="1"<br />        reboot="false"<br />        priority="1"><br />        <install cmd='%comspec% /c copy \\SERVER\WPKG-1.1.2\APP\FIC.INI C:\APP\FIC.INI /Y'><br />        </install><br />    </package><br /><br /></packages><br /><br />I don't know why <span class="short_text"><span class="hps">it does not work !<br />I have test others things, but systematically, the PACK2 attempt to install even the PACK1 is not install yet...and it s not possible because the destination directory doesn't exist yet.<br />How can i force the PACK1 install before the PACK2 install ?<br />Have i made an error ?<br />Can you help me ?<br />Thanks.<br /><br />This is my log :<br />2010-12-29 11:36:45, DEBUG   : Initialized temporary local log file: C:\DOCUME~1\XXX\LOCALS~1\Temp\wpkg-logInit.log<br />2010-12-29 11:36:45, DEBUG   : Initializing new log file: C:\DOCUME~1\XXX\LOCALS~1\Temp\wpkg-xp.log<br />2010-12-29 11:36:45, DEBUG   : Reboot-Cmd is standard.<br />2010-12-29 11:36:45, DEBUG   : WPKG 1.1.2 starting...<br />2010-12-29 11:36:45, DEBUG   : Base directory is '\\SERVER\WPKG-1.1.2'.<br />2010-12-29 11:36:45, DEBUG   : Log level is 255<br />2010-12-29 11:36:45, DEBUG   : Trying to read XML file: \\SERVER\WPKG-1.1.2\profiles.xml<br />2010-12-29 11:36:45, DEBUG   : Successfully loaded XML file: \\SERVER\WPKG-1.1.2\profiles.xml<br />2010-12-29 11:36:45, DEBUG   : Trying to read XML files from directory: \\SERVER\WPKG-1.1.2\profiles<br />2010-12-29 11:36:45, DEBUG   : Specified XML directory does not exist: \\SERVER\WPKG-1.1.2\profiles<br />2010-12-29 11:36:45, DEBUG   : Trying to read XML file: \\SERVER\WPKG-1.1.2\hosts.xml<br />2010-12-29 11:36:45, DEBUG   : Successfully loaded XML file: \\SERVER\WPKG-1.1.2\hosts.xml<br />2010-12-29 11:36:45, DEBUG   : Trying to read XML files from directory: \\SERVER\WPKG-1.1.2\hosts<br />2010-12-29 11:36:45, DEBUG   : Specified XML directory does not exist: \\SERVER\WPKG-1.1.2\hosts<br />2010-12-29 11:36:45, DEBUG   : Trying to read XML file: \\SERVER\WPKG-1.1.2\packages.xml<br />2010-12-29 11:36:45, DEBUG   : Successfully loaded XML file: \\SERVER\WPKG-1.1.2\packages.xml<br />2010-12-29 11:36:45, DEBUG   : Trying to read XML files from directory: \\SERVER\WPKG-1.1.2\packages<br />2010-12-29 11:36:45, DEBUG   : Specified XML directory does not exist: \\SERVER\WPKG-1.1.2\packages<br />2010-12-29 11:36:45, DEBUG   : Profiles applying to the current host:|PROFILE-TEST|<br />2010-12-29 11:36:45, DEBUG   : Settings file does not exist. Creating a new file.<br />2010-12-29 11:36:45, DEBUG   : Saving sorted settings to 'C:\WINDOWS\system32\wpkg.xml'.<br />2010-12-29 11:36:45, DEBUG   : Saving XML : C:\WINDOWS\system32\wpkg.xml<br />2010-12-29 11:36:45, DEBUG   : Hosts file contains 1 hosts:|XP<br />2010-12-29 11:36:45, DEBUG   : Settings file contains 0 packages:<br />2010-12-29 11:36:45, DEBUG   : Packages file contains 2 packages:|PACK1|PACK2<br />2010-12-29 11:36:45, DEBUG   : Profile file contains 1 profiles:|PROFILE-TEST<br />2010-12-29 11:36:45, DEBUG   : Using profile(s):|PROFILE-TEST|<br />2010-12-29 11:36:45, DEBUG   : Saving current environment<br />2010-12-29 11:36:45, DEBUG   : Getting profiles which apply to this node.<br />2010-12-29 11:36:45, DEBUG   : Applying profile: PROFILE-TEST<br />2010-12-29 11:36:45, DEBUG   : Adding package with ID 'PACK1' to profile packages.<br />2010-12-29 11:36:45, DEBUG   : Found package node 'PACK1' (PACK1) in package database<br />2010-12-29 11:36:45, DEBUG   : Found package node 'PACK2' (PACK2) in package database<br />2010-12-29 11:36:45, DEBUG   : Adding referenced package 'PACK2' (PACK2) for package 'PACK1' (PACK1)<br />2010-12-29 11:36:45, DEBUG   : Synchronizing: Number of packages referenced by profile: 2<br />2010-12-29 11:36:45, DEBUG   : Number of packages to remove: 0<br />2010-12-29 11:36:45, DEBUG   : Going to install package 'PACK2' (PACK2), Revision 1, (execute flag is '', notify flag is 'true').<br />2010-12-29 11:36:45, DEBUG   : Package 'PACK2' (PACK2): Not yet processed during this session.<br />2010-12-29 11:36:45, DEBUG   : Package 'PACK2' (PACK2): Not in local package database.<br />2010-12-29 11:36:45, DEBUG   : Checking existence of package: PACK2<br />2010-12-29 11:36:45, INFO    : Package 'PACK2' (PACK2): Not installed (checks failed). Preparing installation.<br />2010-12-29 11:36:45, DEBUG   : Installation of references (dependencies) for 'PACK2' (PACK2) successfully finished.<br />2010-12-29 11:36:45, INFO    : Installing 'PACK2' (PACK2)...<br />2010-12-29 11:36:45, DEBUG   : Saving current environment<br />2010-12-29 11:36:45, DEBUG   : Reading variables from package PACK2<br />2010-12-29 11:36:45, DEBUG   : Reading variables from profile[s]<br />2010-12-29 11:36:45, DEBUG   : Getting profiles which apply to this node.<br />2010-12-29 11:36:45, DEBUG   : 1 profiles apply to this host.<br />2010-12-29 11:36:45, DEBUG   : Reading variables from profile PROFILE-TEST<br />2010-12-29 11:36:45, DEBUG   : Reading variables from host XP<br />2010-12-29 11:36:45, DEBUG   : Install type: install<br />2010-12-29 11:36:45, DEBUG   : Fetched 1 install command(s).<br />2010-12-29 11:36:45, DEBUG   : Found system locale: 40c<br />2010-12-29 11:36:45, DEBUG   : Found language definition node for language ID 40c<br />2010-12-29 11:36:45, DEBUG   : Executing command: %SystemRoot%\System32\msg.exe * /TIME:10 "WPKG, l'utilitaire d'installation automatique des programmes a appliqué ou applique en ce moment des mises à jour à <br /><br />votre système. Veuillez consulter l'heure au début de ce message afin de vérifier que cette information ne soit pas obsolète. Veuillez sauvegarder tous vos documents ouverts, car un redémarrage peut être <br /><br />nécessaire et, dans ce cas, le système redémarrera sans avertissement à la fin de l'installation ou de la mise à jour. Merci."<br />2010-12-29 11:36:46, DEBUG   : Executing command: %comspec% /c copy \\SERVER\WPKG-1.1.2\APP\FIC.INI C:\APP\FIC.INI /Y<br />2010-12-29 11:36:47, ERROR   : Could not process (install) package 'PACK2' (PACK2):|Exit code returned non-successful value (1) on command '%comspec% /c copy \\SERVER\WPKG-1.1.2\APP\FIC.INI C:\APP\FIC.INI <br /><br />/Y'.<br />2010-12-29 11:36:47, DEBUG   : Cleaning up temporary downloaded files<br />2010-12-29 11:36:47, DEBUG   : Restoring previous environment.<br />2010-12-29 11:36:47, DEBUG   : Loading saved environment<br />2010-12-29 11:36:47, DEBUG   : Going to install package 'PACK1' (PACK1), Revision 1, (execute flag is '', notify flag is 'true').<br />2010-12-29 11:36:47, DEBUG   : Package 'PACK1' (PACK1): Not yet processed during this session.<br />2010-12-29 11:36:47, DEBUG   : Package 'PACK1' (PACK1): Not in local package database.<br />2010-12-29 11:36:47, DEBUG   : Checking existence of package: PACK1<br />2010-12-29 11:36:47, INFO    : Package 'PACK1' (PACK1): Not installed (checks failed). Preparing installation.<br />2010-12-29 11:36:47, DEBUG   : Installation of references (dependencies) for 'PACK1' (PACK1) successfully finished.<br />2010-12-29 11:36:47, INFO    : Installing 'PACK1' (PACK1)...<br />2010-12-29 11:36:47, DEBUG   : Saving current environment<br />2010-12-29 11:36:47, DEBUG   : Reading variables from package PACK1<br />2010-12-29 11:36:47, DEBUG   : Reading variables from profile[s]<br />2010-12-29 11:36:47, DEBUG   : Getting profiles which apply to this node.<br />2010-12-29 11:36:47, DEBUG   : 1 profiles apply to this host.<br />2010-12-29 11:36:47, DEBUG   : Reading variables from profile PROFILE-TEST<br />2010-12-29 11:36:47, DEBUG   : Reading variables from host XP<br />2010-12-29 11:36:47, DEBUG   : Install type: install<br />2010-12-29 11:36:47, DEBUG   : Fetched 1 install command(s).<br />2010-12-29 11:36:48, DEBUG   : Executing command: \\SERVER\WPKG-1.1.2\APP\Setup.exe -s<br />2010-12-29 11:36:52, DEBUG   : Command in installation of PACK1 returned exit code [0]. Success.<br />2010-12-29 11:36:52, DEBUG   : Adding settings node: 'PACK1' (PACK1), Revision 1<br />2010-12-29 11:36:52, DEBUG   : Saving sorted settings to 'C:\WINDOWS\system32\wpkg.xml'.<br />2010-12-29 11:36:52, DEBUG   : Adding settings node: 'PACK1' (PACK1), Revision 1<br />2010-12-29 11:36:52, DEBUG   : Saving XML : C:\WINDOWS\system32\wpkg.xml<br />2010-12-29 11:36:52, INFO    : Installing references (chained) of 'PACK1' (PACK1).<br />2010-12-29 11:36:52, DEBUG   : Found package node 'PACK2' (PACK2) in package database<br />2010-12-29 11:36:53, DEBUG   : Going to install package 'PACK2' (PACK2), Revision 1, (execute flag is '', notify flag is 'true').<br />2010-12-29 11:36:53, DEBUG   : Package 'PACK2' (PACK2): Already installed once during this session.|Checking if package is properly installed.<br />2010-12-29 11:36:53, DEBUG   : Package 'PACK2' (PACK2): Installation failed during this session.<br />2010-12-29 11:36:53, ERROR   : Installation of references (chained) for 'PACK1' (PACK1) failed. Installation of reference (chained) package 'PACK2' (PACK2) failed<br />2010-12-29 11:36:53, INFO    : Package 'PACK1' (PACK1): Package installed but at least one chained package failed to install.<br />2010-12-29 11:36:53, INFO    : Processing (install) of PACK1 successful.<br />2010-12-29 11:36:53, DEBUG   : Cleaning up temporary downloaded files<br />2010-12-29 11:36:53, DEBUG   : Restoring previous environment.<br />2010-12-29 11:36:53, DEBUG   : Loading saved environment<br />2010-12-29 11:36:53, DEBUG   : Executing command: %SystemRoot%\System32\msg.exe * /TIME:10 "WPKG, l'utilitaire d'installation automatique de logiciels a terminé l'installation ou l'actualisation des <br /><br />logiciels sur votre système. Aucun redémarrage n'était requis. Toutes les mises à jour sont achevées."<br /><br /></span></span></p><BR><BR><a target=_blank href=https://compte.laposte.net/inscription/index.do?jeux=2010FOOTER_festif><img style="margin: 0pt;" src="http://webmail.laposte.net/webmail/fr_FR/panels/images/pied-page_festif.gif" alt="Pieddemail"><a>