Oh, I didn't realize you could use conditions in profiles, it's very useful, thank you ! Regards
Jonathan Verdeyen IT Engineer Please consider your environmental responsibility before printing this e-mail. -----Original Message----- From: wpkg-users-boun...@lists.wpkg.org [mailto:wpkg-users-boun...@lists.wpkg.org] On Behalf Of Stefan Pendl Sent: lundi 26 novembre 2012 22:39 To: wpkg-users@lists.wpkg.org Subject: Re: [wpkg-users] One package or another Am 26.11.2012 13:49, schrieb VERDEYEN Jonathan: > Is there a way to install one package or another depending on host > attributes without making separate profiles ? > > What I would like is to do a profile which has 2 different versions of > the same program (Adobe Reader) and if the host attributes match the > first one, it will install it, but if they don’t (in any other case) > it will install the other one : > > <profile id="AdobeReader"> > > <package package-id="adobereader_en" os="windows > embedded.+" lcid="409"/><!-- Only if Windows Embedded --> > > <package package-id="adobereader"/><!-- Mui version > --> > > </profile> > > I’ve tried using the regexp “!embedded” but it doesn’t seem to work. > > *Jonathan Verdeyen* > You will have to use the not logical check in a condition node. '---code start (watch for line wraps) <profile id="AdobeReader"> <package package-id="adobereader_en" os="windows embedded.+" lcid="409"/> <package package-id="adobereader"> <condition> <check type="logical" condition="not"> <check type="host" condition="os" value="windows embedded.+"/> </check> </condition> </package> </profile> '---code end -- Stefan P. Top-posting: A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? ------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ Ce message et toutes les pièces jointes (ci-après le "message") sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur. --> Pensez à l'environnement avant d'imprimer ce message. This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised use or dissemination is prohibited. If you are not the intended addressee of this message, please delete it immediately and inform the sender. --> Please consider the environment before printing this email. ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ ------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users