Changes

Packages.xml

786 bytes added, 10:55, 19 October 2010
Uninstall
===Uninstall===
La desinstalación le permite comprobar la instalación de software según las claves de registro de Uninstall checks allow you to check the Microsoft software installation registry keys (visualizado por as displayed in Windows en la sección de agregar o quitar programas' Add/Remove Programs section), y asi comprobar si se ha instalado una aplicación for the existence of a particularpackage. Microsoft mantiene la lista de aplicaciones instaladas y disponibles para desinstalar en la clave de registro maintains the listof applications installed and available for uninstallation in the ''HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall''registry key. El valor de The value in the DisplayName de una entrada en key of a particular es lo que se pretende encontrarpackage is what's matched by this check. Versiones pre-1.1.de 0 versions of WPKG disponen sólo de la condición de comprobar si esta opción have only one condition available for this option: ''exists''.
<div style="margin-left: 30px">
'''exists''' - Esto comprueba la existencia de un paquete de software en This checks for the existence of the particular en la base de datos de instalacionessoftware package in the installation database. Si el paquete se encuentra If the package is found, la condición devuelve ''the condition returns true''.
</div>
Desde la versión Since version 1.1.0 la comprobación se extiende con otras condicionesthis check is extended with several other conditions:
<div style="margin-left: 30px">
'''versionsmallerthan''' - Esto comprueba la existencia de un paquete en This checks for the existence of a particular software package in la base de datos de instalaciones y también comprueba la versión de ese the installation database and also checks the version of that softwarepackage. Si se encuentra el pquete y la versión es más pequeña que el valor proporcionadoIf the package is found, and the version is smaller than the supplied value, la condición devuelve ''the condition returns true''.
'''versionlessorequal''' - idemThis checks for the existence of a particular software package in the installation database and also checks the version of that software package.If the package is found, con menor o igual..and the version is less than or equal to the supplied value, the condition returns true.
'''versionequalto''' - idemThis checks for the existence of a particular software package in the installation database and also checks the version of that software package.If the package is found, con igual..and the version is equal to the supplied value, the condition returns true.
'''versiongreaterorequal''' - idemThis checks for the existence of a particular software package in the installation database and also checks the version of that software package.If the package is found, con mayor o igual..and the version is greater than or equal to the supplied value, the condition returns true.
'''versiongreaterthan''' - idemThis checks for the existence of a particular software package in the installation database and also checks the version of that software package.If the package is found, con mayor que..and the version is greater than the supplied value, the condition returns true.
</div>
EjemplosExamples:
Esto comprueba que está instalado This checks for the existence of Adobe Reader através de la lista de instalacionesthrough the installation list:
<source lang="xml">
</source>
Esto comprueba si la versión de This checks to see if Firefox, version 1.5.0.6 está instalada en la lista de instalacionesis installed in the installation list:
<source lang="xml">
</source>
Esto compruba la existencia de la aplicación This checks for the existence of The Gimp 2.6.6 o superior en la lista de programas instaladosor higher through the installation list:
<source lang="xml">
61
edits