[wpkg-users] Conditional depends?
Marco Gaiarin
gaio at sv.lnf.it
Wed Jan 9 11:58:22 CET 2019
Mandi! Stefan Pendl
In chel di` si favelave...
> <depends>
> <condition>
> <check />
> </condition>
> </depends>
> This allows to specify that a dependency is only applied if a condition is
> true.
Ok. My question born from a package that need flash installed; i've
flash packages (for ie and firefox) but in win10 the ie plugin is built
into OS, and installer fails.
So, i need to make the package depend on 'flash but only on OS < 10'.
So, i suppose:
<!-- Package depends always on Flash Plugin (FF) -->
<depends package-id="flashplugin" />
<!-- Package depends on Flash ActiveX only on OS < Win10 -->
<depends package-id="flash" >
<condition>
<check type="registry" condition="?" path="HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\CurrentVersion" value="10" />
</condition>
</depends>
But AFAIK in registry time checks there's no 'minorthen', only exist
and equals... and i cannot list ALL windows revisions...
Right? Some idea?
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.lanostrafamiglia.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)lanostrafamiglia.it t +39-0434-842711 f +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the wpkg-users
mailing list