Changes

Jump to: navigation, search

Packages.xml:French

273 bytes removed, 08:17, 12 June 2007
Traduc en cours...
'''Logical ConditionsLogiques'''
There can be zero or more Il est possible de vérifier entre 0 et x conditions verified during the existence checks. If no conditions are suppliedSi aucune condition n'est donné, WPKG attempts to install the package regardless of whether itessaiera toujours d's currentlyinstalled or not. To facilitate using more than one conditioninstaller le logiciel, there is a 4th type of condition that can be added, called the logical condition. Logical conditions allow you to createmultiple conditions while checking for the presence of an existing package. Logical conditions are top level conditions, with the real check conditions as subnodes in the XMLqu'il soit déjà installé ou non.
The following logical Pour faciliter l'utilisation de plusieurs conditions are available: ''not'', ''and''il y a un quatrième type de condition qui peut êre rajouté, ''or'', ''atleast'', and ''atmost''appelé condition logique.
Examples:Les conditions logiques permettent de créer des conditions multiples de vérification de l'installation d'un logiciel.
LetLes conditions logiques sont des conditions de haut-niveau, tandis que les conditions de vérifications réelles sont des sous-branches dans le fichier XML. Les conditions logiques suivantes sont disponibles: ''not''s say, for the sake of argument''and'', ''or'', ''atleast'', and ''atmost''. Exemples: Disons que, pour l'exemple, that you have an vous voulez installer un paquet Adobe Reader 7.0.8 package that you want installed, but you only want it installed on workstationsthat are running seulement sur les machines tournant sous Windows XP Service Pack 2 or higher, due to some strange incompatibilitySP2 pour cause d'incompatibilité étrange. Let.. Disons aussi que certaines machines ne peuvent être upgradés à SP2 qu's also say that some workstations can't beupgraded to Windows XP Service Pack 2 until those workstations are upgraded from 256MB of memory to 512MB of memoryà la condition de passer de 256Mo à 512Mo de mémoire RAM. For a scenario like this, you could(and probably should!) use multiple profiles and have those SP1 workstations in one profilePour ce genre de scénario, while the vous pourriez utiliser des profils multiples: un profil pour les machines SP1 et un autre pour les machines SP2 workstations are in another. HoweverCependant, justfor example purposespour l'exemple, let's say all workstations are in a single profiledisons que toutes les machines sont dans le même profil. You can provide a logical On peut alors créer une condition in order for only those workstationsrunning SP2 to be upgraded to Adobe Reader 7logique qui nous permettent de valider notre scénario.0.8:
<pre>
</pre>
The 2nd La deuxième condition here might seem counter peut paraître peu intuitive, but remember that you're looking for the absence of things rather than the existence of things when you're writingcheck mais rappelez-vous que quand vous écrivez des conditions. What the above condition says is "Is Adobe Reader 7.0.8 installed or is Service Pack 1 installed? If either of these conditions equates to true,the installation will be skipped. In this particular case, Adobe Reader 7.0.8 isnvous recherchez souvent l't installed, but the value of CSDVersion is Service Pack 1 (for the SP1 boxes)so the software will not be installed.  Once all conditions have been tested, if the final result of the conditions is equal to false, WPKG will try to execute the "'''install cmd'''"absence de choses que leurs présences.
Ce que dit la condition est que "Est-ce qu' Adobe Reader 7.0.8 est installé OU le SP2 est installé ?" Si au moins une des conditions est validé l'installation est sauté.
After itQuand toutes les conditions ont été testés et que le résultat final est ''faux''s executed, WPKG will check the exit code (should be 0 in this example) essaiera d'exécuter les commandes "'''*and*install cmd''' verify all the checks".
Après l'exécution, WPKG vérifiera le code retour de sortie (normalement 0 dans l'exemple) '''*ET*''' revérifiera les conditions.
If '''*any*''' of the checks are not met, software is considered '''*not*''' installed - so enter these values carefully!
Anonymous user

Navigation menu