[wpkg-users] Conditional depends?

Jürgen Depicker Jurgen.Depicker at let.be
Wed Jan 9 12:24:15 CET 2019


Hi, you can check on OS version, see the wiki for more info:
<check type="file" condition="exists" path="%PKG_SOURCE%\setup.exe" os="5\.[1-9]\.\d{4}" />

-- 
Met vriendelijke groeten/Kind regards/Meilleures salutations/Mit freundlichen Grüßen, 

Jürgen Depicker  |    Software Project Manager 

L.E.T. NV  |  Vaartlaan 20  |   9800 Deinze  |  Belgium 
Tel. +32 9 381 87 87 
E-mail: Jurgen.Depicker at let.be  |  www.let.be 

Silent nights and happy days for 2019!


-----Oorspronkelijk bericht-----
Van: wpkg-users <wpkg-users-bounces at lists.wpkg.org> Namens Marco Gaiarin
Verzonden: Wednesday, 9 January 2019 11:58
Aan: wpkg-users at lists.wpkg.org
Onderwerp: Re: [wpkg-users] Conditional depends?

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)
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
https://lists.wpkg.org/mailman/listinfo/wpkg-users


More information about the wpkg-users mailing list